.hc-conversation {
  --hc-bg: #fbfbf9;
  --hc-paper: #ffffff;
  --hc-ink: #252a25;
  --hc-muted: #788078;
  --hc-faint: #9aa39a;
  --hc-line: #e3e8e1;
  --hc-green: #315d45;
  --hc-green-soft: #edf4ed;
  --hc-green-line: #cbdcca;
  --hc-warm: #faf8ef;
  --hc-warm-ink: #766f51;
  --hc-danger: #8f4d47;
  min-height: 100%;
  color: var(--hc-ink);
  background: var(--hc-bg);
  font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  box-sizing: border-box;
}

.hc-conversation *,
.hc-conversation *::before,
.hc-conversation *::after {
  box-sizing: inherit;
}

.hc-conversation button,
.hc-conversation input,
.hc-conversation textarea,
.hc-conversation select {
  color: inherit;
  font: inherit;
}

.hc-conversation button {
  cursor: pointer;
}

.hc-conversation button:disabled,
.hc-conversation input:disabled,
.hc-conversation textarea:disabled {
  cursor: not-allowed;
  opacity: .58;
}

.hc-conversation button:focus-visible,
.hc-conversation input:focus-visible,
.hc-conversation textarea:focus-visible,
.hc-conversation summary:focus-visible {
  outline: 2px solid var(--hc-green);
  outline-offset: 3px;
}

.hc-shell {
  min-height: 100vh;
}

body.hc-conversation-page .studio-main {
  max-width: none;
  padding: 0;
}

.hc-header {
  width: min(1180px, calc(100% - 48px));
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
}

body.hc-conversation-page .hc-header {
  min-height: 48px;
}

body.hc-conversation-page .hc-header .hc-brand {
  display: none;
}

.hc-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.hc-brand strong {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -.2px;
}

.hc-brand-subtitle {
  color: var(--hc-muted);
  font-size: 12px;
  white-space: nowrap;
}

.hc-brand-mark,
.hc-hero-mark {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: var(--hc-green);
  font-weight: 600;
}

.hc-brand-mark {
  width: 33px;
  height: 33px;
  border-radius: 11px;
  font-size: 18px;
}

.hc-hero-mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 25px;
  border-radius: 18px;
  font-size: 30px;
}

.hc-button {
  min-height: 36px;
  border: 1px solid var(--hc-line);
  border-radius: 9px;
  padding: 8px 13px;
  background: var(--hc-paper);
  color: var(--hc-green);
  font-size: 12px;
  line-height: 1.2;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.hc-button:hover:not(:disabled) {
  border-color: #acc1ad;
  background: var(--hc-green-soft);
}

.hc-button-primary {
  border-color: var(--hc-green);
  background: var(--hc-green);
  color: #fff;
}

.hc-button-primary:hover:not(:disabled) {
  border-color: #254c37;
  background: #254c37;
  color: #fff;
}

.hc-button-quiet {
  color: #677269;
}

.hc-new-button {
  white-space: nowrap;
}

.hc-landing {
  width: min(800px, calc(100% - 40px));
  margin: clamp(72px, 13vh, 148px) auto 80px;
  text-align: center;
}

.hc-landing h1 {
  margin: 0;
  color: var(--hc-ink);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 560;
  letter-spacing: -1.25px;
  line-height: 1.35;
}

.hc-landing h1 span {
  display: block;
  color: #4f5c4e;
  font-size: .78em;
  font-weight: 430;
  letter-spacing: -.6px;
}

.hc-hero-copy {
  max-width: 560px;
  margin: 17px auto 31px;
  color: var(--hc-muted);
  font-size: 14px;
  line-height: 1.8;
}

.hc-composer {
  border: 1px solid #d8e1d7;
  border-radius: 22px;
  padding: 18px 20px 15px;
  background: var(--hc-paper);
  text-align: left;
  box-shadow: 0 8px 26px rgba(49, 93, 69, .035);
}

.hc-composer-input {
  display: block;
  width: 100%;
  min-height: 94px;
  resize: vertical;
  border: 0;
  padding: 1px 1px 0;
  outline: 0;
  background: transparent;
  font-size: 15px;
  line-height: 1.8;
}

.hc-composer-input::placeholder {
  color: #a0a89e;
}

.hc-composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 10px;
}

.hc-composer-hint {
  color: #929d92;
  font-size: 11px;
}

.hc-send-button {
  min-width: 70px;
  border-radius: 18px;
}

.hc-suggestions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 20px;
}

.hc-suggestion {
  border: 1px solid var(--hc-line);
  border-radius: 18px;
  padding: 8px 13px;
  background: transparent;
  color: #748078;
  font-size: 12px;
}

.hc-suggestion:hover:not(:disabled) {
  border-color: var(--hc-green-line);
  background: var(--hc-green-soft);
  color: var(--hc-green);
}

.hc-landing-note,
.hc-workspace-note {
  color: #a0a9a0;
  font-size: 11px;
}

.hc-landing-note {
  margin: 28px 0 0;
}

.hc-workspace {
  width: min(1060px, calc(100% - 48px));
  margin: 22px auto 70px;
}

.hc-user-message {
  max-width: 780px;
  margin: 0 0 25px auto;
  border-radius: 17px 17px 4px 17px;
  padding: 14px 18px;
  background: #eef1ed;
  white-space: pre-wrap;
}

.hc-user-message p {
  margin: 4px 0 0;
  line-height: 1.75;
}

.hc-transcript-role {
  display: inline-block;
  color: #879188;
  font-size: 10px;
  letter-spacing: .04em;
}

.hc-feedback {
  border: 1px solid var(--hc-line);
  border-radius: 16px;
  padding: 21px 24px 18px;
  background: #f3f7f1;
}

.hc-feedback-heading,
.hc-section-heading,
.hc-card-header,
.hc-generation-heading,
.hc-ready-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hc-feedback-heading h2,
.hc-section-heading h2,
.hc-card-header h2,
.hc-generation-heading h2 {
  margin: 2px 0 0;
  font-size: 17px;
  font-weight: 580;
  letter-spacing: -.2px;
}

.hc-eyebrow {
  display: block;
  color: #899589;
  font-size: 10px;
  letter-spacing: .13em;
}

.hc-readiness,
.hc-card-status,
.hc-generation-badge {
  border-radius: 15px;
  padding: 5px 9px;
  background: #ecece6;
  color: #807f6d;
  font-size: 10px;
  white-space: nowrap;
}

.hc-readiness.is-ready,
.hc-card-status.is-confirmed,
.hc-generation-badge.is-feasible {
  background: var(--hc-green-soft);
  color: var(--hc-green);
}

.hc-generation-badge.is-infeasible {
  background: #f7ece8;
  color: var(--hc-danger);
}

.hc-understanding {
  max-width: 780px;
  margin: 12px 0 4px;
  color: #506250;
  line-height: 1.8;
  white-space: pre-wrap;
}

.hc-feedback-section {
  margin-top: 16px;
}

.hc-feedback-section h3,
.hc-generation-subtitle {
  margin: 12px 0 7px;
  color: #677767;
  font-size: 12px;
  font-weight: 600;
}

.hc-change-list,
.hc-missing-list,
.hc-optional-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hc-change-list li,
.hc-missing-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: baseline;
  color: #68776a;
  font-size: 12px;
}

.hc-change-list strong,
.hc-missing-list strong {
  color: #4e6252;
  font-weight: 600;
}

.hc-missing-list span {
  color: #7c877d;
}

.hc-optional-heading {
  margin-top: 15px !important;
}

.hc-optional-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hc-optional-list li {
  border-radius: 5px;
  padding: 4px 8px;
  background: #e9eee7;
  color: #718071;
  font-size: 11px;
}

.hc-ready-copy,
.hc-question {
  margin: 8px 0 0;
  color: #55705b;
  font-size: 12px;
}

.hc-question {
  color: #6d796f;
}

.hc-warning,
.hc-generation-notice {
  margin-top: 15px;
  border-radius: 9px;
  padding: 10px 12px;
  background: var(--hc-warm);
  color: var(--hc-warm-ink);
  font-size: 12px;
}

.hc-warning strong,
.hc-generation-notice strong {
  font-weight: 650;
}

.hc-warning p,
.hc-generation-notice p {
  margin: 4px 0 0;
  line-height: 1.7;
}

.hc-generation-notice.is-infeasible {
  background: #fff2ee;
  color: var(--hc-danger);
}

.hc-transcript-details {
  margin-top: 17px;
  border-top: 1px solid rgba(147, 165, 146, .25);
  padding-top: 12px;
  color: #718072;
  font-size: 11px;
}

.hc-transcript-details summary {
  cursor: pointer;
}

.hc-transcript {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.hc-transcript-line {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 7px;
  white-space: pre-wrap;
  line-height: 1.7;
}

.hc-transcript-line.is-user {
  color: #57625a;
}

.hc-project-row {
  margin: 18px 0;
  border: 1px solid var(--hc-line);
  border-radius: 15px;
  padding: 18px 20px;
  background: var(--hc-paper);
}

.hc-project-row .hc-section-heading {
  align-items: flex-start;
  margin-bottom: 14px;
}

.hc-project-values {
  display: grid;
  grid-template-columns: minmax(150px, .8fr) minmax(150px, .8fr) minmax(250px, 1.6fr);
  gap: 14px 22px;
  margin-bottom: 14px;
}

.hc-project-value {
  min-width: 0;
}

.hc-project-value strong {
  display: block;
  overflow: hidden;
  color: #4e5f51;
  font-size: 13px;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hc-edit-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

.hc-project-row .hc-edit-form .hc-field:last-of-type,
.hc-edit-form .hc-field:has(textarea[name="goal_text"]),
.hc-edit-form .hc-field:has(textarea[name="problem_description"]) {
  grid-column: 1 / -1;
}

.hc-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.hc-field-label {
  display: block;
  color: #879287;
  font-size: 10px;
}

.hc-field-label-spaced {
  margin-top: 15px;
}

.hc-field-help {
  color: #9aa49b;
  font-size: 10px;
}

.hc-input {
  width: 100%;
  min-width: 0;
  border: 1px solid #dce4da;
  border-radius: 8px;
  padding: 8px 9px;
  outline: 0;
  background: #fcfdfb;
  font-size: 12px;
}

.hc-input:focus {
  border-color: #9bb7a0;
  background: #fff;
}

.hc-textarea {
  min-height: 68px;
  resize: vertical;
  line-height: 1.65;
}

.hc-check-field {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #677568;
  font-size: 11px;
}

.hc-check-field input {
  accent-color: var(--hc-green);
}

.hc-hard-toggle {
  align-self: end;
  margin-top: -7px;
  margin-bottom: 2px;
}

.hc-edit-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  grid-column: 1 / -1;
  margin-top: 4px;
}

.hc-form-error {
  flex: 1 1 auto;
  margin: 0;
  color: var(--hc-danger);
  font-size: 11px;
}

.hc-card-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.35fr);
  gap: 17px;
}

.hc-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid var(--hc-line);
  border-radius: 15px;
  padding: 21px;
  background: var(--hc-paper);
}

.hc-constraints-card {
  grid-column: 1 / -1;
}

.hc-card-title {
  display: flex;
  align-items: center;
  gap: 9px;
}

.hc-card-icon {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 8px;
  background: var(--hc-green-soft);
  color: var(--hc-green);
  font-size: 16px;
}

.hc-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 19px;
}

.hc-detail {
  min-width: 0;
}

.hc-detail strong,
.hc-card-value {
  display: block;
  overflow-wrap: anywhere;
  color: #4d5d50;
  font-size: 13px;
  font-weight: 550;
}

.hc-card-value {
  min-height: 22px;
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.7;
}

.hc-unknown {
  color: #a0a99f;
  font-size: 11px;
}

.hc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 22px;
}

.hc-tag {
  border-radius: 6px;
  padding: 5px 8px;
  background: #f0f5ef;
  color: #5f765f;
  font-size: 11px;
}

.hc-card-note {
  margin: 15px 0 0;
  color: #929d93;
  font-size: 11px;
  line-height: 1.7;
}

.hc-card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 21px;
}

.hc-confirmed-note {
  color: var(--hc-green);
  font-size: 11px;
}

.hc-scenario-highlight {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin: 19px 0 8px;
}

.hc-scenario-highlight strong {
  color: #3d6146;
  font-size: 26px;
  font-weight: 520;
  letter-spacing: -.7px;
}

.hc-scenario-highlight span {
  color: #738272;
  font-size: 13px;
}

.hc-card-summary {
  margin: 0;
  color: #607061;
  font-size: 12px;
}

.hc-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 19px;
}

.hc-metric {
  min-width: 0;
  border-right: 1px solid var(--hc-line);
  padding-right: 14px;
}

.hc-metric:last-child {
  border-right: 0;
}

.hc-metric strong {
  display: block;
  overflow-wrap: anywhere;
  color: #4d5d50;
  font-size: 21px;
  font-weight: 520;
  line-height: 1.35;
}

.hc-metric small {
  display: block;
  margin-top: 5px;
  color: #9aa39b;
  font-size: 10px;
}

.hc-ready-bar {
  margin: 22px 0 0;
  padding: 17px 0 0;
  border-top: 1px solid var(--hc-line);
}

.hc-ready-bar p {
  margin: 0;
  color: #7a887c;
  font-size: 12px;
}

.hc-generate-button {
  min-width: 165px;
}

.hc-generation {
  margin-top: 24px;
  border-top: 1px solid var(--hc-line);
  padding-top: 23px;
}

.hc-generation-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 18px 0;
}

.hc-generation-metric {
  border-right: 1px solid var(--hc-line);
  padding-right: 14px;
}

.hc-generation-metric:last-child {
  border-right: 0;
}

.hc-generation-metric strong {
  display: block;
  color: #4e6351;
  font-size: 21px;
  font-weight: 520;
}

.hc-task-list {
  display: grid;
  gap: 8px;
}

.hc-task {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: start;
  border-bottom: 1px solid #edf0ec;
  padding: 10px 0;
}

.hc-task-number {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--hc-green-line);
  border-radius: 50%;
  color: var(--hc-green);
  font-size: 11px;
}

.hc-task-body strong {
  color: #506351;
  font-size: 13px;
  font-weight: 600;
}

.hc-task-body p {
  margin: 3px 0 0;
  color: #778278;
  font-size: 12px;
  line-height: 1.65;
}

.hc-task-meta {
  color: #8f9c90;
  font-size: 11px;
  white-space: nowrap;
}

.hc-cost-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hc-cost-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #edf0ec;
  padding: 8px 0;
  color: #687569;
  font-size: 12px;
}

.hc-cost-list strong {
  color: #506351;
  font-weight: 600;
}

.hc-generation-details {
  margin-top: 18px;
  border-top: 1px solid #edf0ec;
  padding-top: 13px;
}

.hc-generation-details > summary {
  cursor: pointer;
  color: #506351;
  font-size: 12px;
  font-weight: 600;
}

.hc-generation-detail-group {
  margin-top: 12px;
}

.hc-generation-detail-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: #687569;
  font-size: 12px;
  line-height: 1.65;
}

.hc-generation-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 21px;
}

.hc-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  border: 1px solid #ecd4d0;
  border-radius: 9px;
  padding: 11px 13px;
  background: #fff4f1;
  color: var(--hc-danger);
  font-size: 12px;
}

.hc-status-line {
  margin: 13px 0 0;
  color: var(--hc-green);
  font-size: 12px;
}

.hc-workspace > .hc-composer {
  margin-top: 22px;
}

.hc-workspace .hc-composer-input {
  min-height: 52px;
}

.hc-workspace-note {
  margin: 18px 0 0;
  text-align: center;
}

@media (max-width: 820px) {
  .hc-header,
  .hc-workspace {
    width: min(100% - 32px, 680px);
  }

  .hc-landing {
    width: min(100% - 32px, 680px);
    margin-top: 65px;
  }

  .hc-project-values {
    grid-template-columns: 1fr 1fr;
  }

  .hc-project-value:last-child {
    grid-column: 1 / -1;
  }

  .hc-card-grid {
    grid-template-columns: 1fr;
  }

  .hc-constraints-card {
    grid-column: auto;
  }
}

@media (max-width: 600px) {
  .hc-header {
    min-height: 62px;
  }

  .hc-brand-subtitle {
    display: none;
  }

  .hc-new-button {
    padding-inline: 10px;
  }

  .hc-landing {
    margin-top: 48px;
  }

  .hc-landing h1 {
    font-size: 28px;
  }

  .hc-hero-copy {
    font-size: 12px;
  }

  .hc-composer {
    padding: 14px 15px 12px;
  }

  .hc-workspace {
    margin-top: 13px;
  }

  .hc-feedback,
  .hc-project-row,
  .hc-card {
    padding: 17px;
  }

  .hc-project-values,
  .hc-edit-form,
  .hc-detail-grid {
    grid-template-columns: 1fr;
  }

  .hc-project-value:last-child,
  .hc-project-row .hc-edit-form .hc-field:last-of-type,
  .hc-edit-form .hc-field:has(textarea[name="goal_text"]),
  .hc-edit-form .hc-field:has(textarea[name="problem_description"]) {
    grid-column: auto;
  }

  .hc-metrics,
  .hc-generation-summary {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }

  .hc-metric:nth-child(2),
  .hc-generation-metric:nth-child(2) {
    border-right: 0;
  }

  .hc-ready-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .hc-generate-button {
    width: 100%;
  }

  .hc-generation-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .hc-task {
    grid-template-columns: 27px minmax(0, 1fr);
  }

  .hc-task-meta {
    grid-column: 2;
  }

  .hc-generation-actions,
  .hc-error {
    align-items: stretch;
    flex-direction: column;
  }

  .hc-generation-actions .hc-button {
    width: 100%;
  }
}


/* Keep the conversation theme distinct from the existing project workspace. */
body.hc-conversation-page .studio-topbar { background: #fbfbf9; border-bottom: 1px solid #e5e8e2; }
body.hc-conversation-page .studio-mark { background: #315d45; }
.hc-conversation .hc-button-primary { color: #fff; background: var(--hc-green); border-color: var(--hc-green); }
