/* Shared focused workspace. Consumers supply branding and the domain view. */
.harness-shell {
  --shell-line: #dce1df;
  --shell-muted: #68736d;
  --shell-surface: #fff;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  color: inherit;
  font: inherit;
  overflow: hidden;
}
.harness-shell *,
.harness-shell *::before,
.harness-shell *::after {
  box-sizing: border-box;
}
.harness-shell [hidden] {
  display: none !important;
}
.harness-shell :where(section, article, form, label, fieldset, details, div) {
  min-width: 0;
}
.harness-shell :where(p, li, dd, button, output) {
  overflow-wrap: anywhere;
}
.harness-shell :where(button, input, textarea, select) {
  max-width: 100%;
  font: inherit;
}
.harness-shell :focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.harness-shell__header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1.25rem;
  border-bottom: 1px solid var(--shell-line);
  background: var(--shell-surface);
}
.harness-shell__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
}
.harness-shell__phase {
  font-size: 0.75rem;
  color: var(--shell-muted);
  margin: 0;
}
.harness-shell__phase[data-phase='ready'] {
  display: none;
}
.harness-shell__menu-button {
  margin-left: auto;
}
.harness-shell__failure {
  margin: 0;
  padding: 0.75rem;
}
.harness-shell__folder-recovery {
  padding: 0.75rem;
  background: #fff5d6;
  border-bottom: 1px solid #d9c48b;
}
.harness-shell__folder-recovery p {
  margin: 0 0 0.5rem;
}
.harness-shell__body {
  display: grid;
  grid-template-columns: minmax(18rem, 24rem) minmax(0, 1fr);
  flex: 1;
  min-height: 0;
}
.harness-shell__sidebar {
  min-width: 0;
  min-height: 0;
  background: var(--shell-surface);
  border-right: 1px solid var(--shell-line);
}
.harness-shell__chat {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.harness-shell__chats {
  flex: 0 0 auto;
  position: relative;
  border-bottom: 1px solid var(--shell-line);
  padding: 1rem 1.25rem;
}
.harness-shell__chats > summary {
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.harness-shell__chats > section {
  position: absolute;
  top: 100%;
  left: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  max-height: 60vh;
  overflow: auto;
  padding: 0.8rem;
  border: 1px solid var(--shell-line);
  border-radius: 0.75rem;
  background: var(--shell-surface);
  box-shadow: 0 10px 30px #0002;
}
.harness-shell__chats ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.harness-shell__chats li button {
  width: 100%;
  text-align: left;
}
.harness-shell__conversation {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 1.25rem;
  scrollbar-gutter: stable;
}
.harness-shell [role='log'] {
  min-width: 0;
}
.harness-shell [role='log'] article {
  margin-bottom: 1.1rem;
  font-size: 0.9rem;
  line-height: 1.6;
}
.harness-shell [role='log'] article[data-role='user'] {
  background: #f0f3f1;
  padding: 0.7rem 0.9rem;
  border-radius: 0.8rem;
}
.harness-shell [role='log'] p {
  white-space: pre-wrap;
  margin: 0;
}
.harness-shell__tool {
  font-size: 0.75rem;
  color: var(--shell-muted);
  margin: 0.5rem 0;
}
.harness-shell__tool summary {
  cursor: pointer;
}
.harness-shell pre {
  max-width: 100%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.8em;
}
.harness-shell__empty {
  color: var(--shell-muted);
  padding-top: 2rem;
}
.harness-shell__compose {
  flex: 0 0 auto;
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--shell-line);
}
.harness-shell__compose form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.harness-shell__compose form > label {
  flex: 1 1 100%;
  font-size: 0;
}
.harness-shell__compose textarea {
  display: block;
  width: 100%;
  min-height: 5rem;
  max-height: 22vh;
  resize: vertical;
  font: 0.9rem/1.5 inherit;
  font-size: 0.9rem;
  padding: 0.7rem;
  border: 1px solid var(--shell-line);
  border-radius: 0.65rem;
}
.harness-shell__compose button {
  font-size: 0.8rem;
}
.harness-shell__compose button[type='submit'] {
  background: #294234;
  color: white;
}
.harness-shell__chat-status {
  margin: 0.45rem 0 0;
  color: var(--shell-muted);
  font-size: 0.7rem;
}
.harness-shell__attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.harness-shell__attachments > div {
  position: relative;
}
.harness-shell__attachments img {
  width: 72px;
  height: 60px;
  object-fit: cover;
  border-radius: 0.4rem;
}
.harness-shell__attachments button {
  position: absolute;
  right: 0;
  top: 0;
  padding: 0 0.35rem;
}
.harness-shell__sent-image {
  display: block;
  max-width: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: 0.5rem;
  margin-top: 0.5rem;
}
.harness-shell__main {
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 3rem);
  overflow: hidden;
  background: #edf0ee;
}
.harness-shell__domain {
  height: 100%;
  width: 100%;
  max-height: 100%;
  min-height: 0;
}
.harness-shell__domain-mount {
  height: 100%;
  max-height: 100%;
}
.harness-shell__domain-failure {
  margin: 0;
}
.harness-shell__settings {
  width: min(780px, calc(100vw - 2rem));
  max-height: calc(100dvh - 3rem);
  padding: 0;
  border: 1px solid var(--shell-line);
  border-radius: 1rem;
  color: inherit;
  background: var(--shell-surface);
  box-shadow: 0 20px 80px #0003;
}
.harness-shell__settings::backdrop {
  background: #17251d66;
}
.harness-shell__settings > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.2rem;
}
.harness-shell__settings h2 {
  margin: 0;
}
.harness-shell__settings nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 0 1.2rem 0.8rem;
  border-bottom: 1px solid var(--shell-line);
}
.harness-shell__settings nav [aria-pressed='true'] {
  background: #294234;
  color: white;
}
.harness-shell__settings-content {
  padding: 1.2rem;
  overflow: auto;
}
.harness-shell__settings :where(form, [role='group'], [data-actions]) {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.5rem;
}
.harness-shell__settings label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-block: 0.5rem;
}
.harness-shell__settings button {
  margin: 0.15rem;
}
.harness-shell__settings textarea {
  width: 100%;
  min-height: 5rem;
}
.harness-shell__settings ul {
  list-style: none;
  padding: 0;
}
.harness-shell__settings dl {
  display: grid;
  grid-template-columns: minmax(5rem, 1fr) minmax(0, 3fr);
  gap: 0.4rem 0.75rem;
}
.harness-shell__settings dd {
  margin: 0;
}
/* Inert engine requests stay visible without remounting the domain workspace. */
.harness-shell__project-intent {
  flex: 0 0 auto;
  max-height: 35dvh;
  overflow: auto;
  padding: 10px 16px;
  border-bottom: 1px solid var(--shell-line);
  background: var(--shell-surface);
}
.harness-shell__project-intent p {
  margin: 0 0 6px;
}
.harness-shell__project-intent [data-actions] {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}
.harness-shell__panel + .harness-shell__panel {
  margin-top: 1.25rem;
}
.harness-shell__transcript {
  overflow: auto;
  padding: 1.25rem;
}
.harness-shell[data-layout='stacked'] .harness-shell__body {
  grid-template-columns: 1fr;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
}
@media (max-width: 700px) {
  .harness-shell__body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  }
  .harness-shell__main {
    grid-row: 1;
    padding: 0.75rem;
  }
  .harness-shell__sidebar {
    grid-row: 2;
    border-top: 1px solid var(--shell-line);
  }
  .harness-shell__chats {
    padding-block: 0.5rem;
  }
}
/* `full` removes only the generic workspace padding; sizing stays unchanged. */
.harness-shell[data-workspace='full'] .harness-shell__main {
  padding: 0;
}
/* Collapsing hides the chat column only; the chat subtree stays mounted, so
   drafts, attachments and subscriptions survive and the domain never remounts. */
.harness-shell[data-chat='hidden'] .harness-shell__sidebar {
  display: none;
}
.harness-shell[data-chat='hidden'] .harness-shell__body {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
}

/* ------------------------------------------------------------------------- */
/* Project Files sidebar (A27). A third column when shown; hidden it is       */
/* removed from flow, so the existing chat/main layout is unchanged.          */
/* ------------------------------------------------------------------------- */
.harness-shell__files-toggle {
  white-space: nowrap;
}
.harness-shell[data-files='hidden'] .harness-shell__files-sidebar {
  display: none;
}
.harness-shell__files-sidebar {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--shell-surface);
  border-left: 1px solid var(--shell-line);
  overflow: hidden;
}
.harness-shell[data-files='shown'][data-chat='shown'] .harness-shell__body {
  grid-template-columns:
    minmax(18rem, 24rem) minmax(0, 1fr)
    minmax(16rem, 22rem);
}
.harness-shell[data-files='shown'][data-chat='hidden'] .harness-shell__body {
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
}
.harness-shell[data-layout='stacked'][data-files='shown'][data-chat='shown']
  .harness-shell__body {
  grid-template-columns: 1fr;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
}
.harness-shell[data-layout='stacked'][data-files='shown'][data-chat='hidden']
  .harness-shell__body {
  grid-template-columns: 1fr;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
}
.harness-shell__files-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--shell-line);
}
.harness-shell__files-title {
  margin: 0;
  font-size: 0.9rem;
}
.harness-shell__files-scope {
  color: var(--shell-muted);
  font-size: 0.7rem;
}
.harness-shell__files-refresh {
  margin-left: auto;
}
.harness-shell__files-stale {
  margin: 0;
  padding: 0.5rem 0.9rem;
  background: #fff6e0;
  font-size: 0.72rem;
}
.harness-shell__files-hint {
  margin: 0.4rem 0.9rem;
  color: var(--shell-muted);
  font-size: 0.72rem;
}
.harness-shell__files-tree {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0.4rem 0.5rem;
}
.harness-shell__files-children {
  list-style: none;
  margin: 0;
  padding-left: 0.9rem;
}
.harness-shell__files-row {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.harness-shell__files-disclosure {
  flex: 0 0 auto;
  width: 1.4rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.harness-shell__files-name {
  flex: 1 1 auto;
  padding: 0.15rem 0.2rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  overflow-wrap: anywhere;
}
.harness-shell__files-name[aria-current='true'] {
  background: #e5efe9;
  border-radius: 0.35rem;
}
.harness-shell__files-badge {
  padding: 0 0.25rem;
  border: 1px solid var(--shell-line);
  border-radius: 0.35rem;
  color: var(--shell-muted);
  font-size: 0.62rem;
}
.harness-shell__files-size {
  color: var(--shell-muted);
  font-size: 0.62rem;
}
.harness-shell__files-editor {
  flex: 0 0 auto;
  max-height: 55%;
  overflow: auto;
  padding: 0.6rem 0.9rem;
  border-top: 1px solid var(--shell-line);
}
.harness-shell__files-meta {
  display: grid;
  grid-template-columns: minmax(5rem, 0.8fr) minmax(0, 1.2fr);
  gap: 0.2rem 0.5rem;
  margin: 0.4rem 0;
  font-size: 0.7rem;
}
.harness-shell__files-meta dt {
  color: var(--shell-muted);
}
.harness-shell__files-meta dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.harness-shell__files-draft {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.72rem;
}
.harness-shell__files-draft textarea {
  width: 100%;
  min-height: 7rem;
  resize: vertical;
  font-size: 0.78rem;
}
.harness-shell__files-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.4rem;
}
.harness-shell__files-conflict {
  margin: 0.3rem 0;
  padding: 0.4rem;
  background: #ffe9e2;
  font-size: 0.72rem;
}
.harness-shell__files-operations,
.harness-shell__files-primary {
  flex: 0 0 auto;
  max-height: 42%;
  overflow: auto;
  padding: 0.5rem 0.9rem;
  border-top: 1px solid var(--shell-line);
}
.harness-shell__files-subtitle {
  margin: 0.2rem 0 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
}
.harness-shell__files-path {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 0.25rem 0;
  font-size: 0.7rem;
  color: var(--shell-muted);
}
.harness-shell__files-path input {
  width: 100%;
  font-size: 0.72rem;
}
.harness-shell__files-confirm {
  margin: 0.4rem 0;
  padding: 0.5rem;
  border: 1px solid #cf8a63;
  border-radius: 0.35rem;
  background: #fff3ec;
  font-size: 0.72rem;
}
.harness-shell__files-confirm p {
  margin: 0 0 0.35rem;
}
.harness-shell__files-notes {
  flex: 0 0 auto;
  padding: 0.4rem 0.9rem;
  border-top: 1px solid var(--shell-line);
}
.harness-shell__files-notes p {
  margin: 0.2rem 0;
  color: var(--shell-muted);
  font-size: 0.62rem;
}
/* Narrow widths: the same breakpoint that stacks chat and main turns Files
   into a dismissible overlay drawer that cannot permanently obscure the
   composer or chat. */
@media (max-width: 700px) {
  .harness-shell[data-files='shown'] .harness-shell__files-sidebar {
    position: fixed;
    inset-block: 0;
    inset-inline-end: 0;
    width: min(22rem, 92vw);
    z-index: 7;
    border-inline-start: 1px solid var(--shell-line);
    box-shadow: -12px 0 40px #0003;
  }
  .harness-shell[data-files='shown'][data-chat='shown'] .harness-shell__body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  }
  .harness-shell[data-files='shown'][data-chat='hidden'] .harness-shell__body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
  }
  .harness-shell[data-layout='stacked'][data-files='shown']
    .harness-shell__body {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* Compact project Save intent in the header (M6 scope extension). */
.harness-shell__header {
  flex-wrap: wrap;
}
.harness-shell__project-save {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  min-width: 0;
}
.harness-shell__project-home {
  color: var(--shell-muted);
  font-size: 0.72rem;
  overflow-wrap: anywhere;
}
.harness-shell__project-save-button {
  white-space: nowrap;
}
.harness-shell__project-save-note {
  flex-basis: 100%;
  color: var(--shell-muted);
  font-size: 0.7rem;
  overflow-wrap: anywhere;
}

/* M7 shared product chrome. Engine consumers need no controls stylesheet. */
.harness-shell {
  --shell-line: #e3e7eb;
  --shell-muted: #66717f;
  --shell-accent: #275c50;
  --shell-surface: #fff;
  color: #202b35;
  background: #f6f8fa;
  font:
    13px/1.5 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
}
.harness-shell :where(button, input, textarea, select) {
  border: 1px solid var(--shell-line);
  border-radius: 7px;
  background: white;
  color: inherit;
  padding: 7px 11px;
  line-height: 1.3;
}
.harness-shell button {
  cursor: pointer;
  transition:
    background 120ms,
    border-color 120ms;
}
.harness-shell button:hover:not(:disabled) {
  background: #eff4f3;
  border-color: #becfc9;
}
.harness-shell button:disabled {
  opacity: 0.45;
  cursor: default;
}
.harness-shell :focus-visible {
  outline-color: #4d8d7b;
  outline-width: 2px;
  outline-offset: 2px;
}
.harness-shell__header {
  gap: 10px;
  padding: 12px 18px;
  min-height: 60px;
}
.harness-shell__title {
  font-size: 15px;
  letter-spacing: -0.3px;
  margin-right: 8px;
}
.harness-shell__project-save {
  margin-left: 6px;
}
.harness-shell__project-home {
  font-size: 12px;
}
.harness-shell__body {
  grid-template-columns: 320px minmax(0, 1fr);
}
.harness-shell[data-files='shown'][data-chat='shown'] .harness-shell__body {
  grid-template-columns: 320px minmax(0, 1fr) 260px;
}
.harness-shell[data-files='shown'][data-chat='hidden'] .harness-shell__body {
  grid-template-columns: minmax(0, 1fr) 260px;
}
.harness-shell__chats {
  padding: 12px 14px;
  max-height: 24vh;
  overflow: auto;
}
.harness-shell__chats > section {
  position: static;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: none;
  max-height: none;
}
.harness-shell__chats ul {
  gap: 3px;
  margin: 8px 0 0;
}
.harness-shell__chats li button {
  border: 0;
  border-radius: 6px;
  padding: 7px 9px;
  background: transparent;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.harness-shell__chats [aria-current='true'],
.harness-shell__chats [aria-pressed='true'] {
  background: #eaf2ef;
  color: #244e42;
}
.harness-shell__conversation {
  padding: 18px 16px;
}
.harness-shell [role='log'] article {
  font-size: 13px;
  line-height: 1.65;
}
.harness-shell__compose {
  padding: 12px;
  background: #fcfdfd;
}
.harness-shell__compose form > [data-plain-text-editor] {
  flex: 1 1 100%;
}
.harness-shell__compose [data-plain-text-editor] > label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.harness-shell .tiptap {
  outline: none;
  overflow-wrap: anywhere;
}
.harness-shell .tiptap pre {
  font: inherit;
  margin: 0;
  padding: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.harness-shell .tiptap code {
  font: inherit;
}
.harness-shell__compose .tiptap {
  min-height: 88px;
  max-height: 25vh;
  overflow: auto;
  padding: 12px;
  border: 1px solid #d6dfdb;
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
}
.harness-shell__compose .tiptap:focus {
  border-color: #749d8d;
  box-shadow: 0 0 0 2px #275c5010;
}
.harness-shell__compose .tiptap pre:has(br:only-child)::before {
  content: 'Message…';
  color: #88929b;
  pointer-events: none;
  position: absolute;
}
.harness-shell__compose button {
  font-size: 12px;
}
.harness-shell__compose button[type='submit'] {
  background: var(--shell-accent);
  border-color: var(--shell-accent);
  padding-inline: 18px;
}
.harness-shell__compose button[type='submit']:hover:not(:disabled) {
  background: #204b42;
  color: white;
}
.harness-shell__main,
.harness-shell[data-workspace='full'] .harness-shell__main {
  padding: 0;
}
.harness-workspace-tabs {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
}
.harness-workspace-tabs__bar {
  display: flex;
  flex: 0 0 42px;
  align-items: stretch;
  gap: 2px;
  padding: 5px 8px 0;
  background: #f4f6f8;
  border-bottom: 1px solid var(--shell-line);
  overflow-x: auto;
}
.harness-workspace-tabs__bar button {
  border: 0;
  border-radius: 6px 6px 0 0;
  background: transparent;
  padding-inline: 14px;
  white-space: nowrap;
  font-size: 12px;
}
.harness-workspace-tabs__bar button[aria-selected='true'] {
  background: white;
  color: var(--shell-accent);
  box-shadow: inset 0 -2px var(--shell-accent);
}
.harness-workspace-tabs__tab {
  display: flex;
  flex: 0 0 auto;
}
.harness-workspace-tabs__tab button[data-close-tab] {
  padding: 4px 7px;
  color: var(--shell-muted);
}
.harness-workspace-tabs__engine {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.harness-shell[data-workspace='contained'] .harness-workspace-tabs__engine {
  padding: clamp(12px, 3vw, 40px);
}
.harness-workspace-tabs__file {
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: white;
  padding: 20px 24px;
}
.harness-workspace-tabs__file header {
  margin-bottom: 16px;
  color: var(--shell-muted);
  font-size: 12px;
}
.harness-workspace-tabs__file [data-plain-text-editor] > label {
  display: none;
}
.harness-workspace-tabs__file .tiptap {
  min-height: 50vh;
  font:
    13px/1.65 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  white-space: pre-wrap;
  tab-size: 4;
}
.harness-workspace-tabs__file [role='status'] {
  color: var(--shell-muted);
  font-size: 11px;
}
.harness-workspace-tabs__file [role='alert'] {
  background: #fff3dc;
  border-radius: 8px;
  padding: 12px;
}
.harness-workspace-tabs__file pre[data-file-preview] {
  white-space: pre-wrap;
  font:
    12px/1.6 ui-monospace,
    monospace;
}
.harness-shell__files-header {
  padding: 12px;
  gap: 7px;
}
.harness-shell__files-header button {
  font-size: 11px;
  padding: 5px 7px;
}
.harness-shell__files-title {
  font-size: 13px;
}
.harness-shell__files-row {
  min-height: 31px;
  border-radius: 6px;
}
.harness-shell__files-row:hover {
  background: #f3f6f5;
}
.harness-shell__files-name {
  background: transparent;
  padding: 6px;
  font-size: 12px;
  border: 0;
}
.harness-shell__files-disclosure {
  border: 0;
  background: none;
  padding: 0;
}
.harness-shell__files-menu {
  margin: 8px 12px;
  font-size: 12px;
}
.harness-shell__files-menu summary {
  cursor: pointer;
  color: var(--shell-muted);
}
.harness-shell__files-menu .harness-shell__files-operations {
  max-height: none;
  padding: 10px 0;
  border: 0;
}
.harness-shell__settings h2 {
  font-size: 18px;
}
.harness-shell__settings-content {
  font-size: 13px;
}
@media (min-width: 701px) and (max-width: 1100px) {
  .harness-shell__body {
    grid-template-columns: 280px minmax(0, 1fr);
  }
  .harness-shell[data-files='shown'][data-chat='shown'] .harness-shell__body {
    grid-template-columns: 280px minmax(0, 1fr) 220px;
  }
}
@media (max-width: 700px) {
  .harness-shell__header {
    gap: 6px;
    padding: 8px 10px;
  }
  .harness-shell__header button {
    font-size: 11px;
    padding: 6px 8px;
  }
  .harness-shell__project-save {
    order: 5;
    flex-basis: 100%;
  }
  .harness-shell__body,
  .harness-shell[data-files='shown'][data-chat='shown'] .harness-shell__body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  }
  .harness-shell[data-chat='hidden'] .harness-shell__body,
  .harness-shell[data-files='shown'][data-chat='hidden'] .harness-shell__body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
  }
  .harness-shell__chats {
    max-height: 100px;
    padding: 8px 12px;
  }
  .harness-shell__compose .tiptap {
    min-height: 54px;
  }
  .harness-workspace-tabs__file {
    padding: 14px;
  }
}

/* Compact shared navigation and composer feedback. */
.harness-shell__header {
  min-height: 52px;
  padding: 8px 16px;
  gap: 8px;
}
.harness-shell__header button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 7px;
  border-color: transparent;
  background: transparent;
}
.harness-shell__icon {
  pointer-events: none;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.harness-shell__chats {
  overflow: visible;
  max-height: none;
  padding: 8px 12px;
  z-index: 3;
}
.harness-shell__history-menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  color: var(--shell-muted);
  list-style: none;
}
.harness-shell__history-menu > summary::-webkit-details-marker {
  display: none;
}
.harness-shell__history-menu > summary:hover {
  background: #eff4f3;
}
.harness-shell__history-menu[open] > section {
  position: absolute;
  left: 12px;
  right: 12px;
  top: calc(100% - 2px);
  z-index: 3;
  padding: 12px;
  max-height: 55vh;
  overflow: auto;
  border: 1px solid var(--shell-line);
  border-radius: 10px;
  background: var(--shell-surface);
  box-shadow: 0 12px 32px #182d2520;
}
.harness-shell__composer-model {
  margin: 0 0 8px;
}
.harness-shell__composer-model label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--shell-muted);
}
.harness-shell__composer-model label > span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.harness-shell__composer-model select {
  max-width: 65%;
  min-width: 0;
  font-size: 11px;
  padding: 5px 6px;
  background: white;
}
.harness-shell__composer-model p {
  font-size: 11px;
}
.harness-agent-working {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--shell-muted);
  font-size: 12px;
  padding: 8px 0;
}
.harness-agent-working__grid {
  display: grid;
  grid-template-columns: repeat(3, 4px);
  gap: 3px;
  padding: 2px;
}
.harness-agent-working__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--shell-accent, #275c50);
  animation: harness-dot-wave 1.35s ease-in-out infinite;
}
.harness-agent-working__dot:nth-child(3n + 2) {
  animation-delay: 150ms;
}
.harness-agent-working__dot:nth-child(3n + 3) {
  animation-delay: 300ms;
}
.harness-agent-working__dot:nth-child(n + 4) {
  animation-delay: 450ms;
}
.harness-agent-working__dot:nth-child(n + 7) {
  animation-delay: 600ms;
}
@keyframes harness-dot-wave {
  0%,
  70%,
  100% {
    opacity: 0.25;
    transform: scale(0.75);
  }
  35% {
    opacity: 1;
    transform: scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .harness-agent-working__dot {
    animation: none;
    opacity: 0.75;
  }
}
.harness-shell__workspace-home {
  flex: 0 0 auto;
  padding: 14px 12px 12px;
  border-bottom: 1px solid var(--shell-line);
}
.harness-shell__workspace-home .harness-shell__project-save {
  margin: 0;
  align-items: flex-start;
  flex-wrap: wrap;
}
.harness-shell__workspace-home > p {
  font-size: 11px;
  line-height: 1.5;
  margin: 9px 0 0;
  color: var(--shell-muted);
}
