/* One warm, readable workspace for discussion, review and delivery. */
.simple-workspace .composer.media-composer {
  background: transparent;
  border: 0;
  box-shadow: none;
}
.simple-workspace .chat-input-shell {
  width: 100%;
  min-width: 0;
  padding: 12px 13px 10px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 2px 7px #23232305;
  cursor: text;
}
.simple-workspace .media-composer .chat-input-shell > textarea,
.simple-workspace .media-composer .chat-input-shell > textarea:focus,
.simple-workspace .media-composer .chat-input-shell > textarea:focus-visible {
  display: block;
  width: 100%;
  min-height: 56px;
  max-height: 180px;
  padding: 5px 4px 9px;
  border: 0;
  border-radius: 0;
  outline: 0;
  box-shadow: none;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.75;
  resize: none;
}
.simple-workspace .media-composer .chat-input-shell > textarea::placeholder {
  color: var(--ink-soft);
  opacity: 0.8;
}
.simple-workspace .chat-input-shell .media-composer-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0;
  margin: 3px 0 0;
}
.simple-workspace .media-composer-actions > :last-child {
  margin-left: auto;
}
.simple-workspace .media-composer-actions > span {
  flex: 1;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.7;
}
.simple-workspace .media-composer-actions .button {
  width: auto;
  border-radius: 18px;
  min-height: 34px;
}
.simple-workspace .attachment-control {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  cursor: default;
}
.simple-workspace .attachment-add {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 5px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.simple-workspace .attachment-add:hover {
  background: var(--soft);
}
.simple-workspace .attachment-add:disabled {
  opacity: 0.35;
  cursor: default;
}
.attachment-add svg {
  width: 22px;
  height: 22px;
}
.simple-workspace .attachment-drafts {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 3px 2px 10px;
  max-width: 100%;
}
.simple-workspace .attachment-drafts[hidden] {
  display: none;
}
.attachment-draft {
  position: relative;
  flex: 0 0 auto;
  width: 126px;
  margin: 0;
  overflow: hidden;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}
.attachment-draft.audio {
  width: 240px;
  padding-top: 32px;
}
.attachment-draft img {
  width: 100%;
  height: 78px;
  object-fit: cover;
  border-radius: 6px;
}
.attachment-draft audio {
  width: 100%;
  height: 36px;
}
.attachment-draft figcaption {
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}
.attachment-draft small {
  display: block;
  white-space: normal;
  color: var(--ink-soft);
  line-height: 1.6;
}
.attachment-remove {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  cursor: pointer;
}
.message-attachments {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 12px;
  max-width: 100%;
  white-space: normal;
}
.message-body:empty,
.product-message > div:empty {
  display: none;
}
.message-attachment {
  max-width: 100%;
  width: min(100%, 430px);
  margin: 0;
}
.message-attachment a {
  display: block;
}
.message-attachment img {
  display: block;
  max-width: 100%;
  max-height: 360px;
  object-fit: contain;
  border-radius: 12px;
}
.message-attachment audio {
  display: block;
  width: 100%;
  max-width: 380px;
}
.message-attachment figcaption {
  font-size: 10px;
  color: var(--ink-soft);
  margin-top: 5px;
  overflow-wrap: anywhere;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.message-attachment .media-download {
  display: inline;
  flex-shrink: 0;
  font-size: 12px;
  color: var(--ink);
  text-underline-offset: 3px;
}
.generated-media-label {
  display: inline-block;
  margin-right: 6px;
  color: var(--ink-soft);
}
.product-trial .message-attachment img {
  max-height: 520px;
}
.audio-transcript {
  margin: 10px 0 0;
  font-size: 12px;
  white-space: pre-wrap;
  line-height: 1.8;
}
.audio-transcript > span {
  display: block;
  margin-bottom: 3px;
  font-size: 10px;
  color: var(--ink-soft);
}
.trial-failed {
  margin: 12px 0 0;
  color: #9d5345;
  font-size: 12px;
  white-space: normal;
}
.simple-workspace #testChatForm.media-composer {
  display: block;
}
.simple-workspace .quick-composer.media-composer {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.simple-workspace
  .product-feedback-composer.media-composer
  > .chat-input-shell {
  display: block;
}
.simple-workspace .sidebar-head h2 {
  font-size: 16px;
  font-weight: 600;
}
.simple-workspace .requirement-item-title {
  font-size: 15px;
  line-height: 1.65;
  font-weight: 500;
}
.simple-workspace .requirement-item {
  padding: 12px;
  gap: 7px;
}
.simple-workspace #newRequirementButton {
  width: 36px;
  height: 36px;
  border: 1px solid #fff;
  background: #fff;
  color: #252a31;
  border-radius: 10px;
  box-shadow: 0 2px 8px #26252212;
  font-size: 25px;
}
.simple-workspace #newRequirementButton:hover {
  box-shadow: 0 2px 12px #26252225;
  transform: translateY(-1px);
}
.session-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 5px;
}
.session-status.discussing {
  background: #edf1f6;
  color: #516379;
}
.session-status.pending_review {
  background: #fff0d7;
  color: #91610e;
}
.session-status.changes_requested {
  background: #fce9e7;
  color: #b64840;
}
.session-status.approved {
  background: #e5efff;
  color: #3767a5;
}
.session-status.building {
  background: #ede8fc;
  color: #7652b4;
}
.session-status.completed {
  background: #e1f2f8;
  color: #19748c;
}
.session-status.delivered {
  background: #e4f1ec;
  color: #267859;
}
.workflow-progress {
  padding: 19px 0 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 23px;
}
.workflow-progress-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ink-soft);
}
.workflow-progress ol {
  list-style: none;
  display: flex;
  margin: 20px 0 0;
  padding: 0;
}
.workflow-progress li {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #949492;
}
.workflow-progress li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: -50%;
  width: 100%;
  height: 1px;
  background: var(--line);
}
.workflow-progress li:first-child::before {
  display: none;
}
.workflow-progress li i {
  position: relative;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-style: normal;
  font-size: 10px;
}
.workflow-progress li.is-done,
.workflow-progress li.is-current {
  color: var(--ink);
}
.workflow-progress li.is-done i {
  background: var(--soft);
  border-color: var(--soft);
}
.workflow-progress li.is-current i {
  color: white;
  background: #363a42;
  border-color: #363a42;
}
.workflow-progress p {
  margin: 15px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.8;
}
.plan-overview h3,
.plan-diagram > h3,
.plan-section-heading,
.inline-deliveries > h3 {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 10px;
}
.plan-overview > p {
  margin: 0;
  font-size: 15px;
  line-height: 1.95;
  white-space: pre-wrap;
}
.plan-diagram {
  padding: 24px 0;
}
.plan-document .diagram-wrap {
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 160px;
  background: var(--paper);
}
.plan-document .diagram-wrap svg {
  min-height: 130px;
}
.simple-workspace .product-conversation .diagram-viewport {
  height: 310px;
  min-height: 230px;
}
.simple-workspace .diagram-expanded .diagram-viewport {
  height: 65vh;
}
/* The execution flow is part of the plan: give it the height it needs instead
   of making readers scroll through a second, clipped canvas. */
.simple-workspace .plan-document .diagram-viewport {
  height: auto;
  min-height: 0;
  max-height: none;
  flex: 0 0 auto;
}
.plan-full {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.plan-document .friendly-plan > .idea-definition {
  display: none;
}
.message-restore {
  background: transparent;
  border: 0;
  color: var(--ink-soft);
  font-size: 11px;
  padding: 7px 0;
  cursor: pointer;
  opacity: 0.75;
}
.message-restore:hover {
  color: var(--ink);
  opacity: 1;
}
.message-restore:disabled {
  cursor: help;
  opacity: 0.38;
}
.reply-choices {
  max-width: 560px;
  padding: 14px 0;
}
.reply-choices > p {
  font-size: 11px;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.reply-choices button {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  width: 100%;
  text-align: left;
  padding: 12px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 7px;
  cursor: pointer;
}
.reply-choices button:hover {
  background: var(--paper);
  border-color: #b9bdc5;
}
.reply-choices strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
}
.reply-choices small {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  color: var(--ink-soft);
  line-height: 1.7;
}
.choice-number {
  border: 1px solid var(--line);
  border-radius: 4px;
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 10px;
  color: var(--ink-soft);
}
.assessment-notice {
  border: 1px solid #ecd9b4;
  border-radius: 9px;
  padding: 17px;
  background: #fffbf2;
  margin: 15px 0 22px;
  color: #665534;
}
.assessment-notice h3 {
  font-size: 14px;
  margin: 0 0 9px;
}
.assessment-notice p,
.assessment-notice li {
  font-size: 12px;
  line-height: 1.85;
}
.assessment-notice ul,
.assessment-notice ol {
  padding-left: 19px;
}
.assessment-notice.is-warning {
  background: #fff4f2;
  color: #a3332b;
  border-color: #ecc2bd;
}
.assessment-notice .button {
  margin-top: 8px;
}
.inline-deliveries {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin: 20px 0;
  background: var(--canvas);
}
.simple-thinking.model-job-card {
  align-items: center;
}
.model-job-card > div {
  flex: 1;
  min-width: 0;
}
.model-job-card progress {
  display: block;
  margin-top: 12px;
  width: 100%;
  height: 4px;
}
progress {
  accent-color: #68649a;
  border: 0;
  border-radius: 5px;
  overflow: hidden;
}
progress::-webkit-progress-bar {
  background: #e9e7e3;
}
progress::-webkit-progress-value {
  background: #68649a;
  border-radius: 5px;
}
.owner-panels {
  grid-template-columns: minmax(0, 1fr);
}
.has-production .owner-panels {
  grid-template-columns: minmax(360px, 1.12fr) minmax(350px, 1fr);
}
.owner-plan-panel {
  border-left: 0;
}
.owner-plan-panel > .pane-heading {
  border-bottom: 1px solid var(--line);
  min-height: 72px;
}
.owner-plan-panel > .plan-scroll > .idea-reading {
  max-width: 860px;
  margin: auto;
  padding: 0;
}
.review-actions {
  display: flex;
  gap: 8px;
}
.pane-heading .button {
  padding: 9px 12px;
  min-height: 34px;
  font-size: 12px;
  white-space: nowrap;
}
.owner-discussion {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 28px;
}
.owner-discussion > h3,
.owner-comment > h3 {
  font-size: 13px;
}
.simple-workspace .owner-discussion .conversation-scroll {
  padding: 0;
  overflow: visible;
  height: auto;
  max-height: none;
}
.owner-discussion .message {
  margin: 18px 0;
}
.owner-comment {
  margin: 24px 0;
}
.owner-comment textarea {
  width: 100%;
}
.version-history-open {
  margin-top: 26px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding-top: 18px;
}
.version-history-open > header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.version-history-open h3 {
  font-size: 13px;
  margin: 0;
}
.version-history-open > header small {
  color: var(--ink-soft);
  font-size: 11px;
}
.version-tree details > summary {
  font-size: 12px;
  padding: 12px;
  cursor: pointer;
  color: var(--ink-soft);
  line-height: 1.7;
}
.version-delta h3 {
  margin: 0;
  font-size: 13px;
}
.version-delta ul {
  font-size: 12px;
  padding-left: 19px;
  line-height: 1.9;
}
.production-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
  border-left: 1px solid var(--line);
  background: var(--canvas);
}
.production-panel > .pane-heading {
  border-bottom: 1px solid var(--line);
  min-height: 72px;
}
.production-panel select {
  max-width: 205px;
  font-size: 11px;
  padding: 8px;
  background: var(--paper);
}
.production-scroll {
  flex: 1;
  overflow: auto;
  min-height: 0;
  padding: 24px;
  overflow-wrap: anywhere;
  scrollbar-gutter: stable;
}
.production-running h2 {
  font-size: 19px;
  font-weight: 600;
}
.production-running p {
  font-size: 13px;
  line-height: 1.85;
}
.production-running progress {
  display: block;
  width: 100%;
  height: 6px;
  margin-top: 22px;
}
.build-time {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 11px;
}
.product-message {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  font-size: 13px;
  line-height: 1.9;
}
.product-message:first-child {
  padding-top: 0;
}
.product-message > span {
  display: block;
  font-size: 11px;
  color: var(--ink-soft);
  margin-bottom: 7px;
}
.product-message > div:not(.diagram-wrap):not(.friendly-files) {
  white-space: pre-wrap;
}
.product-message.user {
  padding: 16px;
  border: 0;
  background: var(--soft);
  border-radius: 9px;
  margin: 18px 0;
}
.product-message h2 {
  font-size: 17px;
  font-weight: 600;
  margin: 7px 0;
}
.product-sharing,
.product-trial {
  border-bottom: 1px solid var(--line);
  padding: 23px 0;
}
.product-sharing > h3,
.product-trial > h3 {
  font-size: 14px;
  margin: 0 0 9px;
}
.product-sharing > p {
  font-size: 12px;
  line-height: 1.85;
  color: var(--ink-soft);
}
#materialShareForm label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  margin: 12px 0;
  cursor: pointer;
}
#materialShareForm input,
.risk-acknowledgment input {
  width: 15px;
  height: 15px;
  accent-color: #363a42;
}
#materialShareForm button {
  font-size: 12px;
  margin-top: 6px;
}
#testChatForm {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
#testChatForm textarea {
  flex: 1;
  width: 100%;
  resize: vertical;
  font-size: 12px;
}
#testChatForm button {
  font-size: 12px;
}
.product-feedback-composer {
  border-top: 1px solid var(--line);
  padding: 18px 23px;
  flex: 0 0 auto;
  background: var(--paper);
}
.product-feedback-composer > label {
  font-size: 12px;
  font-weight: 500;
  display: block;
  margin-bottom: 10px;
}
.product-feedback-composer textarea {
  width: 100%;
  font-size: 13px;
  resize: vertical;
  max-height: 180px;
  min-height: 64px;
}
.product-feedback-composer > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
}
.product-feedback-composer > div > span {
  font-size: 10px;
  color: var(--ink-soft);
}
.product-feedback-composer button {
  font-size: 12px;
}
.workflow-dialog {
  width: min(540px, calc(100vw - 32px));
  padding: 0;
}
.workflow-dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.workflow-dialog header h2 {
  font-size: 18px;
  margin: 0;
}
.workflow-dialog .dialog-content {
  padding: 20px 24px;
  font-size: 14px;
  line-height: 1.85;
}
.workflow-dialog textarea {
  display: block;
  width: 100%;
  margin-top: 12px;
}
.workflow-dialog footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 24px;
  border-top: 1px solid var(--line);
}
.workflow-dialog .dialog-error {
  color: #b33b32;
  margin: 10px 0 0;
  font-size: 12px;
}
.workflow-dialog .dialog-error:empty {
  display: none;
}
.platform-options {
  border: 0;
  padding: 0;
  margin: 22px 0 0;
}
.platform-options legend {
  font-weight: 500;
  font-size: 13px;
  margin-bottom: 12px;
}
.platform-options label {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-bottom: 10px;
  cursor: pointer;
}
.platform-options label:has(input:checked) {
  border-color: #888795;
  background: var(--canvas);
}
.platform-options input {
  width: 16px;
  height: 16px;
  accent-color: #363a42;
}
.platform-options strong {
  display: block;
  font-size: 14px;
}
.platform-options small {
  display: block;
  font-size: 12px;
  color: var(--ink-soft);
}
.risk-acknowledgment {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  color: #a3332b;
}
.button-danger {
  color: #fff;
  background: #ad4239;
  border: 1px solid #ad4239;
}
[data-theme="dark"] .session-status {
  background: var(--soft);
  filter: brightness(1.7);
}
[data-theme="dark"] .assessment-notice {
  background: #2f2b23;
  color: #e4c990;
  border-color: #66553a;
}
[data-theme="dark"] .assessment-notice.is-warning {
  background: #352725;
  color: #eda89e;
  border-color: #74504b;
}
@media (max-width: 1260px) {
  .has-production .owner-panels {
    grid-template-columns: minmax(340px, 1fr) minmax(335px, 1fr);
  }
  .production-scroll {
    padding: 20px;
  }
}
@media (max-width: 860px) {
  .owner-panels {
    display: flex;
  }
  .owner-panels > section {
    flex: 1;
  }
  .owner-workbench[data-mobile-pane="production"] .owner-plan-panel {
    display: none;
  }
  .owner-workbench[data-mobile-pane="plan"] .production-panel {
    display: none;
  }
  .owner-workbench[data-mobile-pane="production"] .production-panel {
    display: flex;
    border: 0;
  }
  .owner-workbench .owner-plan-panel {
    display: flex;
  }
  .owner-workbench:not(.has-production) .owner-plan-panel {
    display: flex;
  }
  .production-scroll {
    padding: 20px;
  }
}
@media (max-width: 480px) {
  .pane-heading .button {
    font-size: 11px;
    padding: 8px;
  }
  .review-actions {
    gap: 5px;
  }
  .creator-compose-area .composer-actions {
    flex-wrap: wrap;
  }
  .creator-compose-area .composer-actions .action-row {
    width: 100%;
    justify-content: space-between;
  }
  .product-feedback-composer {
    padding: 14px 18px;
  }
  .workflow-dialog .dialog-content,
  .workflow-dialog header,
  .workflow-dialog footer {
    padding: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .simple-workspace #newRequirementButton:hover {
    transform: none;
  }
}

.attachment-hint {
  color: var(--text-muted, #77746e);
  font-size: 11px;
  line-height: 1.55;
  margin: 7px 4px 0;
}
.attachment-file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.attachment-file svg,
.attachment-file-icon svg {
  width: 27px;
  height: 32px;
  flex: 0 0 27px;
  color: #77746e;
}
.attachment-file-action {
  margin-left: auto;
  font-size: 11px;
  white-space: nowrap;
}
.attachment-file-icon {
  padding: 8px;
  display: grid;
  place-items: center;
}
.attachment-reading {
  padding: 0 12px 10px;
  font-size: 11px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.attachment-reading p {
  margin: 3px 0;
}
.attachment-reading ul {
  margin: 4px 0;
  padding-left: 17px;
}
.attachment-warning {
  color: #906421;
}
.message-attachment.document,
.message-attachment.archive,
.message-attachment.file {
  min-width: min(260px, 100%);
  max-width: 100%;
}
.example-understanding-part {
  margin: 14px 0;
}
.example-understanding-part h4 {
  font-size: 12px;
  margin: 0 0 5px;
}
