/* 项目基本信息：编辑态视觉和基本资料排版；不改变表单操作。 */
.project-info-screen.is-editing:not(.client-access-active) .project-info-head {
  border-bottom-color: rgba(var(--ui-source-3b13235b8ec2d0-rgb, 200, 147, 56), var(--ui-source-3b13235b8ec2d0-alpha, 1));
}

.project-info-screen .project-profile-edit-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(var(--ui-source-b90b0b25e0a2f3-rgb, 201, 149, 62), var(--ui-source-b90b0b25e0a2f3-alpha, 1));
  border-radius: 7px;
  background: rgba(var(--ui-source-18912ec38a0b03-rgb, 255, 240, 207), var(--ui-source-18912ec38a0b03-alpha, 1));
  color: rgba(var(--ui-source-7a4e93b96cacc4-rgb, 118, 80, 22), var(--ui-source-7a4e93b96cacc4-alpha, 1));
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.project-info-screen.is-editing:not(.client-access-active) .project-profile-tabs {
  border-color: rgba(var(--ui-source-b660d72c858652-rgb, 216, 182, 117), var(--ui-source-b660d72c858652-alpha, 1));
  background: rgba(var(--ui-source-29cddcaac31cf3-rgb, 255, 248, 235), var(--ui-source-29cddcaac31cf3-alpha, 1));
}

.project-info-screen.is-editing:not(.client-access-active) .project-info-scroll {
  box-sizing: border-box;
  border: 1px solid rgba(var(--ui-source-ae9be87a677f88-rgb, 223, 186, 116), var(--ui-source-ae9be87a677f88-alpha, 1));
  border-radius: 12px;
  background: rgba(var(--ui-source-c1340524a9c561-rgb, 255, 248, 236), var(--ui-source-c1340524a9c561-alpha, 1));
  box-shadow: inset 4px 0 0 rgba(var(--ui-source-e3f39963529a4a-rgb, 200, 147, 56), var(--ui-source-e3f39963529a4a-alpha, 1));
  padding: 12px 12px 18px 16px;
}

.project-info-screen.is-editing:not(.client-access-active) .project-profile-form .profile-basic-edit.compact {
  border-color: rgba(var(--ui-source-b90b0b25e0a2f3-rgb, 201, 149, 62), var(--ui-source-b90b0b25e0a2f3-alpha, 1));
  background: rgba(var(--ui-source-5b3451d1f81221-rgb, 255, 250, 241), var(--ui-source-5b3451d1f81221-alpha, 1));
  box-shadow: 0 4px 14px rgba(var(--ui-source-762b17940fea53-rgb, 117, 77, 20), var(--ui-source-762b17940fea53-alpha, 0.09));
}

body[data-theme="tech"] .project-info-screen.is-editing:not(.client-access-active) .project-profile-tabs {
  border-color: #a47e43;
  background: #211e18;
}

body[data-theme="tech"] .project-info-screen.is-editing:not(.client-access-active) .project-info-scroll {
  border-color: #a47e43;
  background: #211e18;
  box-shadow: inset 4px 0 0 #c89338;
}

body[data-theme="tech"] .project-info-screen.is-editing:not(.client-access-active) .project-profile-form .profile-basic-edit.compact {
  border-color: #a47e43;
  background: #29251d;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
}

body[data-theme="tech"] .project-info-screen .project-profile-edit-badge {
  border-color: #b68b47;
  background: #3a2e1b;
  color: #f5d49a;
}

/* 基本资料编辑态：上传入口保持内容宽度，不再把两个短文案拉满整行。 */
.project-info-screen.is-editing:not(.client-access-active) .profile-basic-form-panel.is-active .intake-upload-grid {
  width: 100%;
  max-width: 840px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* 五项命盘只读信息在桌面同排，日期和出生地得到略多空间。 */
.project-info-screen.is-editing:not(.client-access-active) .profile-basic-form-panel.is-active .profile-authority-values {
  width: 100%;
  max-width: 1180px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1.4fr) minmax(0, 1.2fr);
}

.project-info-screen.is-editing:not(.client-access-active) .profile-basic-form-panel.is-active .profile-authority-values > div {
  min-width: 0;
}

.project-info-screen.is-editing:not(.client-access-active) .profile-basic-form-panel.is-active .profile-authority-values b {
  overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
  .project-info-screen.is-editing:not(.client-access-active) .profile-basic-form-panel.is-active .profile-authority-values {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .project-info-screen.is-editing:not(.client-access-active) .profile-basic-form-panel.is-active .intake-upload-grid {
    max-width: 480px;
    grid-template-columns: minmax(0, 1fr);
  }

  .project-info-screen.is-editing:not(.client-access-active) .profile-basic-form-panel.is-active .profile-authority-values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .project-info-screen.is-editing:not(.client-access-active) .profile-basic-form-panel.is-active .profile-authority-values {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 基本资料编辑台：截图入口居左，原有项目字段和命盘只读资料放入右侧空位。 */
@media (min-width: 1850px) {
  .project-info-screen.is-editing:not(.client-access-active) .project-profile-form .profile-basic-form-panel.is-active {
    grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
    align-items: start;
  }

  .project-info-screen.is-editing:not(.client-access-active) .profile-basic-form-panel.is-active > .profile-intake-edit {
    grid-column: 1;
  }

  .project-info-screen.is-editing:not(.client-access-active) .profile-basic-form-panel.is-active > .profile-basic-edit.compact {
    grid-column: 2;
    padding: 6px 10px;
  }

  .project-info-screen.is-editing:not(.client-access-active) .profile-basic-form-panel.is-active > .profile-basic-edit.compact h3 {
    margin-bottom: 4px;
    font-size: 16px;
    line-height: 19px;
  }

  .project-info-screen.is-editing:not(.client-access-active) .profile-basic-form-panel.is-active > .profile-basic-edit.compact .form-grid.two {
    gap: 7px;
  }

  .project-info-screen.is-editing:not(.client-access-active) .profile-basic-form-panel.is-active > .profile-basic-edit.compact .field {
    gap: 2px;
  }

  .project-info-screen.is-editing:not(.client-access-active) .profile-basic-form-panel.is-active > .profile-basic-edit.compact .field label {
    font-size: 11px;
    line-height: 15px;
  }

  .project-info-screen.is-editing:not(.client-access-active) .profile-basic-form-panel.is-active > .profile-basic-edit.compact .field input,
  .project-info-screen.is-editing:not(.client-access-active) .profile-basic-form-panel.is-active > .profile-basic-edit.compact .field select {
    min-height: 40px;
    padding: 6px 8px;
    font-size: 13px;
  }

  .project-info-screen.is-editing:not(.client-access-active) .profile-basic-form-panel.is-active > .profile-basic-edit.compact .field small {
    font-size: 10px;
    line-height: 11px;
    letter-spacing: -.6px;
    white-space: nowrap;
  }

  .project-info-screen.is-editing:not(.client-access-active) .profile-basic-form-panel.is-active > .profile-basic-edit.compact .profile-authority-readonly {
    margin-top: 0;
    padding: 6px 8px;
  }

  .project-info-screen.is-editing:not(.client-access-active) .profile-basic-form-panel.is-active > .profile-basic-edit.compact .profile-authority-title strong {
    font-size: 13px;
  }

  .project-info-screen.is-editing:not(.client-access-active) .profile-basic-form-panel.is-active > .profile-basic-edit.compact .profile-authority-title span {
    font-size: 10px;
  }

  .project-info-screen.is-editing:not(.client-access-active) .profile-basic-form-panel.is-active > .profile-basic-edit.compact .profile-authority-values {
    gap: 5px;
    margin-top: 4px;
  }

  .project-info-screen.is-editing:not(.client-access-active) .profile-basic-form-panel.is-active > .profile-basic-edit.compact .profile-authority-values > div {
    padding: 4px 6px;
  }

  .project-info-screen.is-editing:not(.client-access-active) .profile-basic-form-panel.is-active > .profile-basic-edit.compact .profile-authority-values span {
    font-size: 11px;
    line-height: 14px;
  }

  .project-info-screen.is-editing:not(.client-access-active) .profile-basic-form-panel.is-active > .profile-basic-edit.compact .profile-authority-values b {
    margin-top: 1px;
    font-size: 12px;
    line-height: 15px;
  }

  .project-info-screen.is-editing:not(.client-access-active) .profile-basic-form-panel.is-active > .profile-basic-edit.compact .profile-authority-readonly p {
    margin-top: 4px;
    font-size: 11px;
    line-height: 13px;
  }

  .project-info-screen.is-editing:not(.client-access-active) .profile-basic-form-panel.is-active > :nth-child(n + 3) {
    grid-column: 1 / -1;
  }

  .project-info-screen.is-editing:not(.client-access-active) .project-profile-form .profile-basic-form-panel.is-active > .profile-basic-edit.compact .form-grid.two {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .project-info-screen.is-editing:not(.client-access-active) .profile-basic-form-panel.is-active > .profile-basic-edit.compact .profile-authority-values {
    grid-template-columns: minmax(0, .8fr) minmax(0, .8fr) minmax(0, 1.4fr) minmax(0, 1.2fr) minmax(0, .9fr);
  }
}

/* 起名要求并入基本资料：运势图收成左侧工具栏，右侧用于客户要求。 */
.project-info-screen .project-profile-tabs {
  grid-template-columns: repeat(4, minmax(135px, 205px)) minmax(180px, 1fr);
}

.project-info-screen .profile-basic-lower {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(320px, 28fr) minmax(0, 72fr);
  align-items: start;
  gap: 12px;
}

.project-info-screen .profile-basic-lower > .fortune-curve-card {
  grid-column: auto;
  width: 100%;
  margin: 0;
  padding: 13px;
}

.project-info-screen .profile-basic-lower .fortune-curve-title svg {
  width: 31px;
  height: 27px;
}

.project-info-screen .profile-basic-lower .fortune-curve-title h3 {
  margin-bottom: 2px;
  font-size: 16px;
}

.project-info-screen .profile-basic-lower .fortune-curve-title p,
.project-info-screen .profile-basic-lower .fortune-curve-footnote,
.project-info-screen .profile-basic-lower .fortune-curve-empty {
  font-size: 11px;
  line-height: 1.5;
}

.project-info-screen .profile-basic-lower .fortune-curve-steps {
  gap: 5px;
  margin: 12px 0 10px;
  font-size: 11px;
}

.project-info-screen .profile-basic-lower .fortune-curve-steps span {
  padding: 4px 6px;
}

.project-info-screen .profile-basic-lower .fortune-curve-summary {
  flex-direction: column;
  gap: 6px;
  padding: 10px;
}

.project-info-screen .profile-basic-lower .fortune-curve-summary small {
  max-width: none;
  font-size: 11px;
  line-height: 1.45;
}

.project-info-screen .profile-basic-lower .fortune-curve-actions {
  gap: 6px;
  margin: 10px 0 8px;
}

.project-info-screen .profile-basic-lower .fortune-curve-card button {
  min-height: 31px;
  font-size: 11px;
}

.project-info-screen .profile-basic-lower .fortune-curve-metadata {
  margin: 10px 0;
  padding: 10px;
}

.project-info-screen .profile-basic-lower .fortune-curve-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.project-info-screen .profile-requirements-inline {
  min-width: 0;
  display: grid;
  gap: 9px;
}

.project-info-screen .profile-requirements-inline .profile-intake-requirements,
.project-info-screen .profile-requirements-inline .profile-requirements-primary,
.project-info-screen .profile-requirements-inline .profile-naming-methods {
  margin: 0;
  padding: 11px;
}

.project-info-screen .profile-requirements-inline .profile-intake-requirements .intake-empty {
  margin-top: 7px;
  padding: 9px;
}

.project-info-screen .profile-requirements-inline .project-requirement-columns {
  gap: 8px;
  margin-top: 8px;
}

.project-info-screen .profile-requirements-inline .project-requirement-manager-heading {
  padding-bottom: 7px;
}

.project-info-screen .profile-basic-lower:has(.fortune-curve-preview) {
  grid-template-columns: minmax(0, 1fr);
}

.project-info-screen .profile-basic-lower:has(.fortune-curve-preview) > .fortune-curve-card {
  grid-column: 1;
}

.project-info-screen .profile-basic-lower-summary .profile-summary-card.requirements {
  min-width: 0;
}

/* 仅基本资料展示态：左侧运势图卡片与右侧起名要求卡片等高。 */
@media (min-width: 1600px) {
  .project-info-screen:not(.is-editing) .project-profile-summary:not(.compact) .profile-basic-lower-summary:not(:has(.fortune-curve-preview)) {
    align-items: stretch;
  }

  .project-info-screen:not(.is-editing) .project-profile-summary:not(.compact) .profile-basic-lower-summary:not(:has(.fortune-curve-preview)) > .fortune-curve-card {
    align-self: stretch;
    height: 100%;
  }
}

.project-info-screen .project-profile-summary.compact .profile-basic-lower,
.project-info-screen.client-access-active .profile-basic-lower,
.project-info-screen .profile-basic-lower:not(:has(.fortune-curve-card)) {
  grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 1599px) {
  .project-info-screen .profile-basic-lower {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 1180px) {
  .project-info-screen .project-profile-tabs {
    grid-template-columns: repeat(4, minmax(118px, 1fr));
  }
}

@media (max-width: 900px) {
  .project-info-screen .project-profile-tabs {
    grid-template-columns: repeat(4, minmax(122px, 1fr));
  }
}

/* 桌面一屏工作台：左侧保留参考工具，右侧集中客户要求。 */
@media (min-width: 1600px) {
  .project-info-screen.is-editing:not(.client-access-active) .profile-basic-lower:not(:has(.fortune-curve-preview)) > .profile-requirements-inline {
    display: contents;
  }

  .project-info-screen.is-editing:not(.client-access-active) .profile-basic-lower:not(:has(.fortune-curve-preview)) > .fortune-curve-card {
    grid-column: 1;
    grid-row: 1;
  }

  .project-info-screen.is-editing:not(.client-access-active) .profile-basic-lower:not(:has(.fortune-curve-preview)) .profile-requirements-primary {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: start;
  }

  .project-info-screen.is-editing:not(.client-access-active) .profile-basic-lower:not(:has(.fortune-curve-preview)) .profile-naming-methods {
    grid-column: 1;
    grid-row: 2;
    padding: 9px;
  }

  .project-info-screen.is-editing:not(.client-access-active) .profile-basic-lower:not(:has(.fortune-curve-preview)) .profile-naming-methods h3 {
    margin: 0 0 5px;
    font-size: 13px;
  }

  .project-info-screen.is-editing:not(.client-access-active) .profile-basic-lower:not(:has(.fortune-curve-preview)) .profile-method-setting {
    padding: 7px 9px;
  }

  .project-info-screen.is-editing:not(.client-access-active) .profile-basic-lower:not(:has(.fortune-curve-preview)) .profile-method-setting small {
    margin-top: 3px;
    font-size: 10px;
    line-height: 1.35;
  }

  .project-info-screen.is-editing:not(.client-access-active) .profile-basic-lower .profile-intake-requirements:has(.intake-empty) {
    padding: 8px 10px;
  }

  .project-info-screen.is-editing:not(.client-access-active) .profile-basic-lower .profile-intake-requirements:has(.intake-empty) .intake-empty {
    margin-top: 5px;
    padding: 6px 8px;
    font-size: 11px;
    line-height: 1.25;
  }

  .project-info-screen.is-editing:not(.client-access-active) .profile-basic-lower .profile-requirements-primary .project-requirement-row {
    min-height: 46px;
    padding: 4px 0;
  }

  .project-info-screen.is-editing:not(.client-access-active) .profile-basic-lower .profile-requirements-primary .project-requirement-row.is-long {
    min-height: 56px;
  }

  .project-info-screen.is-editing:not(.client-access-active) .profile-basic-lower .profile-requirements-primary #pp-core-direction {
    height: 90px;
    min-height: 90px;
  }

  .project-info-screen.is-editing:not(.client-access-active) .profile-basic-lower .project-requirement-manager-note {
    min-height: 24px;
    margin-top: 6px;
    padding-top: 5px;
  }
}

/* 聊天整理结果只在客户要求中提示，沿用同一套字段核对与保存。 */
.project-info-screen .project-intake-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 10px;
  margin-top: 9px;
  padding: 9px 11px;
  border: 1px solid rgba(var(--ui-source-c7f3562b6a7737-rgb, 223, 203, 160), var(--ui-source-c7f3562b6a7737-alpha, 1));
  border-radius: 8px;
  background: rgba(var(--ui-source-10dc92cc12842b-rgb, 255, 248, 232), var(--ui-source-10dc92cc12842b-alpha, 1));
  color: rgba(var(--ui-source-203124def090ae-rgb, 102, 81, 49), var(--ui-source-203124def090ae-alpha, 1));
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.project-info-screen .project-intake-uncertain,
.project-info-screen .project-intake-details {
  flex-basis: 100%;
  min-width: 0;
}
.project-info-screen .project-intake-uncertain b {
  margin-right: 8px;
}
.project-info-screen .project-intake-details summary {
  cursor: pointer;
}
.project-info-screen .project-intake-details p {
  margin: 6px 0 0;
}
body[data-theme="tech"] .project-info-screen .project-intake-notice {
  background: rgba(127, 94, 28, .16);
  border-color: rgba(218, 173, 87, .4);
  color: #e4c783;
}
