:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --text: #172339;
  --muted: #5f6f8b;
  --line: #d8e0ef;
  --primary: #1f6feb;
  --danger: #c62828;
}

/* v192: contract snapshot and customer signing */
.customer-contract-section {
  border: 1px solid #c9dff4;
  background: linear-gradient(180deg, #fbfdff 0%, #f5faff 100%);
}

.customer-contract-section.contract-signed {
  border-color: #b8dfcf;
  background: linear-gradient(180deg, #fbfffd 0%, #f1faf6 100%);
}

.customer-contract-waiting,
.customer-contract-stale {
  padding: 18px 20px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: #eef6fd;
  color: #24435f;
}

.customer-contract-stale {
  background: #fff4ee;
  color: #7e3b22;
}

.customer-contract-waiting b,
.customer-contract-stale b {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.customer-contract-summary-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.customer-contract-summary-card > div,
.customer-contract-parties > div,
.customer-contract-quote-scope > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding: 16px;
  border: 1px solid #d6e4f1;
  border-radius: 13px;
  background: #fff;
}

.customer-contract-summary-card small,
.customer-contract-parties small,
.customer-contract-quote-scope small {
  color: #678099;
}

.customer-contract-summary-card b,
.customer-contract-parties b,
.customer-contract-quote-scope b {
  color: #143a61;
  overflow-wrap: anywhere;
}

.customer-contract-expand {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 18px;
  border: 1px solid #bdd6ec;
  border-radius: 13px;
  background: #fff;
  color: #164d7b;
  text-align: left;
}

.customer-contract-expand span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.customer-contract-expand small {
  color: #6d8297;
  font-weight: 400;
}

.customer-contract-expand em {
  font-style: normal;
}

.customer-contract-download-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 14px;
}

.customer-contract-download-row button {
  min-height: 38px;
  border-color: #9fc5ee;
  color: #0b5cad;
  font-weight: 700;
  background: #fff;
}

.customer-contract-download-row span,
.customer-contract-sms-note {
  color: #58708c;
  font-size: 13px;
}

.customer-contract-document {
  margin-top: 14px;
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid #ccddec;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(29, 73, 112, .08);
}

.customer-contract-document > header {
  padding-bottom: 18px;
  border-bottom: 2px solid #1d6cb5;
  text-align: center;
}

.customer-contract-document > header h3 {
  margin: 6px 0 8px;
  font-size: clamp(22px, 3vw, 30px);
  color: #113c64;
}

.customer-contract-parties,
.customer-contract-boundaries {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.customer-contract-quote-scope {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.customer-contract-clauses {
  display: grid;
  gap: 0;
  margin-top: 22px;
  border-top: 1px solid #d9e5ef;
}

.customer-contract-clauses article {
  padding: 16px 2px;
  border-bottom: 1px solid #d9e5ef;
}

.customer-contract-clauses h4 {
  margin: 0 0 7px;
  color: #143d63;
}

.customer-contract-clauses p {
  margin: 0;
  color: #455e75;
  line-height: 1.8;
}

.customer-contract-boundaries > div {
  padding: 16px 18px;
  border-radius: 13px;
  background: #f5f9fc;
}

.customer-contract-boundaries h4 {
  margin-top: 0;
}

.customer-contract-hash,
.customer-contract-compliance {
  padding: 12px 14px;
  margin: 16px 0 0;
  border-radius: 10px;
  background: #f2f6fa;
  color: #61778c;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.customer-contract-signed-result {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 20px;
  padding: 18px;
  border: 1px solid #acd7c4;
  border-radius: 13px;
  background: #edf9f3;
  color: #126543;
}

.customer-contract-next-step {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
  padding: 16px 18px;
  border: 1px solid #acd7c4;
  border-radius: 13px;
  background: #edf9f3;
  color: #126543;
}

.customer-contract-next-step div {
  display: grid;
  gap: 4px;
}

.customer-contract-next-step p {
  margin: 0;
  color: #376b58;
  line-height: 1.6;
}

.customer-contract-next-step > span {
  flex: 0 0 auto;
  align-self: flex-start;
  padding: 7px 11px;
  border-radius: 999px;
  background: #d5f1e3;
  font-weight: 700;
}

.customer-contract-sign-form {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 2px solid #d6e4f0;
}

.customer-contract-sign-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.customer-contract-sms-input {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.customer-contract-sms-input button {
  min-height: 40px;
  padding: 0 12px;
  white-space: nowrap;
}

.customer-contract-sms-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid #cfe4fa;
  border-radius: 10px;
  background: #eff7ff;
}

.customer-contract-sms-note b {
  color: #9a5b00;
  font-size: 16px;
  letter-spacing: 2px;
}

.customer-contract-sign-fields label,
.project-contract-editor label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #294b69;
  font-weight: 600;
}

.customer-contract-sign-fields input,
.project-contract-editor input,
.project-contract-editor textarea {
  box-sizing: border-box;
  width: 100%;
}

.customer-contract-consents {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.customer-contract-consents label,
.project-contract-review-check {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 9px !important;
  font-weight: 500 !important;
  line-height: 1.55;
}

.customer-contract-consents input,
.project-contract-review-check input {
  width: auto;
  margin-top: 3px;
}

.customer-contract-signature-box {
  overflow: hidden;
  border: 1px solid #afc9df;
  border-radius: 13px;
  background: #f7fbff;
}

.customer-contract-signature-box > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid #d7e5f0;
}

.customer-contract-signature-box canvas {
  display: block;
  width: 100%;
  height: 190px;
  background: #fff;
  cursor: crosshair;
  touch-action: none;
}

.customer-contract-signature-box canvas.disabled {
  cursor: not-allowed;
  opacity: .72;
}

.customer-contract-submit {
  width: 100%;
  margin-top: 14px;
  min-height: 48px;
}

.project-contract-editor {
  margin-top: 16px;
  padding: 20px;
  border: 1px solid #c9ddee;
  border-radius: 16px;
  background: linear-gradient(180deg, #f9fcff 0%, #f3f8fc 100%);
}

.project-contract-editor.signed {
  border-color: #abd8c2;
  background: #f2fbf7;
}

.project-contract-editor-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.project-contract-editor-head h3 {
  margin: 4px 0 7px;
}

.project-contract-editor-head p {
  margin: 0;
  color: #60798f;
}

.project-contract-status {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 4px;
  min-width: 190px;
  padding: 13px 15px;
  border-radius: 12px;
  background: #e8f3fd;
  color: #145b92;
}

.project-contract-status.pending {
  background: #fff7e8;
  color: #835812;
}

.project-contract-editor fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.project-contract-parties-form {
  margin-bottom: 15px;
}

.project-contract-terms-form {
  display: grid;
  gap: 13px;
}

.project-contract-terms-form textarea {
  min-height: 92px;
  resize: vertical;
}

.project-contract-editor .form-actions {
  margin-top: 16px;
}

@media (max-width: 820px) {
  .customer-contract-summary-card,
  .customer-contract-quote-scope {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-contract-parties,
  .customer-contract-boundaries,
  .customer-contract-sign-fields {
    grid-template-columns: 1fr;
  }

  .project-contract-editor-head {
    flex-direction: column;
  }

  .project-contract-status {
    min-width: 0;
  }
}

@media (max-width: 520px) {
  .customer-contract-summary-card,
  .customer-contract-quote-scope {
    grid-template-columns: 1fr;
  }

  .customer-contract-document {
    padding: 15px;
  }

  .customer-contract-signature-box canvas {
    height: 160px;
  }

  .customer-contract-download-row {
    align-items: stretch;
    flex-direction: column;
  }

  .customer-contract-download-row button {
    width: 100%;
  }

  .customer-contract-sms-input {
    grid-template-columns: 1fr;
  }
}

/* v191: current-quote product presentation */
.customer-current-products-section {
  background: linear-gradient(145deg, #ffffff 0%, #f5faff 100%);
}

.customer-product-partial {
  color: #8a5a12;
  background: #fff7df;
  border-color: #f1d58b;
}

.customer-current-products-intro {
  color: #526b84;
  line-height: 1.75;
  margin: 0 0 20px;
}

.customer-current-products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.customer-current-product-card {
  display: grid;
  grid-template-columns: minmax(190px, 34%) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #d9e6f2;
  border-radius: 18px;
  background: #fff;
  min-height: 290px;
}

.customer-current-product-card.published {
  border-color: #b9dcd5;
  box-shadow: 0 12px 30px rgba(19, 100, 112, 0.08);
}

.customer-current-product-card figure {
  display: flex;
  flex-direction: column;
  margin: 0;
  background: #edf5fb;
  border-right: 1px solid #d9e6f2;
}

.customer-current-product-card figure img,
.customer-product-image-placeholder {
  width: 100%;
  min-height: 230px;
  flex: 1;
}

.customer-current-product-card figure img {
  display: block;
  object-fit: contain;
  padding: 16px;
  background: #fff;
}

.customer-product-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
  color: #607890;
  background: radial-gradient(circle at 50% 25%, #fff 0, #edf5fb 68%);
}

.customer-product-image-placeholder b {
  color: #143b5d;
  font-size: 22px;
  overflow-wrap: anywhere;
}

.customer-current-product-card figcaption {
  padding: 8px 12px;
  color: #607890;
  background: #e5f0f8;
  font-size: 12px;
  text-align: center;
}

.customer-current-product-copy {
  display: flex;
  flex-direction: column;
  padding: 20px;
  min-width: 0;
}

.customer-current-product-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.customer-current-product-meta span,
.customer-current-product-meta em {
  padding: 4px 9px;
  border-radius: 999px;
  color: #17659a;
  background: #eaf4fb;
  font-size: 12px;
  font-style: normal;
}

.customer-current-product-meta em {
  margin-left: auto;
  color: #0c756b;
  background: #e7f7f3;
}

.customer-current-product-copy h3 {
  margin: 0 0 6px;
  color: #153d5e;
  font-size: 22px;
}

.customer-current-product-copy > strong {
  color: #087c73;
  font-size: 16px;
}

.customer-current-product-copy > p {
  color: #526b84;
  line-height: 1.65;
}

.customer-product-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.customer-product-specs div {
  padding: 8px 10px;
  border-radius: 10px;
  background: #f4f8fb;
}

.customer-product-specs dt {
  color: #71869b;
  font-size: 11px;
}

.customer-product-specs dd {
  margin: 3px 0 0;
  color: #183f60;
  font-weight: 700;
}

.customer-product-selling-points {
  margin: 10px 0 0;
  padding-left: 20px;
  color: #345a76;
  line-height: 1.7;
}

.customer-product-quote-note {
  padding: 10px 12px;
  border-left: 3px solid #8bb9d7;
  background: #f2f8fc;
  font-size: 13px;
}

.customer-product-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
  color: #71869b;
  font-size: 12px;
}

.customer-product-links a {
  color: #0b6fa8;
  font-weight: 700;
}

.quote-rule-product-editor {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid #b9d8ed;
  border-radius: 16px;
  background: linear-gradient(145deg, #f7fbff, #ffffff);
  scroll-margin-top: 24px;
}

.quote-rule-product-editor-grid {
  display: grid;
  grid-template-columns: minmax(240px, 32%) minmax(0, 1fr);
  gap: 20px;
}

.quote-rule-product-media,
.quote-rule-product-copy-form,
.quote-rule-product-source-fields {
  display: grid;
  gap: 12px;
}

.quote-rule-product-media > img,
.quote-rule-product-media-empty {
  width: 100%;
  height: 240px;
  border: 1px solid #d7e5f0;
  border-radius: 14px;
  background: #fff;
}

.quote-rule-product-media > img {
  object-fit: contain;
  padding: 14px;
}

.quote-rule-product-media-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #70859a;
}

.quote-rule-product-editor label {
  display: grid;
  gap: 6px;
  color: #36536d;
  font-size: 13px;
}

.quote-rule-product-editor input,
.quote-rule-product-editor select,
.quote-rule-product-editor textarea {
  width: 100%;
}

.quote-rule-product-source-fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quote-rule-product-editor-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quote-rule-product-editor-actions span {
  color: #71869b;
  font-size: 12px;
  overflow-wrap: anywhere;
}

@media (max-width: 980px) {
  .customer-current-products-grid {
    grid-template-columns: 1fr;
  }

  .quote-rule-product-editor-grid,
  .quote-rule-product-source-fields {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .customer-current-product-card {
    grid-template-columns: 1fr;
  }

  .customer-current-product-card figure {
    border-right: 0;
    border-bottom: 1px solid #d9e6f2;
  }

  .customer-current-product-card figure img,
  .customer-product-image-placeholder {
    min-height: 190px;
  }
}

/* V189: customer proposal story — fixed 00-10 decision path. */
.customer-share-shell {
  grid-template-columns: minmax(0, 1fr);
}

.customer-share-hero { order: 10; }
.customer-story-nav { order: 15; }
.customer-share-decision { order: 20; }
.customer-share-details-toggle { display: none !important; }
.customer-house-section { order: 30; }
.customer-market-systems-section { order: 40; }
.customer-climate-demand-section { order: 50; }
.customer-proposal-climate { order: 50; }
.customer-proposal-structure { order: 52; }
.customer-cad-visualization { order: 65; }
.customer-comparison-section { order: 55; }
#customer-share-recommendation { order: 60; }
.customer-brand-story-section { order: 70; }
#customer-share-products { order: 72; }
#customer-share-config { order: 80; }
#customer-share-value { order: 82; }
.customer-dealer-story-section { order: 90; }
#customer-share-cases { order: 92; }
.customer-delivery-standard-section { order: 100; }
.customer-delivery-process-section { order: 102; }
.customer-team-section { order: 104; }
.customer-fulfillment-progress-section { order: 106; }
.customer-service-network-section { order: 110; }
#customer-share-feedback { order: 120; }
#customer-share-quote { order: 165; }
#customer-share-energy { order: 166; }
.customer-intent-feedback { order: 120; }
.customer-share-privacy { order: 180; }
.customer-share-final-contact { order: 190; }
.customer-share-fixed-cta { order: 200; }

.customer-share-page:not(.details-expanded) #customer-share-store,
.customer-share-page:not(.details-expanded) #customer-share-house,
.customer-share-page:not(.details-expanded) .customer-proposal-climate,
.customer-share-page:not(.details-expanded) .customer-proposal-structure,
.customer-share-page:not(.details-expanded) #customer-share-products,
.customer-share-page:not(.details-expanded) #customer-share-cases,
.customer-share-page:not(.details-expanded) .customer-team-section,
.customer-share-page:not(.details-expanded) .customer-share-privacy,
.customer-share-page:not(.details-expanded) .customer-share-final-contact {
  display: grid;
}

.customer-story-nav {
  position: sticky;
  top: 8px;
  z-index: 12;
  display: grid;
  grid-template-columns: repeat(10, minmax(104px, 1fr));
  gap: 6px;
  overflow-x: auto;
  border: 1px solid #d7e2ed;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 28px rgba(23, 47, 78, 0.08);
  padding: 8px;
  backdrop-filter: blur(12px);
}

.customer-story-nav button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 9px 6px;
}

.customer-story-nav button:hover {
  background: #eef6ff;
}

.customer-story-nav b {
  color: #0b62b4;
  font-size: 12px;
}

.customer-story-nav span {
  overflow: hidden;
  color: #29445f;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-brand-story-section,
.customer-delivery-standard-section,
.customer-service-network-section {
  border-color: #c9dbea;
  background: linear-gradient(145deg, #ffffff 0%, #f7fbff 100%);
}

.customer-brand-introduction-image {
  display: block;
  width: min(100%, 1055px);
  height: auto;
  margin: 0 auto;
  background: #fff;
}

.customer-long-image-scroll {
  width: 100%;
  max-width: 100%;
}

/* v218: quote-matched system introduction images */
.customer-system-introductions-section {
  border-color: #c9dbea;
  background: linear-gradient(145deg, #ffffff 0%, #f7fbff 100%);
}

.customer-system-introductions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.customer-system-introduction-card {
  overflow: hidden;
  border: 1px solid #d5e2ee;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(21, 70, 112, 0.07);
}

.customer-system-introduction-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 14px 18px;
  color: #12385e;
  border-bottom: 1px solid #e4edf5;
  background: #f8fbfe;
}

.customer-system-introduction-meta small {
  color: #1265ad;
  font-weight: 700;
}

.customer-system-introduction-meta b {
  font-size: 18px;
}

.customer-system-introduction-meta span {
  margin-left: auto;
  color: #657d94;
}

.customer-system-introduction-card > img,
.customer-system-introduction-card .customer-product-image-scroll > img {
  display: block;
  width: min(100%, 1086px);
  height: auto;
  margin: 0 auto;
  background: #fff;
}

.customer-product-option-note {
  margin: 0;
  padding: 11px 18px 13px;
  border-top: 1px solid #e4edf5;
  background: #f8fbfe;
  color: #5f7286;
  font-size: 12px;
  line-height: 1.65;
}

.customer-system-introduction-admin {
  display: grid;
  gap: 16px;
}

.customer-system-introduction-admin-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.customer-system-introduction-admin-item {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid #d8e4ef;
  border-radius: 12px;
  background: #fff;
}

.customer-system-introduction-admin-item img {
  width: 104px;
  height: 78px;
  object-fit: contain;
  border-radius: 8px;
  background: #f4f8fb;
}

.customer-system-introduction-admin-item > div {
  display: grid;
  gap: 4px;
}

.customer-system-introduction-admin-item small,
.customer-system-introduction-admin-item span {
  color: #6a8095;
}

@media (max-width: 760px) {
  .customer-system-introduction-meta {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 11px 12px;
  }

  .customer-system-introduction-meta b {
    width: 100%;
    font-size: 16px;
  }

  .customer-system-introduction-meta span {
    margin-left: 0;
  }

  .customer-system-introduction-admin-list {
    grid-template-columns: 1fr;
  }

  .customer-system-introduction-admin-item {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .customer-system-introduction-admin-item img {
    width: 84px;
    height: 64px;
  }

  .customer-system-introduction-admin-item button {
    grid-column: 1 / -1;
  }
}

.customer-brand-story-hero {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.customer-brand-story-hero img {
  width: 100%;
  min-height: 180px;
  max-height: 280px;
  border-radius: 10px;
  object-fit: cover;
}

.customer-brand-story-hero > div {
  display: grid;
  gap: 9px;
}

.customer-brand-story-hero small,
.customer-dealer-proof-grid small {
  color: #0b62b4;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.customer-brand-product-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.customer-dealer-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.customer-dealer-proof-grid article {
  display: grid;
  gap: 8px;
  border: 1px solid #e1e8f2;
  border-radius: 10px;
  background: #fbfdff;
  padding: 15px;
}

.customer-proof-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.customer-proof-numbers span {
  border-radius: 8px;
  background: #eef6ff;
  color: #34526e;
  padding: 8px 10px;
}

.customer-proof-numbers b {
  color: #0b62b4;
  font-size: 20px;
}

.customer-standard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.customer-standard-grid article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  border: 1px solid #dce7f2;
  border-radius: 10px;
  background: #ffffff;
  padding: 13px;
}

.customer-standard-grid b,
.customer-delivery-timeline b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #0b62b4;
  color: #ffffff;
  font-size: 12px;
}

.customer-standard-grid span,
.customer-delivery-timeline span {
  color: #415a73;
  line-height: 1.55;
}

.customer-delivery-timeline {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
}

.customer-delivery-timeline article {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 7px;
  text-align: center;
}

.customer-delivery-timeline article:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 14px;
  left: calc(50% + 18px);
  width: calc(100% - 28px);
  height: 2px;
  background: #cfe0f1;
}

.customer-service-network-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.customer-service-network-facts span {
  display: grid;
  gap: 5px;
  border: 1px solid #dce7f2;
  border-radius: 10px;
  background: #fff;
  color: #536b82;
  padding: 13px;
}

.customer-service-network-facts b {
  color: #183b5d;
}

@media (max-width: 820px) {
  .customer-story-nav {
    top: 4px;
    grid-template-columns: repeat(10, minmax(94px, 1fr));
  }

  .customer-brand-story-hero,
  .customer-brand-product-columns,
  .customer-dealer-proof-grid,
  .customer-service-network-facts {
    grid-template-columns: 1fr;
  }

  .customer-standard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-delivery-timeline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 16px;
  }

  .customer-delivery-timeline article:nth-child(4n)::after {
    display: none;
  }
}

/* V168 local media upload controls */
.dealer-media-field > span {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 36px;
  margin-top: 8px;
  padding: 7px 13px;
  overflow: hidden;
  border: 1px solid #b9cbc2;
  border-radius: 10px;
  color: #1f5f47;
  background: #f2f8f5;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.dealer-media-field > span:hover {
  border-color: #6fa68c;
  background: #e8f4ee;
}

.dealer-media-field > span input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.dealer-media-field > span:has(input:disabled) {
  opacity: 0.55;
  cursor: wait;
}

.dealer-media-field > small {
  display: block;
  margin-top: 6px;
  overflow-wrap: anywhere;
  color: #6d7772;
  font-weight: 400;
}

@media (max-width: 520px) {
  .customer-story-nav button {
    gap: 4px;
    font-size: 12px;
  }

  .customer-standard-grid,
  .customer-delivery-timeline {
    grid-template-columns: 1fr;
  }

  .customer-delivery-timeline article {
    grid-template-columns: 34px minmax(0, 1fr);
    justify-items: start;
    text-align: left;
  }

  .customer-delivery-timeline article::after {
    display: none;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
}

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#app > div:not(.login-page) {
  height: 100vh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

[v-cloak] {
  display: none !important;
}

.boot-status {
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 16px;
  padding: 20px;
  text-align: center;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.login-card {
  width: min(420px, 92vw);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.login-card h2 {
  margin: 0;
}

.login-card p {
  margin: 0;
  color: var(--muted);
}

.login-card input {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.login-card button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}

.login-card button.primary {
  border-color: #b61e1e;
  background: #d92424;
  color: #fff;
}

.topbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.brand-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-logos {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logos img {
  height: 28px;
  width: auto;
  display: block;
}

.topbar h1 {
  margin: 0;
  font-size: 22px;
}

.topbar p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filters select {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.filters button {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--muted);
  background: #fff;
  font-size: 12px;
}

main {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 12px;
  padding: 12px;
  min-height: 0;
  height: auto;
  overflow: hidden;
}

#mapContainer {
  border-radius: 14px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #dde8fa;
}

.case-map-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 100%;
}

.embedded-case-point-detail {
  position: absolute;
  z-index: 960;
  left: 16px;
  bottom: 16px;
  width: min(380px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  box-sizing: border-box;
  overflow: auto;
  padding: 14px 42px 14px 14px;
  border: 1px solid #c9d8e8;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 32px rgba(19, 53, 92, 0.26);
  color: #172333;
}

.embedded-case-point-detail-close {
  position: absolute;
  z-index: 1;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #d5e0eb;
  border-radius: 9px;
  background: #f7fafc;
  color: #35475a;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.embedded-case-point-detail-close:hover,
.embedded-case-point-detail-close:focus-visible {
  border-color: #7da7d0;
  background: #eef6fd;
  outline: none;
}

.embedded-case-point-detail-loading,
.embedded-case-point-detail-error {
  min-height: 48px;
  display: grid;
  align-items: center;
  color: #49647f;
}

.embedded-case-point-detail-error {
  color: #a33a32;
}

.embedded-case-point-detail-content > .case-info-window {
  width: 100%;
  min-width: 0;
  max-width: none;
}

@media (max-width: 720px) {
  .embedded-case-point-detail {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    max-height: min(70%, 420px);
    padding: 12px 40px 12px 12px;
  }
}

.customer-home-recenter-control {
  position: absolute;
  z-index: 660;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  box-sizing: border-box;
  border: 1px solid rgba(31, 48, 68, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 6px 18px rgba(19, 53, 92, 0.22);
  color: #172333;
  cursor: pointer;
}

.customer-home-recenter-control:hover,
.customer-home-recenter-control:focus-visible {
  border-color: #7da7d0;
  box-shadow: 0 8px 22px rgba(19, 53, 92, 0.28);
  outline: none;
}

.customer-home-recenter-icon {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
  box-sizing: border-box;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.customer-home-recenter-icon::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.customer-home-recenter-icon::after {
  content: "";
  position: absolute;
  inset: -7px;
  background:
    linear-gradient(currentColor, currentColor) center top / 3px 8px no-repeat,
    linear-gradient(currentColor, currentColor) center bottom / 3px 8px no-repeat,
    linear-gradient(currentColor, currentColor) left center / 8px 3px no-repeat,
    linear-gradient(currentColor, currentColor) right center / 8px 3px no-repeat;
}

.customer-home-recenter-label {
  position: absolute;
  top: 50%;
  right: calc(100% + 9px);
  width: max-content;
  transform: translate(5px, -50%);
  border: 1px solid #d6e2ee;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 5px 14px rgba(19, 53, 92, 0.16);
  color: #24486a;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.customer-home-recenter-control:hover .customer-home-recenter-label,
.customer-home-recenter-control:focus-visible .customer-home-recenter-label {
  transform: translate(0, -50%);
  opacity: 1;
}

.customer-home-map-marker {
  position: relative;
  width: 34px;
  height: 40px;
  filter: drop-shadow(0 4px 6px rgba(128, 26, 26, 0.28));
}

.customer-home-map-marker span {
  position: absolute;
  top: 1px;
  left: 5px;
  display: block;
  width: 24px;
  height: 24px;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: #e1252f;
  transform: rotate(-45deg);
  box-shadow: 0 0 0 2px #e1252f;
}

.customer-home-map-marker span::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
}

.customer-home-map-marker b {
  position: absolute;
  top: 4px;
  left: 38px;
  white-space: nowrap;
  border: 1px solid #ef9a9f;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #c51622;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.customer-home-map-legend {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 8px 0 12px;
  border: 1px solid #f2c2c5;
  border-radius: 10px;
  background: #fff7f7;
  color: #9d252d;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.55;
}

.customer-home-map-legend i {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #e1252f;
  box-shadow: 0 0 0 1px #e1252f;
}

.customer-home-info b {
  display: block;
  color: #c51622;
  font-size: 16px;
}

.customer-home-info small {
  display: block;
  margin-top: 5px;
  color: #6d7d90;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  padding: 12px;
  overflow: auto;
  min-height: 0;
}

.mobile-map-message {
  display: none;
}

.panel h2 {
  margin-top: 4px;
  margin-bottom: 10px;
  font-size: 16px;
}

.split {
  border: none;
  border-top: 1px solid var(--line);
  margin: 14px 0;
}

.case-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.case-list li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 10px;
  cursor: pointer;
}

.case-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.row-actions button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 7px;
  padding: 4px 8px;
  cursor: pointer;
}

.row-actions button:hover {
  border-color: var(--primary);
}

.case-list li:hover {
  border-color: var(--primary);
}

.case-list li.active {
  border-color: #d92424;
  box-shadow: 0 0 0 2px rgba(217, 36, 36, 0.14);
  background: #fff7f7;
}

.case-list span,
.case-list small {
  color: var(--muted);
}

.loading {
  color: var(--muted);
}

.error {
  color: var(--danger);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.form-grid label {
  font-size: 12px;
  color: var(--muted);
}

.form-grid input,
.form-grid select {
  width: 100%;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.tip-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}

.tip-item {
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 6px 8px;
  cursor: pointer;
}

.tip-item small {
  display: block;
  color: var(--muted);
}

.tip-item:hover {
  border-color: var(--primary);
}

.dialog-mask {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 14px;
}

.dialog {
  width: min(760px, 96vw);
  max-height: 82vh;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dialog-head,
.dialog-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.dialog-foot {
  border-bottom: none;
  border-top: 1px solid var(--line);
}

.dialog-head h3 {
  margin: 0;
  font-size: 16px;
}

.dialog-body {
  padding: 12px;
  overflow: auto;
}

.dialog-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.dialog-actions input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
}

.dialog-actions select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
}

.search-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.search-list li {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.search-list li:hover {
  border-color: var(--primary);
}

.search-list li.active {
  border-color: #d92424;
  box-shadow: 0 0 0 2px rgba(217, 36, 36, 0.15);
}

.search-list li small {
  color: var(--muted);
}

.form-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.form-actions button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}

.form-actions button.primary {
  border-color: #b61e1e;
  background: #d92424;
  color: #fff;
}

.form-actions button:hover {
  filter: brightness(0.97);
}

button.danger {
  border: 1px solid #b61e1e;
  background: #fff4f4;
  color: #b61e1e;
  border-radius: 7px;
  padding: 4px 8px;
  cursor: pointer;
}

button.danger:hover {
  background: #ffe6e6;
}

/* Brand marker base shape; color comes from brand class. */
.map-pin {
  width: 18px;
  height: 18px;
  border-radius: 50% 50% 50% 0;
  background: radial-gradient(circle at 30% 30%, #ff8b8b, #ef1a1a 65%, #a60f0f);
  transform: rotate(-45deg);
  border: 2px solid #fff;
  box-shadow: 0 0 0 3px rgba(239, 26, 26, 0.2), 0 6px 10px rgba(140, 16, 16, 0.35);
  position: relative;
}

.map-pin.brand-toshiba,
.map-pin.brand-default {
  background: radial-gradient(circle at 30% 30%, #ff8b8b, #ef1a1a 65%, #a60f0f);
  box-shadow: 0 0 0 3px rgba(239, 26, 26, 0.2), 0 6px 10px rgba(140, 16, 16, 0.35);
}

.map-pin.brand-carrier {
  background: radial-gradient(circle at 30% 30%, #8fc3ff, #1477ea 65%, #0a4fa3);
  box-shadow: 0 0 0 3px rgba(20, 119, 234, 0.22), 0 6px 10px rgba(10, 79, 163, 0.35);
}

.dot-label {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid #fff;
  background: #ef1a1a;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.dot-label.brand-carrier {
  background: #1477ea;
}

.dot-label.brand-toshiba,
.dot-label.brand-default {
  background: #ef1a1a;
}

.map-pin::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  background: #fff;
  border-radius: 50%;
  top: 4px;
  left: 4px;
}

.map-pin.pulse {
  animation: pinPulse 1.6s infinite ease-out;
}

@keyframes pinPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 26, 26, 0.45), 0 6px 10px rgba(140, 16, 16, 0.35);
  }
  80% {
    box-shadow: 0 0 0 12px rgba(239, 26, 26, 0), 0 6px 10px rgba(140, 16, 16, 0.35);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 26, 26, 0), 0 6px 10px rgba(140, 16, 16, 0.35);
  }
}

@media (max-width: 960px) {
  #app > div:not(.login-page) {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .filters {
    width: 100%;
    justify-content: flex-start;
  }

  main {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
    overflow: visible;
    padding: 8px;
    gap: 8px;
  }

  #mapContainer {
    height: calc(100dvh - 210px);
    min-height: 520px;
    border-radius: 10px;
  }

  .panel {
    display: none;
  }

  .mobile-map-message {
    display: block;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 8px 10px;
    line-height: 1.45;
  }
}

.photo-upload-panel {
  display: grid;
  grid-template-columns: minmax(92px, 120px) 1fr auto;
  gap: 8px;
  align-items: center;
}

.photo-upload-panel input[type="file"] {
  min-width: 0;
}

.photo-file-list {
  margin-top: 8px;
  color: #526071;
  font-size: 13px;
}

.case-photo-grid {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.admin-photo-grid {
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
}

.case-photo-card {
  border: 1px solid #d9e1ea;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.case-photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #eef3f7;
}

.case-photo-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px;
  font-size: 12px;
}

.case-photo-meta button {
  padding: 4px 6px;
  font-size: 12px;
}

.case-info-window {
  min-width: 230px;
  max-width: min(330px, 82vw);
  line-height: 1.6;
}

.info-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.info-photo-grid a,
.info-photo-grid img {
  display: block;
}

.info-photo-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  background: #eef3f7;
}

.info-photo-empty {
  margin-top: 8px;
  color: #7b8794;
  font-size: 13px;
}

@media (max-width: 720px) {
  .photo-upload-panel {
    grid-template-columns: 1fr;
  }

  .case-info-window {
    max-width: 78vw;
  }

  .info-photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .customer-home-recenter-control {
    top: 12px;
    right: 12px;
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }
}

/* V167 formal customer proposal release center */
.customer-release-compact-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #eef6ff;
  color: #234f78;
}

.customer-release-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.customer-release-mode-grid article {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid #d8e3ee;
  border-radius: 14px;
  background: #f8fbfe;
}

.customer-release-mode-grid article.ready {
  border-color: #a8d7bf;
  background: #f0faf5;
}

.customer-release-mode-grid small {
  color: #59738c;
}

.customer-release-mode-grid b {
  color: #153a60;
  font-size: 17px;
}

.customer-release-mode-grid span {
  color: #66798c;
  line-height: 1.55;
}

.formal-release-center {
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid #e7cfa7;
  border-radius: 18px;
  background: linear-gradient(135deg, #fffaf1 0%, #fff 62%);
}

.formal-release-center.ready {
  border-color: #b9d9c8;
  background: linear-gradient(135deg, #f2fbf6 0%, #fff 62%);
}

.formal-release-center-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.formal-release-center-head h3,
.formal-release-center-head p {
  margin: 4px 0 0;
}

.formal-release-center-head > strong {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  color: #8a5a15;
  background: #fff0d1;
}

.formal-release-center.ready .formal-release-center-head > strong {
  color: #17643e;
  background: #dff4e8;
}

.formal-release-gate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.formal-release-gate-grid article {
  display: flex;
  gap: 10px;
  padding: 13px;
  border: 1px solid #ead8bb;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
}

.formal-release-gate-grid article > span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #8a5a15;
  background: #fff0d1;
}

.formal-release-gate-grid article.ready {
  border-color: #c7e2d2;
}

.formal-release-gate-grid article.ready > span {
  color: #17643e;
  background: #dff4e8;
}

.formal-release-gate-grid article b,
.formal-release-gate-grid article small {
  display: block;
}

.formal-release-gate-grid article small {
  margin-top: 4px;
  color: #69766f;
}

.formal-release-missing {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 18px;
  margin: 14px 0;
  padding-left: 20px;
  color: #8a4f19;
}

.dealer-review-record-grid {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed #d7ddd9;
}

@media (max-width: 820px) {
  .customer-release-compact-status {
    align-items: flex-start;
    flex-direction: column;
  }

  .customer-release-mode-grid {
    grid-template-columns: 1fr;
  }

  .formal-release-center-head {
    display: block;
  }

  .formal-release-center-head > strong {
    display: inline-block;
    margin-top: 12px;
  }

  .formal-release-gate-grid,
  .formal-release-missing {
    grid-template-columns: 1fr;
  }
}


.case-info-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.case-info-photo-badge {
  flex: none;
  border-radius: 999px;
  background: #e8f3ff;
  color: #1867b7;
  font-size: 12px;
  line-height: 1;
  padding: 5px 8px;
}

.case-info-lines {
  color: #1f2d3d;
}

.info-photo-title {
  margin-top: 10px;
  color: #526071;
  font-size: 12px;
}

.info-photo-button {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #eef3f7;
  cursor: pointer;
}

.info-photo-button img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.info-photo-button span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2px 4px;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  font-size: 11px;
  line-height: 1.3;
  text-align: center;
}

.photo-preview-mask {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(12, 18, 28, 0.78);
}

.photo-preview-box {
  position: relative;
  width: min(980px, 96vw);
  max-height: 94vh;
  display: grid;
  gap: 10px;
  justify-items: center;
}

.photo-preview-box img {
  max-width: 100%;
  max-height: calc(94vh - 62px);
  object-fit: contain;
  border-radius: 8px;
  background: #111827;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.photo-preview-close {
  justify-self: end;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  padding: 8px 14px;
  cursor: pointer;
}

.photo-preview-caption {
  color: #fff;
  font-size: 14px;
}


.info-photo-hero {
  position: relative;
  display: block;
  width: 100%;
  margin: 8px 0 10px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #eef3f7;
  cursor: pointer;
}

.info-photo-hero img {
  display: block;
  width: 100%;
  max-height: 190px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.info-photo-hero span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 5px 8px;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

@media (max-width: 720px) {
  .case-info-window {
    min-width: 0;
    max-width: 72vw;
  }

  .info-photo-hero img {
    max-height: 150px;
  }
}

.inline-case-media {
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px dashed #d8e0ef;
}

.inline-media-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #526071;
  font-size: 12px;
  margin-bottom: 6px;
}

.inline-media-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 7px;
}

.inline-media-thumb {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #eef3f7;
  cursor: pointer;
  aspect-ratio: 1 / 1;
}

.inline-media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.inline-video-thumb,
.info-video-thumb {
  width: 100%;
  height: 100%;
  min-height: 58px;
  display: grid;
  place-items: center;
  gap: 2px;
  color: #fff;
  background: linear-gradient(135deg, #1f2d3d, #37516d);
  font-size: 20px;
}

.inline-video-thumb small,
.info-video-thumb small {
  display: block;
  font-size: 11px;
  color: #e6edf5;
}

.info-photo-button.info-video-button {
  aspect-ratio: 1 / 1;
}

.info-photo-hero.info-video-button {
  min-height: 150px;
  aspect-ratio: 16 / 10;
}

.info-video-button > .info-video-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0 8px 22px;
  background: linear-gradient(135deg, #1f2d3d, #37516d);
}

.info-video-button > .info-video-thumb small {
  position: static;
  padding: 0;
  background: transparent;
  line-height: 1.3;
}

.inline-media-upload {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.inline-media-upload input,
.inline-media-upload button {
  grid-column: 1 / -1;
}

.inline-media-msg {
  margin: 6px 0 0;
}

.photo-preview-box video {
  max-width: 100%;
  max-height: calc(94vh - 62px);
  border-radius: 8px;
  background: #111827;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.photo-preview-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  padding: 10px 13px;
  cursor: pointer;
}

.photo-preview-nav.prev { left: 0; }
.photo-preview-nav.next { right: 0; }

@media (max-width: 720px) {
  .inline-media-upload {
    grid-template-columns: 1fr;
  }

  .photo-preview-nav {
    top: auto;
    bottom: 48px;
    transform: none;
  }
}
/* Platform MVP */
.platform-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f4f7fb;
  overflow: hidden;
}

.platform-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.platform-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.platform-brand h1,
.platform-page h2 {
  margin: 0;
  color: #11213a;
}

.platform-brand h1 {
  font-size: 22px;
}

.platform-brand p,
.platform-page-head p,
.content-card p {
  color: var(--muted);
}

.platform-brand p {
  margin: 4px 0 0;
  font-size: 13px;
}

.platform-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.platform-header-actions .platform-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 8px;
  padding: 8px 12px;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
}

.platform-header-actions .platform-nav-link:hover {
  border-color: #9bb9e8;
}

.platform-header button,
.platform-page button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
}

.platform-header button:hover,
.platform-page button:hover {
  border-color: #9bb9e8;
}

.platform-page button.primary {
  border-color: #155bb9;
  background: #1769d5;
  color: #fff;
}

.platform-page {
  flex: 1 1 auto;
  overflow: auto;
  padding: 22px;
}

.platform-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.platform-page-head p {
  margin: 6px 0 0;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.content-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.content-card h3 {
  margin: 0;
  color: #11213a;
  font-size: 18px;
}

.content-card p {
  margin: 0;
  line-height: 1.55;
}

.content-card button {
  margin-top: auto;
  align-self: flex-start;
}

.plain-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.cases-page {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cases-page.cases-embed-mode {
  height: 100dvh;
  min-height: 560px;
  background: #fff;
}

.cases-embed-mode .case-map-layout {
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0;
}

.cases-embed-mode #mapContainer {
  min-height: 560px;
  border: 0;
  border-radius: 0;
}

.cases-embed-mode .panel {
  display: none;
}

.case-map-layout {
  flex: 1 1 auto;
}

.platform-login-card label {
  font-size: 13px;
  color: #24324a;
}

.login-recovery-link {
  border: 0;
  background: transparent;
  color: #0d5e91;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.password-recovery-dialog {
  width: min(560px, calc(100vw - 28px));
}

.account-security-dialog {
  width: min(860px, calc(100vw - 32px));
  max-height: min(820px, calc(100vh - 32px));
}

.admin-password-reset-dialog {
  width: min(580px, calc(100vw - 28px));
}

.admin-account-create-dialog {
  width: min(680px, calc(100vw - 28px));
}

.admin-account-create-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-account-create-grid label {
  display: grid;
  gap: 7px;
  color: #24364f;
  font-weight: 700;
}

.admin-account-create-grid input,
.admin-account-create-grid select {
  width: 100%;
  box-sizing: border-box;
}

.admin-account-password-rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 12px;
  padding: 12px 14px;
  border: 1px solid #d8e3ed;
  border-radius: 10px;
  background: #f7fafc;
}

.admin-account-password-rules span {
  color: #8a4b37;
  font-size: 13px;
}

.admin-account-password-rules span.passed {
  color: #247044;
}

.account-security-body {
  display: grid;
  gap: 16px;
}

.account-security-body > label,
.account-security-form-grid label {
  display: grid;
  gap: 7px;
  color: #24364f;
  font-weight: 700;
}

.account-security-required {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #edb9a9;
  border-radius: 10px;
  background: #fff3ef;
  color: #9a3420;
  line-height: 1.55;
}

.account-security-section {
  display: grid;
  gap: 13px;
  padding: 18px;
  border: 1px solid #d8e3ed;
  border-radius: 14px;
  background: #f9fbfd;
}

.account-security-section p {
  margin: 0;
  color: #52677c;
  line-height: 1.6;
}

.account-security-section-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.account-security-section-head small {
  color: #1b6a97;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-security-section-head h4 {
  margin: 3px 0 0;
  color: #17344d;
  font-size: 18px;
}

.account-security-section-head > span {
  color: #64798c;
  font-size: 13px;
}

.account-security-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.account-recovery-generate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.account-recovery-codes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding: 14px;
  border: 1px dashed #bd9650;
  border-radius: 12px;
  background: #fffaf0;
}

.account-recovery-codes > b,
.account-recovery-codes > small,
.account-recovery-codes > button {
  grid-column: 1 / -1;
}

.account-recovery-codes code {
  padding: 9px 12px;
  border-radius: 8px;
  background: #163f57;
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-align: center;
  user-select: all;
}

@media (max-width: 720px) {
  .account-security-dialog {
    width: calc(100vw - 18px);
    max-height: calc(100vh - 18px);
  }
  .account-security-form-grid,
  .account-recovery-codes,
  .account-recovery-generate,
  .admin-account-create-grid,
  .admin-account-password-rules {
    grid-template-columns: 1fr;
  }
  .account-security-section-head {
    display: grid;
  }
}

@media (max-width: 760px) {
  .platform-header,
  .platform-brand,
  .platform-page-head {
    align-items: stretch;
    flex-direction: column;
  }

  .platform-brand h1 {
    font-size: 20px;
  }

  .platform-header-actions {
    width: 100%;
  }

  .platform-header-actions button {
    flex: 1 1 auto;
  }

  .platform-page {
    padding: 14px;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .content-card {
    min-height: 0;
  }
}

/* V202 · normalized tripartite installation scheduling */
.installation-coordination-card {
  display: grid;
  gap: 16px;
  border: 1px solid #cfe0ef;
  border-radius: 18px;
  background: linear-gradient(145deg, #ffffff 0%, #f5fbff 100%);
  padding: 20px;
}

.installation-coordination-head,
.installation-coordination-facts,
.coordination-confirmations,
.coordination-message-box {
  display: flex;
  gap: 12px;
}

.installation-coordination-head {
  align-items: flex-start;
  justify-content: space-between;
}

.installation-coordination-head h3,
.installation-coordination-head p,
.coordination-timeline h4,
.coordination-timeline p {
  margin: 0;
}

.installation-coordination-head small,
.installation-coordination-facts small {
  color: #6b7f93;
}

.coordination-status,
.coordination-confirmations span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 7px 11px;
  background: #edf4fa;
  color: #37546f;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.coordination-status.confirmed,
.coordination-confirmations .confirmed {
  background: #e5f6ef;
  color: #117553;
}

.coordination-status.change_requested,
.coordination-confirmations .change_requested {
  background: #fff0ea;
  color: #b44821;
}

.coordination-confirmations .pending {
  background: #fff7df;
  color: #8a6717;
}

.installation-coordination-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.installation-coordination-facts > div {
  display: grid;
  gap: 5px;
  min-width: 0;
  border: 1px solid #dce8f2;
  border-radius: 12px;
  background: rgba(255, 255, 255, .88);
  padding: 13px;
}

.installation-coordination-facts b,
.installation-coordination-facts span {
  overflow-wrap: anywhere;
}

.coordination-preparation {
  margin: 0;
  border-left: 4px solid #2b7ecb;
  background: #edf6ff;
  padding: 11px 13px;
  color: #405c77;
}

.coordination-plan-form {
  display: grid;
  gap: 12px;
  margin: 0;
  border: 1px dashed #b8d2e8;
  border-radius: 14px;
  padding: 16px;
}

.coordination-plan-form legend {
  padding: 0 8px;
  color: #1b5f96;
  font-weight: 800;
}

.coordination-plan-form textarea {
  min-height: 78px;
}

.coordination-timeline {
  display: grid;
  gap: 9px;
}

.coordination-timeline article {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  border-top: 1px solid #e1e9f0;
  padding-top: 9px;
}

.coordination-timeline article span {
  color: #17679f;
  font-weight: 800;
}

.coordination-timeline article time {
  color: #7b8b99;
  font-size: 12px;
}

.coordination-message-box input {
  flex: 1;
  min-width: 0;
}

.customer-coordination-card {
  margin-top: 18px;
}

@media (max-width: 760px) {
  .installation-coordination-card {
    padding: 15px;
  }

  .installation-coordination-head,
  .coordination-confirmations,
  .coordination-message-box {
    align-items: stretch;
    flex-direction: column;
  }

  .installation-coordination-facts {
    grid-template-columns: 1fr;
  }

  .coordination-timeline article {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .coordination-timeline article time {
    grid-column: 2;
  }
}

/* V177: customer proposal uses the approved comparison image and keeps all quote tables in-page. */
.customer-market-image-section {
  overflow: hidden;
}

.customer-market-system-image {
  display: block;
  width: min(100%, 1024px);
  height: auto;
  margin: 0 auto;
  border: 1px solid #d7e5f2;
  border-radius: 12px;
  background: #fff;
}

.customer-config-quote-section .customer-config-table-scroll {
  overflow-x: visible !important;
  overscroll-behavior-inline: auto;
}

.customer-config-quote-section .customer-config-table-scroll table,
.customer-config-quote-section .customer-config-overview-table,
.customer-config-quote-section .customer-config-wide-table,
.customer-config-quote-section .customer-config-detail-table {
  width: 100%;
  min-width: 0 !important;
  table-layout: fixed;
}

.customer-config-quote-section .customer-config-table-scroll th,
.customer-config-quote-section .customer-config-table-scroll td {
  min-width: 0;
  padding: clamp(3px, 0.36vw, 7px) clamp(2px, 0.3vw, 6px);
  font-size: clamp(8px, 0.72vw, 11px);
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.customer-config-quote-section .customer-config-detail-table th:nth-child(1) { width: 6%; }
.customer-config-quote-section .customer-config-detail-table th:nth-child(2) { width: 15%; }
.customer-config-quote-section .customer-config-detail-table th:nth-child(3) { width: 9%; }
.customer-config-quote-section .customer-config-detail-table th:nth-child(4) { width: 13%; }
.customer-config-quote-section .customer-config-detail-table th:nth-child(5) { width: 5%; }
.customer-config-quote-section .customer-config-detail-table th:nth-child(6) { width: 6%; }
.customer-config-quote-section .customer-config-detail-table th:nth-child(7) { width: 8%; }
.customer-config-quote-section .customer-config-detail-table th:nth-child(8) { width: 8%; }
.customer-config-quote-section .customer-config-detail-table th:nth-child(9) { width: 30%; }

@media (max-width: 760px) {
  .customer-config-quote-section {
    padding-inline: 8px;
  }

  .customer-config-quote-section .customer-config-table-scroll th,
  .customer-config-quote-section .customer-config-table-scroll td {
    padding: 3px 2px;
    font-size: 7px;
    line-height: 1.28;
  }
}

.diagnosis-cost-history {
  margin-top: 12px;
  border: 1px solid #dbe6ef;
  border-radius: 12px;
  background: #fbfdff;
  padding: 10px 12px;
}
.diagnosis-cost-history summary {
  cursor: pointer;
  color: #17324d;
  font-weight: 700;
}
.diagnosis-cost-history-row {
  display: grid;
  grid-template-columns: 56px minmax(180px, 1fr) minmax(260px, 1.3fr);
  gap: 10px;
  align-items: center;
  padding: 9px 4px;
  border-top: 1px solid #e8eef4;
}
.diagnosis-cost-history-row:first-of-type {
  margin-top: 8px;
}
.diagnosis-cost-history-row span {
  color: #087f69;
  font-weight: 800;
}
.diagnosis-cost-history-row small {
  color: #66788a;
}
@media (max-width: 760px) {
  .diagnosis-cost-history-row {
    grid-template-columns: 48px 1fr;
  }
  .diagnosis-cost-history-row small {
    grid-column: 1 / -1;
  }
}

/* 20260617 platform polish */
.platform-header .brand-logos,
.cases-topbar .brand-logos,
.brand-block .brand-logos {
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.platform-header .brand-logos img,
.cases-topbar .brand-logos img,
.brand-block .brand-logos img {
  height: 24px;
}

@media (min-width: 641px) and (max-width: 960px) {
  .case-map-layout {
    grid-template-columns: 1fr;
  }

  .case-map-layout .panel {
    display: block;
    max-height: 420px;
  }
}

@media (max-width: 640px) {
  .case-map-layout .panel {
    display: none;
  }
}

/* v117: compact project flow navigation */
.project-flow-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 14px;
  padding: 10px 14px;
  border: 1px solid #d6e2ee;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(28, 67, 103, 0.06);
}

.project-flow-current {
  flex: 0 1 auto;
  min-width: 190px;
  padding: 9px 12px;
  border-color: transparent;
  background: transparent;
  color: #21384f;
  font-weight: 800;
  text-align: left;
}

.project-flow-current.active {
  border-color: #bcd8f5;
  background: #eef6ff;
  color: #1168bf;
}

.project-flow-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.project-flow-actions button {
  min-height: 38px;
  white-space: nowrap;
}

.project-flow-actions button.active {
  border-color: #1573cf;
  background: #1573cf;
  color: #fff;
}

.project-compact-overview {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: center;
  gap: 12px 22px;
  margin-bottom: 12px;
  padding: 15px 18px;
}

.project-compact-overview small,
.project-compact-overview p {
  color: #65788b;
}

.project-compact-overview h3,
.project-compact-overview p {
  margin: 3px 0 0;
}

.project-compact-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.project-compact-actions span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #f1f6fb;
  color: #526a80;
  font-size: 13px;
}

.project-compact-warning {
  grid-column: 1 / -1;
  padding-top: 9px;
  border-top: 1px solid #f1d8bd;
  color: #9a4b14 !important;
}

.project-home-next {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  margin-bottom: 12px;
}
.project-home-next-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.project-home-detail {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.danger-outline {
  border-color: #e8b4b4 !important;
  background: #fffafa !important;
  color: #b4232d !important;
}

.danger-outline:hover:not(:disabled) {
  border-color: #cf3945 !important;
  background: #fff0f1 !important;
}

.project-history-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
}

.project-history-add textarea {
  width: 100%;
  min-height: 64px;
}

.diagnosis-climate-focus {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(320px, 1.2fr);
  gap: 16px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid #cce3f8;
  border-radius: 12px;
  background: #f5faff;
}

.diagnosis-climate-focus h4,
.diagnosis-climate-focus p {
  margin: 3px 0 0;
}

.diagnosis-climate-focus p {
  color: #61788d;
}

@media (max-width: 980px) {
  .project-flow-nav,
  .project-compact-overview {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }
  .project-flow-actions,
  .project-compact-actions {
    justify-content: flex-start;
  }
  .diagnosis-climate-focus {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .project-flow-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  .project-flow-actions button,
  .project-history-add button {
    width: 100%;
  }
  .project-history-add {
    grid-template-columns: 1fr;
  }
}


/* Media delete controls */
.inline-media-item {
  position: relative;
  min-width: 0;
}

.inline-media-item .inline-media-thumb {
  width: 100%;
  height: 100%;
}

.inline-media-delete {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  border: 0;
  border-radius: 6px;
  background: rgba(198, 40, 40, 0.94);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  padding: 5px 6px;
  cursor: pointer;
}

.photo-preview-delete {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  border: 0;
  border-radius: 999px;
  background: #c62828;
  color: #fff;
  padding: 8px 14px;
  cursor: pointer;
}

/* Compact cases header */
.compact-cases-topbar {
  min-height: 0;
  padding: 8px 12px;
  gap: 10px;
}

.case-title-compact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 120px;
}

.case-title-compact h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
}

.case-title-compact p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.compact-cases-topbar .filters {
  gap: 7px;
}

.compact-cases-topbar .filters button,
.compact-cases-topbar .filters select {
  padding-top: 5px;
  padding-bottom: 5px;
}

/* Phase 5 dealer profile storefront */
.dealer-storefront-public {
  min-height: 100vh;
  background: #f4f7fb;
  color: #172033;
}
.dealer-storefront-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 18px 42px;
}
.dealer-storefront-hero,
.dealer-storefront-section {
  background: #fff;
  border: 1px solid #dbe5f1;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 14px;
}
.dealer-storefront-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  align-items: start;
  border-left: 5px solid #0b62b4;
}
.dealer-storefront-hero h1 {
  margin: 6px 0 10px;
  font-size: 32px;
  letter-spacing: 0;
}
.dealer-storefront-tags,
.dealer-storefront-grid,
.dealer-storefront-contact,
.dealer-storefront-final .form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dealer-storefront-tags span,
.dealer-storefront-grid span {
  border: 1px solid #d9e2ec;
  background: #f8fafc;
  border-radius: 999px;
  padding: 7px 10px;
  color: #334155;
}
.dealer-storefront-contact {
  flex-direction: column;
  border: 1px solid #dbeafe;
  background: #f8fbff;
  border-radius: 8px;
  padding: 14px;
}
.dealer-storefront-two,
.dealer-photo-grid,
.dealer-case-grid,
.dealer-profile-edit-grid,
.dealer-photo-edit-grid,
.customer-personnel-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.dealer-profile-edit-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.dealer-profile-save-bar {
  position: sticky;
  top: 10px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 12px 0 16px;
  padding: 12px 14px;
  border: 1px solid #bbd6c8;
  border-radius: 12px;
  background: rgba(244, 252, 247, 0.97);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.09);
  backdrop-filter: blur(8px);
}
.dealer-profile-save-bar > div {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 12px;
}
.dealer-profile-save-bar span { color: #166534; font-weight: 700; }
.dealer-profile-save-bar small { color: #64748b; }
.dealer-profile-save-bar.dirty {
  border-color: #f0b45c;
  background: rgba(255, 249, 235, 0.98);
}
.dealer-profile-save-bar.dirty span { color: #9a4f00; }
.dealer-profile-lock-notice {
  border-color: #f0b45c;
  background: #fff8e8;
}
.dealer-profile-lock-notice h3 { margin: 4px 0 0; color: #7c3f00; }
.dealer-profile-lock-notice p { margin-bottom: 0; color: #754514; }
.dealer-history-lock-badge {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  color: #8a4b08;
  background: #fff1cf;
  font-weight: 700;
}
.customer-personnel-editor-grid > article {
  display: grid;
  gap: 12px;
  border: 1px solid #d9e4ef;
  border-radius: 12px;
  background: #f9fbfd;
  padding: 14px;
}
.customer-personnel-editor-grid > article > img {
  width: 100%;
  height: 240px;
  border-radius: 10px;
  object-fit: cover;
  object-position: center top;
  background: #e8eef5;
}
.dealer-case-select-grid {
  display: grid;
  gap: 12px;
}
.dealer-storefront-two {
  grid-template-columns: minmax(0, 1fr) 240px;
}
.dealer-photo-grid,
.dealer-case-grid,
.dealer-photo-edit-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.dealer-photo-placeholder {
  min-height: 128px;
  border: 1px dashed #b6c6d8;
  background: #f8fafc;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #64748b;
  overflow-wrap: anywhere;
}
.dealer-case-card,
.dealer-case-select-grid button {
  border: 1px solid #dbe5f1;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  text-align: left;
}
.dealer-case-card h3 {
  margin: 6px 0;
}
.dealer-photo-edit-grid label {
  display: grid;
  gap: 7px;
}
.dealer-media-library {
  display: grid;
  gap: 16px;
}
.dealer-media-library-section {
  padding: 14px;
  border: 1px solid #d8e3ee;
  border-radius: 12px;
  background: #f8fbfe;
}
.dealer-media-library-head,
.dealer-media-library-actions,
.dealer-media-add-actions,
.dealer-vr-url-add {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dealer-media-library-head {
  justify-content: space-between;
  margin-bottom: 10px;
}
.dealer-media-library-head > div:first-child {
  display: grid;
  gap: 3px;
}
.dealer-media-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
}
.dealer-media-library-item,
.dealer-media-library-row {
  padding: 10px;
  border: 1px solid #dbe5ee;
  border-radius: 10px;
  background: #fff;
}
.dealer-media-library-item img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 8px;
}
.dealer-media-library-list {
  display: grid;
  gap: 10px;
}
.dealer-media-library-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.dealer-media-library-row video {
  width: 150px;
  max-height: 100px;
  border-radius: 8px;
  background: #0f172a;
}
.dealer-media-library-row > div:nth-child(2) {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.dealer-media-library-row small,
.dealer-media-library-row a {
  overflow-wrap: anywhere;
}
.dealer-media-library-actions {
  flex-wrap: wrap;
}
.dealer-media-library-actions label {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #b8c8d8;
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
}
.dealer-media-library-actions input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.dealer-vr-url-add {
  margin: 10px 0;
}
.dealer-vr-url-add input:last-of-type {
  flex: 1;
}
.dealer-vr-kind {
  display: grid;
  place-items: center;
  min-height: 64px;
  border-radius: 8px;
  color: #0f5d92;
  background: #e8f4fb;
  font-weight: 700;
}
@media (max-width: 760px) {
  .quote-brand-inheritance-map {
    grid-template-columns: 1fr;
  }
  .quote-brand-inheritance-map i {
    transform: rotate(90deg);
    justify-self: center;
  }
  .dealer-media-library-head,
  .dealer-vr-url-add {
    align-items: stretch;
    flex-direction: column;
  }
  .dealer-media-library-row {
    grid-template-columns: 1fr;
  }
  .dealer-media-library-row video {
    width: 100%;
  }
}
.dealer-case-select-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.dealer-case-select-grid button.active {
  border-color: #0b62b4;
  background: #eaf3ff;
}
.dealer-case-select-grid small,
.dealer-case-select-grid span {
  display: block;
  margin-top: 4px;
  color: #64748b;
}
.dealer-advanced-edit summary {
  cursor: pointer;
}
.dealer-advanced-edit summary small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-weight: 400;
}
.dealer-profile-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  box-shadow: 0 -8px 18px rgba(15, 23, 42, 0.06);
}
.project-share-engagement {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border: 1px solid #d9e2ec;
  background: #f8fafc;
  border-radius: 8px;
  padding: 9px 10px;
  margin: 10px 0;
  color: #334155;
}
.project-share-engagement span,
.project-share-engagement b {
  border-right: 1px solid #d9e2ec;
  padding-right: 8px;
}
.project-share-engagement.high {
  border-color: #fca5a5;
  background: #fff5f5;
}
.project-share-engagement.medium {
  border-color: #fcd34d;
  background: #fffbeb;
}
.factory-admin-page {
  display: grid;
  gap: 16px;
}
.factory-admin-hero,
.factory-admin-deeplink,
.factory-admin-review-queue,
.factory-admin-legacy-tools {
  border: 1px solid #dbe5f3;
  border-radius: 8px;
  background: #fff;
}
.factory-admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.35fr);
  gap: 16px;
  align-items: center;
  padding: 20px;
  background: linear-gradient(135deg, #f7fbff 0%, #ffffff 70%, #f5faf8 100%);
}
.factory-admin-hero small,
.factory-admin-deeplink small {
  color: #0b62b4;
  font-weight: 700;
}
.factory-admin-hero-title {
  margin: 6px 0;
  color: #10233f;
  font-size: 32px;
  line-height: 1.15;
}
.factory-admin-hero-subtitle {
  margin: 0;
  color: #526277;
  line-height: 1.6;
}
.factory-admin-context-mini,
.factory-admin-deeplink-meta {
  display: grid;
  gap: 8px;
}
.factory-admin-context-mini span,
.factory-admin-deeplink-meta span {
  border: 1px solid #e1e8f2;
  border-radius: 8px;
  background: #fbfdff;
  padding: 8px 10px;
  color: #334155;
}
.factory-admin-deeplink {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.45fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
}
.factory-admin-deeplink h3,
.factory-admin-review-queue h3,
.factory-admin-section h3 {
  margin: 0;
  color: #172f4e;
}
.factory-admin-deeplink p,
.factory-admin-review-queue p,
.factory-admin-section p {
  margin: 6px 0 0;
  color: #526277;
  line-height: 1.55;
}
.factory-admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.factory-admin-metric-card,
.factory-admin-section,
.factory-admin-todo-list article,
.factory-admin-review-list article {
  border: 1px solid #e1e8f2;
  border-radius: 8px;
  background: #fff;
}
.factory-admin-metric-card {
  display: grid;
  gap: 6px;
  padding: 14px;
}
.factory-admin-metric-card small,
.factory-admin-metric-card span,
.factory-admin-review-list small,
.factory-admin-review-list em {
  color: #64748b;
}
.factory-admin-metric-card strong {
  color: #10233f;
  font-size: 26px;
}
.factory-admin-workspace {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.factory-admin-section {
  display: grid;
  gap: 10px;
  padding: 14px;
}
.factory-admin-section button {
  justify-self: start;
}
.factory-admin-review-queue {
  display: grid;
  gap: 12px;
  padding: 16px;
}
.factory-admin-todo-list,
.factory-admin-review-list,
.factory-admin-quick-actions {
  display: grid;
  gap: 10px;
}
.factory-admin-todo-list {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.factory-admin-todo-list article,
.factory-admin-review-list article {
  display: grid;
  gap: 6px;
  padding: 12px;
}
.factory-admin-todo-list strong {
  color: #174c85;
  font-size: 22px;
}
.factory-admin-review-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.factory-admin-quick-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.factory-admin-legacy-tools {
  margin-top: 16px;
  padding: 12px 16px 16px;
}
.factory-admin-legacy-tools summary {
  cursor: pointer;
  color: #172f4e;
}
.factory-admin-legacy-tools summary small {
  display: block;
  margin-top: 4px;
  color: #64748b;
}
.project-sales-decision {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  border: 1px solid #c7d2fe;
  background: #f8f7ff;
  border-radius: 8px;
  padding: 9px 10px;
  margin: 10px 0;
  color: #312e81;
}
.project-sales-decision b {
  color: #1e1b4b;
}
.project-sales-decision.high {
  border-color: #fca5a5;
  background: #fff5f5;
  color: #991b1b;
}
.project-sales-decision.medium {
  border-color: #fcd34d;
  background: #fffbeb;
  color: #92400e;
}

@media (max-width: 860px) {
  .dealer-storefront-hero,
  .dealer-storefront-two,
  .dealer-photo-grid,
  .dealer-case-grid,
  .dealer-photo-edit-grid,
  .dealer-case-select-grid {
    grid-template-columns: 1fr;
  }
}

.case-candidate-panel {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding: 10px;
  border: 1px solid #d8e1ee;
  border-radius: 8px;
  background: #f7fafc;
}

.case-candidate-panel h3 {
  margin: 0;
  font-size: 15px;
}

.case-candidate-card {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid #e5edf6;
  border-radius: 8px;
  background: #fff;
}

.case-candidate-card span {
  color: var(--muted);
  font-size: 12px;
}

.case-list .row-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 190px;
}

.case-list .row-actions button {
  padding: 4px 7px;
  font-size: 12px;
}

@media (max-width: 720px) {
  .compact-cases-topbar {
    padding: 8px;
  }

  .case-title-compact h1 {
    font-size: 18px;
  }
}

/* 20260619 dealer demonstration builder */
.super-admin-page,
.dealer-show-page {
  background: #f5f8fc;
}

.admin-builder-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 14px;
  align-items: start;
}

.builder-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(15, 45, 82, 0.04);
}

.builder-panel h3,
.dealer-content-head h3 {
  margin: 0 0 12px;
  color: #10284b;
}

.dealer-form-grid,
.permission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.dealer-form-grid label,
.permission-grid label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  color: #24324a;
}

.dealer-form-grid input,
.dealer-form-grid select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
}

.checkline {
  flex-direction: row !important;
  align-items: center;
  gap: 8px !important;
}

.checkline input {
  width: auto;
}

.dealer-list {
  display: grid;
  gap: 10px;
}

.dealer-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  background: #fbfdff;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.dealer-card.active {
  border-color: var(--brand-blue);
  box-shadow: inset 3px 0 0 var(--brand-blue);
}

.dealer-card b,
.dealer-card small {
  display: block;
}

.dealer-card small {
  color: var(--muted);
  margin-top: 3px;
}

.dealer-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}


.dealer-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.dealer-filter-grid label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--muted);
  font-size: 13px;
}

.dealer-card-main {
  min-width: 190px;
}

.dealer-card-meta {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.dealer-account-list {
  min-width: 220px;
  display: grid;
  gap: 6px;
}

.dealer-user-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 0;
  border-top: 1px solid var(--line);
}

.dealer-user-row:first-child {
  border-top: 0;
}

.dealer-user-row small {
  display: inline;
  margin: 0;
}

@media (max-width: 860px) {
  .dealer-block {
    flex-basis: 100% !important;
    max-width: 100% !important;
  }

  .dealer-filter-grid {
    grid-template-columns: 1fr;
  }

  .dealer-account-list {
    min-width: 0;
  }
}

.permission-panel {
  grid-column: 1 / -1;
}

.dealer-show-page {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 14px;
  gap: 12px;
  overflow: hidden;
}

.dealer-show-head {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.dealer-show-head h2,
.dealer-show-head p {
  margin: 0;
}

.dealer-show-head p {
  margin-top: 4px;
  color: var(--muted);
}

.dealer-show-actions,
.dealer-content-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.dealer-show-layout {
  min-height: 0;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 12px;
}

.dealer-menu-panel,
.dealer-content-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 0;
  overflow: auto;
}

.dealer-menu-panel {
  padding: 10px;
}

.dealer-content-panel {
  padding: 16px;
}

.dealer-menu-group {
  border-bottom: 1px solid #eef2f8;
  padding: 4px 0;
}

.dealer-menu-level1,
.dealer-menu-level2,
.dealer-menu-level3 {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: #10284b;
  cursor: pointer;
}

.dealer-menu-level1 {
  font-weight: 700;
  padding: 10px 8px;
}

.dealer-menu-level2,
.dealer-menu-level3 {
  border-radius: 6px;
  padding: 8px;
}

.dealer-menu-level2.active,
.dealer-menu-level3.active,
.dealer-menu-level2:hover,
.dealer-menu-level3:hover {
  background: #eaf3ff;
}

.dealer-menu-children {
  display: grid;
  gap: 3px;
  padding: 0 0 8px 8px;
}

.dealer-menu-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dealer-menu-row.small {
  padding-left: 16px;
}

.dealer-menu-item-wrap.hidden,
.dealer-menu-row.hidden {
  opacity: 0.55;
}

.menu-tools {
  display: inline-flex;
  gap: 4px;
  flex: 0 0 auto;
}

.menu-tools button,
.add-menu-btn {
  padding: 4px 7px;
  font-size: 12px;
}

.status-pill {
  border-radius: 999px;
  background: #eef2f8;
  color: #61708a;
  padding: 2px 6px;
  font-size: 12px;
}

.dealer-content-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  border-bottom: 1px solid #eef2f8;
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.dealer-content-head p {
  margin: 0;
  color: var(--muted);
}

.upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  background: #fff;
}

.upload-button input {
  display: none;
}

.dealer-block-list {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
}

.dealer-block {
  position: relative;
  flex: 1 1 calc(100% - 12px);
  min-width: 220px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.dealer-block[draggable="true"] {
  cursor: grab;
}

.dealer-block[draggable="true"]:active {
  cursor: grabbing;
}

.dealer-block.has-link:not([draggable="true"]) {
  cursor: pointer;
}

.dealer-block h4 {
  margin: 0 0 8px;
  color: #10284b;
}

.dealer-block p {
  margin: 0;
  line-height: 1.7;
}

.dealer-block img,
.dealer-block video {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: 4px;
  background: transparent;
}

.dealer-block-actions {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.dealer-block-actions select {
  width: auto;
  min-width: 72px;
  padding: 4px 6px;
  font-size: 12px;
}

.drag-handle,
.resize-handle {
  border: 1px solid #c9d5e8;
  border-radius: 6px;
  padding: 4px 6px;
  color: var(--muted);
  background: #fff;
  font-size: 12px;
  line-height: 1;
  cursor: grab;
}

.resize-handle {
  cursor: ew-resize;
}

.empty-state {
  border: 1px dashed #c9d5e8;
  border-radius: 8px;
  padding: 24px;
  color: var(--muted);
  background: #fbfdff;
}
.link-button {
  display: inline-flex;
  text-decoration: none;
}

@media (max-width: 860px) {
  .dealer-block {
    flex-basis: 100% !important;
    max-width: 100% !important;
  }

  .admin-builder-layout,
  .dealer-show-layout,
  .dealer-form-grid,
  .permission-grid {
    grid-template-columns: 1fr;
  }

  .dealer-show-page {
    overflow: auto;
  }

  .dealer-show-head,
  .dealer-content-head,
  .dealer-card {
    flex-direction: column;
    align-items: stretch;
  }

  .dealer-menu-panel,
  .dealer-content-panel {
    max-height: none;
  }
}

/* 20260620 brand header adjustment */
.platform-header {
  padding: 10px 18px;
  min-height: 58px;
}

.platform-brand-line {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-wrap: wrap;
}

.carrier-logo-main {
  height: 24px;
  width: auto;
  display: block;
}

.brand-separator {
  width: 1px;
  height: 26px;
  background: #c8d5e8;
  flex: 0 0 auto;
}

.brand-title-main,
.brand-dealer-name {
  color: #10284b;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.brand-title-main {
  font-size: 22px;
}

.brand-dealer-name {
  font-size: 18px;
  max-width: min(48vw, 520px);
  overflow: hidden;
  text-overflow: ellipsis;
}

.dealer-show-page {
  padding-top: 10px;
  gap: 10px;
}

.dealer-show-page > .dealer-show-head {
  display: none;
}

@media (max-width: 760px) {
  .platform-header {
    gap: 10px;
    padding: 10px 12px;
  }

  .platform-brand-line {
    flex-direction: row !important;
    align-items: center !important;
  }

  .carrier-logo-main {
    height: 22px;
  }

  .brand-title-main {
    font-size: 19px;
  }

  .brand-dealer-name {
    font-size: 15px;
    max-width: 100%;
    white-space: normal;
  }

  .platform-header-actions button {
    flex: 0 1 auto;
  }
}







.dealer-menu-group[draggable="true"],
.dealer-menu-item-wrap[draggable="true"],
.dealer-menu-row[draggable="true"] {
  cursor: grab;
}

.root-add {
  width: 100%;
  margin-bottom: 10px;
}

.dealer-text-block {
  min-height: 28px;
  outline: none;
  line-height: 1.75;
  white-space: pre-wrap;
}

.dealer-text-block[contenteditable="true"]:focus {
  box-shadow: inset 3px 0 0 var(--brand-blue);
  padding-left: 8px;
}

.block-h1 { font-size: 28px; font-weight: 800; line-height: 1.35; }
.block-h2 { font-size: 23px; font-weight: 750; line-height: 1.4; }
.block-h3 { font-size: 19px; font-weight: 700; line-height: 1.45; }
.block-h4 { font-size: 16px; font-weight: 700; line-height: 1.5; }
.block-bullet::before { content: "• "; color: #233b5d; }
.block-numbered { counter-increment: item; }
.block-numbered::before { content: "1. "; color: #233b5d; }
.block-todo::before { content: "☐ "; color: #233b5d; }
.block-toggle::before { content: "› "; color: #233b5d; }
.block-quote { border-left: 4px solid #9fb2ca; padding-left: 12px; color: #344767; }
.block-code { font-family: Consolas, monospace; background: #f3f6fb; padding: 10px; border-radius: 6px; }
.block-callout { background: #eef6ff; padding: 10px 12px; border-radius: 8px; }
.block-page::before { content: "□ "; color: #233b5d; }

.block-menu-popover,
.text-context-menu {
  position: fixed;
  z-index: 2500;
  width: 300px;
  max-height: 70vh;
  overflow: auto;
  background: #fff;
  border: 1px solid #d7e1ef;
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(15, 35, 65, 0.18);
  padding: 8px;
}

.block-menu-popover {
  right: 36px;
  top: 120px;
}

.block-menu-title {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 13px;
}

.block-menu-popover button,
.text-context-menu button {
  width: 100%;
  border: 0;
  background: #fff;
  color: #17233b;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 6px;
  text-align: left;
  cursor: pointer;
}

.block-menu-popover button:hover,
.text-context-menu button:hover {
  background: #eef4fb;
}

.block-menu-popover b {
  width: 34px;
  font-size: 17px;
  font-weight: 600;
}

.block-menu-popover small {
  margin-left: auto;
  color: var(--muted);
}

.text-context-menu {
  width: 210px;
}

.text-context-menu .context-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 4px;
}

.text-context-menu .context-row button {
  justify-content: center;
  font-weight: 700;
}

/* 20260620 Notion-like dealer editor polish */
.dealer-menu-group[draggable="true"],
.dealer-menu-item-wrap[draggable="true"],
.dealer-menu-row[draggable="true"],
.dealer-block[draggable="true"] {
  user-select: none;
}

.dealer-text-block {
  border-radius: 6px;
  padding: 3px 5px;
}

.block-todo {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.block-todo::before {
  content: none;
}

.block-todo input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin-top: 6px;
  flex: 0 0 auto;
  cursor: pointer;
}

.block-todo span {
  flex: 1 1 auto;
  min-height: 26px;
  outline: none;
}

.block-todo span.done {
  color: #8a98aa;
  text-decoration: line-through;
}

.text-context-menu {
  width: 286px;
}

.text-context-menu .context-subtitle {
  padding: 9px 10px 5px;
  color: #68758a;
  font-size: 12px;
  border-top: 1px solid #edf1f7;
  margin-top: 4px;
}

.text-context-menu .color-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  padding: 4px;
}

.text-context-menu .color-grid button.swatch {
  min-height: 31px;
  justify-content: center;
  padding: 5px 4px;
  font-size: 12px;
  border: 1px solid #e3e9f2;
}

.text-context-menu .swatch.default { background: #fff; color: #17233b; }
.text-context-menu .swatch.gray { color: #6b7280; background: #f9fafb; }
.text-context-menu .swatch.brown { color: #92400e; background: #fffaf5; }
.text-context-menu .swatch.orange { color: #ea580c; background: #fff7ed; }
.text-context-menu .swatch.yellow { color: #ca8a04; background: #fefce8; }
.text-context-menu .swatch.green { color: #16a34a; background: #f0fdf4; }
.text-context-menu .swatch.blue { color: #2563eb; background: #eff6ff; }
.text-context-menu .swatch.purple { color: #7c3aed; background: #faf5ff; }
.text-context-menu .swatch.pink { color: #db2777; background: #fdf2f8; }
.text-context-menu .swatch.red { color: #dc2626; background: #fef2f2; }

.text-context-menu .bg-grid .swatch.default { background: #fff; }
.text-context-menu .bg-grid .swatch.gray { background: #f3f4f6; color: #374151; }
.text-context-menu .bg-grid .swatch.brown { background: #f5eee8; color: #78350f; }
.text-context-menu .bg-grid .swatch.orange { background: #fff1e6; color: #c2410c; }
.text-context-menu .bg-grid .swatch.yellow { background: #fef3c7; color: #a16207; }
.text-context-menu .bg-grid .swatch.green { background: #dcfce7; color: #15803d; }
.text-context-menu .bg-grid .swatch.blue { background: #dbeafe; color: #1d4ed8; }
.text-context-menu .bg-grid .swatch.purple { background: #ede9fe; color: #6d28d9; }
.text-context-menu .bg-grid .swatch.pink { background: #fce7f3; color: #be185d; }
.text-context-menu .bg-grid .swatch.red { background: #fee2e2; color: #b91c1c; }

/* 20260620 swap dealer editor side panels */
.dealer-show-layout {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.dealer-content-panel {
  order: 1;
}

.dealer-menu-panel {
  order: 2;
}

.dealer-text-block a {
  color: #0066b3;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 860px) {
  .dealer-content-panel,
  .dealer-menu-panel {
    order: initial;
  }
}

/* 20260621 precise menu drop indicator */
.dealer-menu-group,
.dealer-menu-item-wrap,
.dealer-menu-row {
  position: relative;
}

.menu-drop-before::before,
.menu-drop-after::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  height: 3px;
  border-radius: 999px;
  background: #0066b3;
  box-shadow: 0 0 0 3px rgba(0, 102, 179, 0.14);
  pointer-events: none;
  z-index: 12;
}

.menu-drop-before::before {
  top: -2px;
}

.menu-drop-after::after {
  bottom: -2px;
}

.dealer-menu-row.menu-drop-before::before,
.dealer-menu-row.menu-drop-after::after {
  left: 18px;
}

/* 20260621 recursive multi-level dealer menu */
.dealer-menu-recursive-item {
  position: relative;
  border-bottom: 1px solid #eef2f8;
  padding: 2px 0;
}

.dealer-menu-recursive-item[draggable="true"] {
  cursor: grab;
}

.dealer-menu-recursive-children {
  display: grid;
  gap: 2px;
}

.dealer-menu-recursive-button {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: #10284b;
  border-radius: 6px;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.dealer-menu-recursive-button.level-1 {
  font-weight: 800;
  padding: 10px 8px;
}

.dealer-menu-recursive-button.level-2 {
  font-weight: 650;
}

.dealer-menu-recursive-button.level-3,
.dealer-menu-recursive-button.level-4,
.dealer-menu-recursive-button.level-5,
.dealer-menu-recursive-button.level-6 {
  font-size: 13px;
}

.dealer-menu-recursive-button.active,
.dealer-menu-recursive-button:hover {
  background: #eaf3ff;
}

.menu-caret {
  width: 16px;
  flex: 0 0 16px;
  color: #5e6f86;
}

.recursive-tools {
  flex: 0 0 auto;
}

.dealer-menu-recursive-item.menu-drop-before::before,
.dealer-menu-recursive-item.menu-drop-after::after {
  left: 8px;
  right: 8px;
}


/* 20260621 menu drag handle */
.menu-drag-handle {
  flex: 0 0 auto;
  border: 1px solid #c9d5e8;
  border-radius: 4px;
  padding: 2px 4px;
  color: #5e6f86;
  background: #fff;
  font-size: 12px;
  line-height: 1;
  cursor: grab;
  user-select: none;
}

.menu-drag-handle:active,
.dealer-menu-recursive-button[draggable="true"]:active {
  cursor: grabbing;
}

.dealer-menu-recursive-button[draggable="true"] {
  cursor: grab;
}

/* 20260622 diagnosis MVP */
.tool-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
}
.tool-tabs button.active {
  background: #0b62b4;
  color: #fff;
  border-color: #0b62b4;
}
.project-center-tabs {
  align-items: center;
  position: sticky;
  top: 70px;
  z-index: 18;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #d7e1ee;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}
.project-center-tabs > span {
  margin-left: auto;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}
.diagnosis-flow-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}
.diagnosis-flow-steps button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "index label" "index status";
  gap: 3px 9px;
  text-align: left;
  align-items: center;
  border: 1px solid #d7e2ef;
  background: #f8fbff;
  min-height: 58px;
}
.diagnosis-flow-steps button.active {
  border-color: #0b62b4;
  background: #eaf3ff;
  box-shadow: inset 0 0 0 1px #0b62b4;
}
.diagnosis-flow-steps button.complete .diagnosis-step-index {
  background: #0f766e;
}
.diagnosis-step-index {
  grid-area: index;
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: #0b62b4;
  color: #fff;
  font-weight: 700;
}
.diagnosis-step-label {
  grid-area: label;
  font-weight: 700;
  color: #18324a;
}
.diagnosis-flow-steps small {
  grid-area: status;
  color: #64748b;
}
.diagnosis-flow-notice {
  margin-top: -6px;
}
.diagnosis-quote-project-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  border-left: 4px solid #0f766e;
}
.diagnosis-quote-project-summary small {
  color: #0f766e;
  font-weight: 700;
}
.diagnosis-quote-project-summary h3 {
  margin: 3px 0 6px;
}
.diagnosis-quote-project-summary .form-actions {
  align-items: center;
  justify-content: flex-end;
  max-width: 520px;
}
.panel-title-row,
.floor-head,
.room-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.diagnosis-admin-panel {
  margin-top: 16px;
}
.diagnosis-admin-grid,
.diagnosis-grid,
.diagnosis-builder-row {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.admin-list.slim-list,
.diagnosis-project-list {
  display: grid;
  gap: 8px;
  align-content: start;
}
.admin-list.slim-list button,
.diagnosis-project-list button {
  text-align: left;
  display: grid;
  gap: 4px;
}
.diagnosis-project-list button.active {
  border-color: #0b62b4;
  background: #eaf3ff;
}
.dealer-form-grid .wide {
  grid-column: 1 / -1;
}
.dealer-form-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.inline-form input,
.inline-form select {
  min-width: 120px;
}
.climate-mini,
.six-grid,
.score-grid {
  display: grid;
  gap: 8px;
}
.climate-mini {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-bottom: 12px;
}
.climate-mini span,
.six-grid span,
.score-card,
.score-grid.small > div {
  border: 1px solid #dbe5f3;
  background: #f8fbff;
  border-radius: 6px;
  padding: 8px;
}
.diagnosis-floor {
  margin-top: 14px;
  border-top: 1px solid #e5edf7;
  padding-top: 10px;
}
.diagnosis-room-card {
  border: 1px solid #dbe5f3;
  border-radius: 8px;
  padding: 12px;
  margin: 10px 0;
  background: #fff;
}
.room-system-selects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin: 10px 0;
}
.six-grid {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}
.score-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.score-card strong {
  display: block;
  font-size: 24px;
  color: #0b62b4;
  margin: 4px 0;
}
.score-grid.small {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 10px;
}
.diagnosis-result pre {
  white-space: pre-wrap;
  background: #f5f7fb;
  padding: 10px;
  border-radius: 6px;
}
.diagnosis-consultation-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.diagnosis-consultation-head,
.diagnosis-recommendation-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.diagnosis-consultation-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.diagnosis-consultation-meta span,
.diagnosis-recommendation-tags span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  border: 1px solid #d9e2ec;
  background: #f8fafc;
  color: #334155;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
}
.diagnosis-consultation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.diagnosis-consultation-section {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}
.diagnosis-consultation-section h4,
.diagnosis-recommendation-card h4 {
  margin: 0 0 10px;
  font-size: 15px;
}
.diagnosis-consultation-section textarea {
  width: 100%;
  min-height: 130px;
  resize: vertical;
}
.diagnosis-consultation-extra summary,
.diagnosis-advanced-panel > summary,
.diagnosis-sales-ai-settings summary {
  cursor: pointer;
  font-weight: 700;
  color: #1e3a5f;
}
.diagnosis-consultation-extra[open] summary {
  margin-bottom: 10px;
}
.diagnosis-flow-generate {
  min-width: 156px;
}
.diagnosis-advanced-panel > summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}
.diagnosis-advanced-panel > summary small {
  color: #64748b;
  font-weight: 400;
}
.diagnosis-advanced-panel > summary em {
  color: #0b62b4;
  font-style: normal;
  font-size: 12px;
}
.diagnosis-advanced-panel[open] > summary {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
}
.diagnosis-consultation-chipset,
.diagnosis-recommendation-tags,
.diagnosis-recommendation-future {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.diagnosis-consultation-chipset button {
  border: 1px solid #d9e2ec;
  background: #f8fafc;
  color: #334155;
  padding: 7px 10px;
}
.diagnosis-consultation-chipset button.active {
  border-color: #0b62b4;
  background: #eaf3ff;
  color: #0b62b4;
}
.diagnosis-consultation-actions {
  align-items: center;
  flex-wrap: wrap;
}
.diagnosis-recommendation-summary {
  border-left: 4px solid #0b62b4;
}
.diagnosis-result-overview {
  display: grid;
  gap: 12px;
}
.diagnosis-result-overview small,
.diagnosis-recommendation-head small {
  color: #0b62b4;
  font-weight: 700;
}
.diagnosis-core-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.diagnosis-core-tags span {
  display: inline-flex;
  border: 1px solid #d9e2ec;
  background: #f8fafc;
  border-radius: 999px;
  padding: 6px 10px;
  color: #334155;
  font-size: 12px;
}
.diagnosis-result-primary {
  border-left: 5px solid #0b62b4;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}
.diagnosis-result-alternative {
  border-left: 4px solid #cbd5e1;
}
.diagnosis-result-conclusion {
  color: #1f2937;
  font-weight: 700;
  margin: 8px 0 0;
}
.diagnosis-package-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  border: 1px solid #bbf7d0;
  background: #f7fdf9;
  border-radius: 8px;
  padding: 10px 12px;
  margin: 12px 0;
}
.diagnosis-package-card div {
  min-width: 0;
}
.diagnosis-package-card small {
  display: block;
  color: #64748b;
  margin-bottom: 3px;
}
.diagnosis-package-card b,
.diagnosis-package-card span {
  color: #14532d;
  overflow-wrap: anywhere;
}
.diagnosis-result-cost-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #dbeafe;
  background: #f8fbff;
  border-radius: 8px;
  padding: 10px 12px;
  margin: 12px 0;
}
.diagnosis-result-cost-summary b {
  color: #0b62b4;
}
.diagnosis-result-cost-summary span {
  flex: 1 1 220px;
  color: #334155;
}
.diagnosis-recommendation-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.diagnosis-recommendation-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.diagnosis-recommendation-future {
  padding-top: 8px;
  border-top: 1px solid #eef2f7;
}
.diagnosis-recommendation-future button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.diagnosis-product-library {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.diagnosis-library-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.diagnosis-library-summary div,
.diagnosis-library-item {
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}
.diagnosis-library-summary b,
.diagnosis-library-summary span {
  display: block;
  color: #475569;
}
.diagnosis-library-summary strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
  color: #0f172a;
}
.diagnosis-library-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.diagnosis-library-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.diagnosis-library-item div {
  display: flex;
  gap: 8px;
  justify-content: space-between;
}
.diagnosis-library-item p,
.diagnosis-library-item small {
  display: block;
  margin: 6px 0 0;
  color: #475569;
}
.quote-catalog-admin {
  display: grid;
  gap: 14px;
}
.quote-catalog-status-grid,
.quote-catalog-actionable {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.quote-catalog-status-grid article,
.quote-catalog-actionable article,
.quote-catalog-issue-list article,
.quote-catalog-host-list article {
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}
.quote-catalog-status-grid small,
.quote-catalog-status-grid span,
.quote-catalog-issue-list span,
.quote-catalog-issue-list small,
.quote-catalog-host-list p,
.quote-catalog-host-list small {
  display: block;
  color: #475569;
}
.quote-catalog-status-grid b,
.quote-catalog-actionable b {
  display: block;
  margin-top: 4px;
  color: #0f172a;
  font-size: 22px;
}
.quote-catalog-table-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.quote-catalog-table-counts span {
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #f8fbff;
  padding: 7px 10px;
  color: #334155;
}
.quote-catalog-override-panel .hint {
  margin: 8px 0 0;
}
.quote-catalog-override-grid,
.quote-catalog-model-override-form {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr auto auto;
  gap: 10px;
  align-items: end;
}
.quote-catalog-override-grid label,
.quote-catalog-model-override-form label {
  display: grid;
  gap: 4px;
  color: #334155;
  font-size: 12px;
}
.quote-catalog-override-grid input,
.quote-catalog-model-override-form input {
  min-height: 34px;
}
.quote-catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.quote-catalog-filters button {
  border: 1px solid #dbe4ef;
  background: #fff;
  color: #334155;
}
.quote-catalog-filters button.active {
  border-color: #1d6fd6;
  background: #eaf3ff;
  color: #174c85;
}
.quote-catalog-issue-list,
.quote-catalog-host-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.quote-catalog-host-list article div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.quote-catalog-host-list article div span {
  color: #174c85;
  font-size: 12px;
}
.quote-catalog-host-list p {
  margin: 6px 0 0;
}
.quote-catalog-host-list article {
  cursor: pointer;
}
.quote-catalog-host-list article.active {
  border-color: #1d6fd6;
  box-shadow: 0 0 0 2px rgba(29, 111, 214, 0.12);
}
.quote-catalog-host-filters {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, minmax(120px, 0.8fr)) auto;
  gap: 10px;
  align-items: end;
  margin: 10px 0;
}
.quote-catalog-model-filters {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, minmax(120px, 0.8fr)) auto;
  gap: 10px;
  align-items: end;
  margin: 10px 0;
}
.quote-catalog-host-filters label,
.quote-catalog-model-filters label {
  display: grid;
  gap: 4px;
  color: #334155;
  font-size: 12px;
}
.quote-catalog-host-filters input,
.quote-catalog-host-filters select,
.quote-catalog-model-filters input,
.quote-catalog-model-filters select {
  min-height: 34px;
}
.quote-catalog-model-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.quote-catalog-model-list article {
  display: grid;
  gap: 6px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  cursor: pointer;
}
.quote-catalog-model-list article.active {
  border-color: #1d6fd6;
  box-shadow: 0 0 0 2px rgba(29, 111, 214, 0.12);
}
.quote-catalog-model-list article div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.quote-catalog-model-list article div span {
  color: #174c85;
  font-size: 12px;
}
.quote-catalog-model-list p,
.quote-catalog-model-list small {
  display: block;
  margin: 0;
  color: #475569;
}
.quote-catalog-host-detail,
.quote-catalog-model-detail {
  margin-top: 12px;
  border: 1px solid #c9d8ec;
  border-radius: 8px;
  background: #f8fbff;
  padding: 12px;
}
.quote-catalog-host-detail > div:first-child,
.quote-catalog-model-detail > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.quote-catalog-host-detail h4,
.quote-catalog-model-detail h4 {
  margin: 0;
}
.quote-catalog-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.quote-catalog-detail-grid span {
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #fff;
  padding: 8px 10px;
  color: #334155;
}
.quote-rule-engine-editor {
  margin-top: 14px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}
.quote-rule-maintenance-hub {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.quote-rule-maintenance-hub button {
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  text-align: left;
  display: grid;
  gap: 6px;
  cursor: pointer;
  color: #334155;
}
.quote-rule-maintenance-hub button:hover,
.quote-rule-maintenance-hub button.active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #0f172a;
}
.quote-rule-maintenance-hub b {
  font-size: 14px;
}
.quote-rule-maintenance-hub span {
  font-size: 12px;
  line-height: 1.45;
  color: #64748b;
}
.quote-rule-default-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.quote-rule-default-grid article {
  display: grid;
  gap: 8px;
  align-content: start;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  padding: 12px;
  background: #fbfdff;
}
.quote-rule-default-grid h4 {
  margin: 0;
  font-size: 14px;
  color: #0f172a;
}
.quote-rule-default-grid label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: #64748b;
}
.quote-rule-default-grid label span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.quote-rule-default-grid input {
  min-width: 0;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
}
.quote-rule-option-grid textarea,
.quote-rule-model-edit-grid textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  resize: vertical;
}
.quote-rule-model-table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.quote-rule-model-table article {
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  display: grid;
  gap: 5px;
  cursor: pointer;
}
.quote-rule-model-table article.active,
.quote-rule-model-table article:hover {
  border-color: #2563eb;
  background: #eff6ff;
}
.quote-rule-model-table article div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.quote-rule-model-table article div span {
  color: #0b62b4;
  font-size: 12px;
  font-weight: 700;
}
.quote-rule-model-table p,
.quote-rule-model-table small {
  margin: 0;
  color: #64748b;
}
.quote-rule-model-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 8px;
}
.quote-rule-model-tabs button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.quote-rule-model-tabs button.active {
  border-color: #1769d5;
  background: #eef6ff;
  color: #0f4f96;
}
.quote-rule-model-tabs span {
  color: #64748b;
  font-size: 12px;
}
.quote-rule-model-sheet {
  margin-top: 12px;
  overflow: auto;
  max-height: 620px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #fff;
}
.quote-rule-model-sheet table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}
.quote-rule-model-sheet th,
.quote-rule-model-sheet td {
  border-right: 1px solid #dbe4ef;
  border-bottom: 1px solid #dbe4ef;
  padding: 6px;
  white-space: nowrap;
}
.quote-rule-model-sheet th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #eef4fb;
  color: #17365f;
  text-align: left;
}
.quote-rule-model-sheet td:first-child,
.quote-rule-model-sheet th:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
  background: #f8fbff;
  min-width: 116px;
}
.quote-rule-model-sheet td:nth-child(2),
.quote-rule-model-sheet th:nth-child(2) {
  position: sticky;
  left: 116px;
  z-index: 3;
  background: #f8fbff;
  min-width: 92px;
}
.quote-rule-model-sheet th:first-child {
  z-index: 4;
}
.quote-rule-model-sheet th:nth-child(2) {
  z-index: 4;
}
.quote-rule-model-sheet tr.active td,
.quote-rule-model-sheet tr:hover td {
  background: #f8fbff;
}
.quote-rule-model-sheet input {
  width: 130px;
  min-height: 30px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  padding: 4px 6px;
  font: inherit;
}
.quote-rule-model-sheet input:focus {
  border-color: #1769d5;
  background: #fff;
  outline: none;
}
.quote-rule-model-sheet input[type="checkbox"] {
  width: auto;
  min-height: auto;
}
.quote-rule-row-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}
.quote-rule-model-maintenance {
  width: 100%;
  min-width: 0;
  overflow: hidden;
}
.quote-rule-model-title {
  margin-bottom: 10px;
}
.quote-rule-model-toolbar {
  display: grid;
  grid-template-columns: auto minmax(150px, 0.7fr) minmax(180px, 0.9fr) minmax(220px, 1.3fr) auto auto;
  gap: 10px;
  align-items: end;
  padding: 10px;
  border: 1px solid #dbe4ef;
  background: #f8fbff;
}
.quote-rule-model-toolbar label {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: #334155;
  font-size: 12px;
}
.quote-rule-model-toolbar input,
.quote-rule-model-toolbar select,
.quote-rule-model-toolbar button {
  min-height: 36px;
}
.quote-rule-unsaved {
  align-self: center;
  color: #9a5a00;
  font-weight: 700;
  white-space: nowrap;
}
.quote-rule-model-accordion {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.quote-rule-model-module {
  min-width: 0;
  border: 1px solid #dbe4ef;
  background: #fff;
}
.quote-rule-model-module-head {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  background: #f8fafc;
  border-bottom: 1px solid #e5edf6;
}
.quote-rule-model-module-toggle {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
}
.quote-rule-model-module-toggle b {
  color: #17365f;
  font-size: 16px;
}
.quote-rule-model-module-toggle span:last-child {
  color: #64748b;
  font-size: 12px;
}
.quote-rule-model-caret {
  width: 18px;
  color: #334155;
  flex: 0 0 18px;
}
.quote-rule-model-attribute-summary {
  margin: 0;
  padding: 8px 14px 9px 36px;
  color: #475569;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.quote-rule-module-sheet {
  margin: 0;
  max-height: 520px;
  border-width: 1px 0 0;
  border-radius: 0;
}
.quote-rule-module-sheet td:first-child,
.quote-rule-module-sheet th:first-child {
  min-width: 150px;
}
.quote-rule-model-row-actions {
  white-space: nowrap;
}
.quote-rule-model-row-actions .tiny {
  margin: 2px;
}
.quote-rule-module-sheet td:nth-child(2),
.quote-rule-module-sheet th:nth-child(2) {
  position: static;
  left: auto;
  min-width: 0;
  background: inherit;
}
.quote-rule-module-sheet tr.dirty td {
  background: #fff8e8;
}
.quote-rule-module-sheet tr.dirty td:first-child {
  box-shadow: inset 3px 0 0 #d18a00;
}
.quote-rule-module-sheet input,
.quote-rule-module-sheet select {
  display: block;
  width: 100%;
  min-width: 100px;
  min-height: 30px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  padding: 4px 6px;
  font: inherit;
}
.quote-rule-module-sheet select:focus {
  border-color: #1769d5;
  background: #fff;
  outline: none;
}
.quote-rule-system-picker {
  position: relative;
  width: 132px;
}

.quote-rule-form-picker {
  position: relative;
  min-width: 100%;
}

.quote-rule-form-picker summary {
  display: block;
  min-height: 34px;
  padding: 7px 28px 7px 10px;
  border: 1px solid var(--line, #d7e2f2);
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quote-rule-form-picker-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 4px);
  left: 0;
  width: max-content;
  min-width: 220px;
  max-width: 320px;
  max-height: 260px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line, #d7e2f2);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(22, 55, 102, .15);
}

.quote-rule-form-picker-menu label {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 4px;
  white-space: nowrap;
  cursor: pointer;
}

.quote-rule-control-picker-menu {
  min-width: 300px;
}

.quote-rule-control-picker-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #edf2f8;
}

.quote-rule-control-picker-option:last-child {
  border-bottom: 0;
}

.quote-rule-control-picker-option .quote-rule-control-default {
  color: #1769d5;
  font-size: 12px;
}
.quote-rule-system-picker summary {
  display: block;
  min-height: 30px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 5px 20px 5px 6px;
  background: transparent;
  color: #1f2937;
  cursor: pointer;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.quote-rule-system-picker summary:hover,
.quote-rule-system-picker[open] summary {
  border-color: #1769d5;
  background: #fff;
}
.quote-rule-system-picker-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 4px);
  left: 0;
  width: 260px;
  max-height: 300px;
  overflow: auto;
  border: 1px solid #b8cbe2;
  border-radius: 6px;
  padding: 6px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(21, 52, 95, 0.18);
}
.quote-rule-system-picker-menu label {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 6px;
  color: #334155;
  cursor: pointer;
  white-space: normal;
}
.quote-rule-system-picker-menu label:hover {
  background: #eef6ff;
}
.quote-rule-system-picker-menu input[type="checkbox"] {
  width: auto;
  min-width: 0;
  min-height: auto;
  margin-top: 2px;
}
.quote-rule-brand-picker {
  position: relative;
  width: 100%;
}
.quote-rule-brand-picker summary {
  min-height: 36px;
  overflow: hidden;
  border: 1px solid #c8d7e9;
  border-radius: 6px;
  padding: 8px 28px 8px 10px;
  background: #fff;
  color: #1f2937;
  cursor: pointer;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.quote-rule-brand-picker[open] summary {
  border-color: #1769d5;
}
.quote-rule-brand-picker-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 240px;
  overflow: auto;
  border: 1px solid #b8cbe2;
  border-radius: 6px;
  padding: 6px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(21, 52, 95, 0.18);
}
.quote-rule-brand-picker-menu label {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px;
  color: #334155;
  cursor: pointer;
}
.quote-rule-brand-picker-menu label:hover {
  background: #eef6ff;
}
button.tiny {
  min-height: 28px;
  padding: 4px 8px;
  font-size: 12px;
}
.quote-rule-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.quote-rule-option-grid article {
  display: grid;
  gap: 8px;
  align-content: start;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  padding: 12px;
  background: #fbfdff;
}
.quote-rule-option-grid article > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.quote-rule-option-grid b {
  color: #0f172a;
}
.quote-rule-option-grid p,
.quote-rule-option-grid small {
  margin: 0;
  color: #64748b;
  font-size: 12px;
}
.quote-rule-option-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.quote-rule-option-chip-list span {
  border: 1px solid #dbe4ef;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  padding: 4px 8px;
  font-size: 12px;
}
.quote-rule-model-editor {
  margin-top: 12px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #f8fbff;
  padding: 12px;
}
.quote-rule-model-edit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.quote-rule-model-edit-grid label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: #64748b;
}
.quote-rule-model-edit-grid label.wide {
  grid-column: 1 / -1;
}
.quote-rule-model-edit-grid input {
  min-width: 0;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
}
.quote-catalog-model-override-form {
  margin-top: 12px;
}
.dealer-quote-input-page {
  display: grid;
  gap: 16px;
}
.dealer-quote-input-head,
.dealer-quote-input-browser {
  display: grid;
  gap: 12px;
}
.dealer-quote-input-stats.role-stat-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.dealer-quote-input-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 14px;
  align-items: start;
}
.dealer-quote-model-list {
  max-height: 720px;
  overflow: auto;
  padding-right: 4px;
}
.dealer-quote-input-editor {
  position: sticky;
  top: 12px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #f8fbff;
  padding: 12px;
  display: grid;
  gap: 10px;
}
.dealer-quote-input-form {
  display: grid;
  gap: 10px;
}
.dealer-quote-input-form label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: #64748b;
}
.dealer-quote-input-form input {
  min-width: 0;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
}
@media (max-width: 920px) {
  .dealer-quote-input-layout {
    grid-template-columns: 1fr;
  }
  .dealer-quote-input-editor {
    position: static;
  }
}
.diagnosis-sales-script-panel {
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #fbfdff;
  padding: 12px;
}
.diagnosis-sales-actions {
  align-items: center;
}
.diagnosis-sales-actions .loading {
  margin: 0;
}
.copy-script-button {
  box-shadow: 0 8px 18px rgba(11, 98, 180, 0.16);
}
.diagnosis-quotation-panel {
  flex: 1 1 100%;
  border: 1px solid #d7e7d9;
  border-radius: 8px;
  background: #f8fdf9;
  padding: 12px;
  margin-top: 4px;
}
.diagnosis-quotation-panel .diagnosis-cost-card-head span {
  color: #64748b;
  font-size: 12px;
}
.diagnosis-quotation-text {
  white-space: pre-line;
  line-height: 1.7;
  color: #334155;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
  margin: 10px 0;
}
.diagnosis-sales-ai-settings {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
  margin: 10px 0;
  background: #f8fafc;
}
.diagnosis-sales-ai-settings[open] summary {
  margin-bottom: 10px;
}
.diagnosis-sales-script-card {
  margin-top: 12px;
  border-top: 1px solid #e2e8f0;
  padding-top: 12px;
}
.diagnosis-sales-script-card.stale {
  background: #fffaf0;
  border-radius: 8px;
  padding: 12px;
}
.diagnosis-script-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.diagnosis-script-tabs button {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  padding: 6px 12px;
}
.diagnosis-script-tabs button.active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 700;
}
.diagnosis-sales-script-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0 14px;
}
.diagnosis-sales-script-body p {
  margin: 0;
  line-height: 1.75;
  color: #334155;
}
.diagnosis-cost-panel {
  border-left: 4px solid #64748b;
}
.diagnosis-cost-head,
.diagnosis-cost-card-head,
.diagnosis-cost-actions,
.diagnosis-cost-price,
.diagnosis-cost-breakdown {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}
.diagnosis-cost-head p {
  max-width: 920px;
  color: #475569;
}
.diagnosis-cost-params {
  margin-top: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
  background: #f8fafc;
}
.diagnosis-cost-params summary {
  cursor: pointer;
  font-weight: 700;
  color: #1e3a5f;
}
.diagnosis-cost-stale {
  display: inline-flex;
  align-items: center;
  border: 1px solid #f59e0b;
  background: #fffbeb;
  color: #92400e;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
}
.diagnosis-cost-stale.small {
  margin-bottom: 8px;
}
.diagnosis-cost-price {
  justify-content: flex-start;
  margin: 10px 0 14px;
}
.diagnosis-cost-price span,
.diagnosis-cost-breakdown span {
  border: 1px solid #d9e2ec;
  background: #fff;
  border-radius: 8px;
  padding: 8px 10px;
  color: #334155;
}
.diagnosis-cost-card {
  border: 1px solid #dbe5f3;
  border-radius: 8px;
  padding: 14px;
  margin-top: 12px;
  background: #fff;
}
.diagnosis-cost-card.stale {
  border-color: #f7c971;
}
.diagnosis-cost-card-head small {
  color: #0b62b4;
  font-weight: 700;
}
.diagnosis-cost-card-head h4 {
  margin: 4px 0 0;
}
.diagnosis-cost-hero {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
  background: #eef6ff;
  border: 1px solid #cfe4ff;
  border-radius: 8px;
  padding: 12px;
  margin: 10px 0;
}
.diagnosis-cost-hero strong {
  color: #0b62b4;
  font-size: 22px;
}
.diagnosis-cost-scenarios {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.diagnosis-cost-scenario {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px;
  display: grid;
  gap: 5px;
  background: #fff;
}
.diagnosis-cost-scenario.featured {
  border-color: #0b62b4;
  background: #f3f9ff;
}
.diagnosis-cost-scenario small {
  color: #64748b;
}
.diagnosis-cost-breakdown {
  justify-content: flex-start;
}
.diagnosis-cost-disclaimer {
  margin: 10px 0 0;
  border-top: 1px dashed #cbd5e1;
  padding-top: 10px;
  line-height: 1.6;
}
.diagnosis-cost-details {
  margin-top: 12px;
  border-top: 1px solid #eef2f7;
  padding-top: 12px;
}

.project-area-truth {
  display: grid;
  gap: 14px;
  border-color: #b9d7c8;
  background: #fbfffd;
}
.project-area-truth.warning {
  border-color: #f0b45c;
  background: #fffaf2;
}
.project-area-state,
.project-list-area-warning {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #0f766e;
  background: #e6fffa;
}
.project-area-truth.warning .project-area-state,
.project-list-area-warning {
  color: #9a3412;
  background: #ffedd5;
}
.project-area-truth-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.project-area-truth-grid article {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #d8e5df;
  border-radius: 10px;
  background: #fff;
}
.project-area-truth-grid small,
.project-area-truth-grid span {
  color: #64748b;
}
.project-area-truth-grid b {
  color: #0f3d52;
  font-size: 22px;
}
.project-area-warning-text,
.customer-area-warning {
  margin: 0;
  padding: 10px 12px;
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
  color: #92400e;
  background: #fff7ed;
  line-height: 1.6;
}
.project-area-fix-row {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}
.project-area-fix-row label {
  display: grid;
  gap: 5px;
  min-width: 230px;
}
.project-area-fix-row input {
  width: 100%;
}
@media (max-width: 900px) {
  .project-area-truth-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.diagnosis-cost-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 860px) {
  .diagnosis-flow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .diagnosis-admin-grid,
  .diagnosis-grid,
  .diagnosis-builder-row,
  .diagnosis-consultation-grid,
  .diagnosis-recommendation-columns,
  .diagnosis-package-card,
  .diagnosis-library-summary,
  .diagnosis-library-grid,
  .diagnosis-library-grid.compact,
  .quote-catalog-status-grid,
  .quote-catalog-actionable,
  .quote-catalog-issue-list,
  .quote-catalog-host-list,
  .quote-catalog-host-filters,
  .quote-catalog-model-filters,
  .quote-catalog-model-list,
  .quote-catalog-override-grid,
  .quote-catalog-model-override-form,
  .quote-catalog-detail-grid,
  .diagnosis-cost-scenarios,
  .diagnosis-cost-columns,
  .diagnosis-cost-hero {
    grid-template-columns: 1fr;
  }
  .quote-rule-model-toolbar {
    grid-template-columns: 1fr;
  }
  .panel-title-row,
  .floor-head,
  .room-title,
  .diagnosis-consultation-head,
  .diagnosis-recommendation-head,
  .diagnosis-cost-head,
  .diagnosis-cost-card-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* 20260622 diagnosis climate/comfort refinement */
.readonly-card {
  border: 1px solid #d7e2f3;
  background: #f7fbff;
  border-radius: 8px;
  padding: 10px 12px;
  display: grid;
  gap: 4px;
  color: #16345f;
}
.readonly-card.wide {
  grid-column: 1 / -1;
}
.readonly-card small {
  color: #5c6f8f;
  line-height: 1.5;
}
.climate-presentation-editor {
  border: 1px solid #bfd7f2;
  background: linear-gradient(145deg, #f8fbff, #f2f8ff);
  border-radius: 12px;
  padding: 14px;
  display: grid;
  gap: 14px;
}
.climate-presentation-head,
.climate-presentation-media {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.climate-presentation-head h4 {
  margin: 3px 0 0;
  color: #12345d;
}
.climate-presentation-head small,
.climate-presentation-media small {
  color: #607796;
}
.climate-presentation-head > span {
  border-radius: 999px;
  padding: 6px 10px;
  background: #e8eef7;
  color: #607089;
  white-space: nowrap;
}
.climate-presentation-head > span.published {
  background: #def4e9;
  color: #0d7651;
}
.climate-presentation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.climate-presentation-grid .wide {
  grid-column: 1 / -1;
}
.dealer-form-grid textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  resize: vertical;
  font: inherit;
}
.climate-presentation-media {
  align-items: flex-end;
}
.climate-presentation-media > img {
  width: min(520px, 70%);
  max-height: 260px;
  object-fit: contain;
  border: 1px solid #d7e3f2;
  border-radius: 10px;
  background: #fff;
}
.climate-presentation-media > div {
  display: grid;
  gap: 4px;
}
.climate-presentation-media .upload-button.disabled {
  opacity: .55;
  cursor: not-allowed;
}
@media (max-width: 860px) {
  .climate-presentation-grid {
    grid-template-columns: 1fr;
  }
  .climate-presentation-head,
  .climate-presentation-media {
    align-items: stretch;
    flex-direction: column;
  }
  .climate-presentation-media > img {
    width: 100%;
  }
}
.comfort-hero {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 8px 0;
}
.comfort-hero strong {
  font-size: 42px;
  color: #005da8;
  line-height: 1;
}
.comfort-hero span {
  color: #0b63ce;
  letter-spacing: 1px;
}

/* 20260630 role architecture MVP */
.role-page .platform-page-head {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 14px;
}
.role-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.role-stat-card,
.role-card,
.collab-card,
.installer-task {
  border: 1px solid #dbe5f3;
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}
.role-stat-card {
  display: grid;
  gap: 6px;
}
.role-stat-card small,
.collab-card small {
  color: #0b62b4;
  font-weight: 700;
}
.role-stat-card strong {
  font-size: 30px;
  color: #12345a;
}
.role-flow {
  margin-top: 16px;
  border: 1px solid #dbe5f3;
  border-radius: 8px;
  padding: 14px;
  background: #f8fbff;
}
.role-flow-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.role-flow-row span {
  border: 1px solid #cfe0f5;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  color: #1e3a5f;
  font-weight: 700;
  text-align: center;
}
.share-link-list {
  display: grid;
  gap: 10px;
}
.share-link-list button {
  justify-content: space-between;
  text-align: left;
}
.share-link-list small {
  color: #64748b;
  margin-left: 10px;
}
.installer-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.4fr);
  gap: 14px;
}
.installer-task {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}
.installer-task span {
  color: #0b62b4;
  font-weight: 700;
}
.installer-checklist {
  display: grid;
  gap: 12px;
  padding-left: 20px;
}
.installer-checklist li {
  padding: 10px 0;
  border-bottom: 1px solid #eef2f7;
}
.installer-task-page,
.installer-task-section {
  display: grid;
  gap: 14px;
}
.installer-task-grid,
.installer-node-grid {
  display: grid;
  gap: 12px;
}
.installer-task-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.installer-node-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.installer-task-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.installer-task-head div {
  display: grid;
  gap: 4px;
}
.installer-task-head small,
.installer-task-meta span,
.installer-node p,
.installer-node span {
  color: #526277;
}
.installer-task-head span {
  border: 1px solid #cfe0f5;
  border-radius: 999px;
  color: #174c85;
  background: #f3f8ff;
  padding: 5px 10px;
  font-weight: 700;
  white-space: nowrap;
}
.installer-task-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.installer-task-meta span,
.installer-node {
  border: 1px solid #e1e8f2;
  border-radius: 8px;
  background: #fbfdff;
  padding: 10px;
}
.installer-task-actions,
.installer-node-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.installer-node {
  display: grid;
  gap: 8px;
}
.installer-node input[type="file"] {
  max-width: 100%;
}
.installer-handoff-panel,
.installer-today-panel {
  display: grid;
  gap: 12px;
}
.installer-status-pill {
  border: 1px solid #cfe0f5;
  border-radius: 999px;
  background: #f3f8ff;
  color: #174c85;
  font-weight: 800;
  padding: 6px 12px;
}
.installer-handoff-grid,
.installer-risk-grid,
.installer-today-grid {
  display: grid;
  gap: 10px;
}
.installer-handoff-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.installer-handoff-grid span,
.installer-today-node,
.installer-risk-card {
  border: 1px solid #e1e8f2;
  border-radius: 8px;
  background: #fbfdff;
  padding: 11px;
}
.installer-warning-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.installer-warning-row span {
  border: 1px solid #f3d0a4;
  border-radius: 999px;
  background: #fff8ed;
  color: #9a5313;
  font-weight: 700;
  padding: 5px 10px;
}
.installer-progress-count {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: #526277;
}
.installer-progress-count strong {
  color: #172f4e;
  font-size: 24px;
}
.installer-today-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.installer-today-node {
  display: grid;
  gap: 6px;
}
.installer-today-node.normal,
.installer-today-node.uploaded,
.installer-today-node.done {
  border-color: #b8dfcd;
  background: #f4fbf6;
}
.installer-risk-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.installer-risk-card {
  display: grid;
  gap: 6px;
}
.installer-risk-card small {
  color: #526277;
  font-weight: 700;
}
.installer-risk-card strong {
  color: #172f4e;
  font-size: 26px;
}
.installer-risk-card.high {
  border-color: #f3b0a4;
  background: #fff5f3;
}
.installer-risk-card.medium {
  border-color: #f3d0a4;
  background: #fff8ed;
}
.upload-placeholder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px dashed #9eb8d8;
  border-radius: 8px;
  padding: 10px;
  background: #f8fbff;
}
.customer-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  border: 1px solid #dbe5f3;
  border-radius: 8px;
  padding: 18px;
  margin: 16px 0;
  background: #f5f9ff;
}
.customer-hero h3 {
  margin: 4px 0;
  font-size: 22px;
}
.customer-flow {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.collab-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.collab-card p {
  color: #334155;
  line-height: 1.6;
}
@media (max-width: 980px) {
  .role-stat-grid,
  .role-flow-row,
  .customer-flow,
  .collab-board,
  .installer-layout {
    grid-template-columns: 1fr;
  }
  .customer-hero {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* 20260701 sales home workbench */
.sales-home-page {
  display: grid;
  gap: 18px;
}
.dealer-loop-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.dealer-loop-card {
  min-height: 188px;
  border: 1px solid #d7e3f2;
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.dealer-loop-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dealer-loop-card-head span {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: #1769d5;
  font-weight: 800;
}
.dealer-loop-card-head strong {
  color: #10233f;
  font-size: 17px;
  line-height: 1.35;
}
.dealer-loop-card p {
  margin: 0;
  color: #526277;
  line-height: 1.55;
}
.dealer-loop-card button {
  justify-self: start;
  margin-top: auto;
}
.dealer-loop-card button:disabled,
.sales-home-page button:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}
.two-column-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.72fr);
  gap: 14px;
  align-items: start;
}
.stacked-panel,
.compact-list,
.project-list {
  display: grid;
  gap: 12px;
}
.highlight-card {
  border-color: #c9dff6;
  background: #f8fbff;
}
.wide {
  width: 100%;
}
.section-title-row,
.project-card-head,
.mini-row,
.info-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.project-card,
.compact-project-card,
.mini-row {
  border: 1px solid #e1e8f2;
  border-radius: 8px;
  background: #fbfdff;
  padding: 14px;
}
.project-card h4,
.mini-row strong {
  margin: 0;
  color: #10233f;
}
.project-card p,
.mini-row p {
  margin: 6px 0 0;
  color: #526277;
  line-height: 1.5;
}
.info-grid {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin: 0;
}
.info-grid div {
  min-width: 180px;
  border: 1px solid #e8eef7;
  border-radius: 8px;
  background: #fff;
  padding: 9px 10px;
}
.info-grid dt {
  color: #64748b;
  font-size: 12px;
}
.info-grid dd {
  margin: 4px 0 0;
  color: #172339;
}
.status-pill.intent-高 {
  border-color: #f8b4b4;
  background: #fff5f5;
  color: #b42323;
}
.status-pill.intent-中 {
  border-color: #f4d27a;
  background: #fffbeb;
  color: #8a5a00;
}
.status-pill.intent-低 {
  border-color: #cdd9e8;
  background: #f8fafc;
  color: #526277;
}
.quick-action-grid {
  padding: 0;
}
.quick-action-card strong {
  color: #10233f;
}
.sales-hero-panel,
.sales-flow-panel,
.today-pipeline-panel,
.quick-actions-panel,
.sales-nudge-panel {
  border: 1px solid #dbe5f3;
  border-radius: 8px;
  background: #fff;
}
.sales-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 18px;
  align-items: center;
  padding: 22px;
  background: linear-gradient(135deg, #f7fbff 0%, #ffffff 62%, #f3f8f7 100%);
}
.sales-hero-copy {
  display: grid;
  gap: 8px;
}
.sales-hero-copy small,
.sales-step-index,
.sales-nudge-card small {
  color: #0b62b4;
  font-weight: 700;
}
.sales-hero-copy h1 {
  margin: 0;
  color: #10233f;
  font-size: 34px;
  line-height: 1.15;
}
.sales-hero-copy p,
.sales-section-head p,
.sales-flow-card p,
.today-pipeline-card p,
.quick-actions-grid span,
.sales-nudge-card p {
  margin: 0;
  color: #526277;
  line-height: 1.55;
}
.sales-hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.sales-hero-actions button:first-child {
  grid-column: 1 / -1;
}
.sales-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 16px 0;
}
.sales-section-head h2 {
  margin: 0;
  color: #18324f;
  font-size: 20px;
}
.sales-priority-panel {
  border: 1px solid #dbe5f3;
  border-radius: 8px;
  background: #fff;
}
.sales-priority-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
}
.sales-priority-card {
  display: grid;
  gap: 8px;
  border: 1px solid #e1e8f2;
  border-radius: 8px;
  background: #fbfdff;
  padding: 12px;
  min-height: 126px;
}
.sales-priority-card h3 {
  margin: 3px 0 0;
  color: #172f4e;
  font-size: 17px;
}
.sales-priority-card small,
.sales-priority-card span {
  color: #64748b;
}
.sales-priority-card b {
  color: #174c85;
  line-height: 1.45;
}
.sales-priority-card.high {
  border-color: #fca5a5;
  background: #fff5f5;
}
.sales-priority-card.medium {
  border-color: #fcd34d;
  background: #fffbeb;
}
.sales-priority-empty {
  grid-column: 1 / -1;
  margin: 0;
  color: #64748b;
}
.sales-flow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}
.sales-flow-card,
.today-pipeline-card,
.quick-actions-grid button,
.sales-nudge-card {
  border: 1px solid #e1e8f2;
  border-radius: 8px;
  background: #fbfdff;
}
.sales-flow-card {
  display: grid;
  gap: 8px;
  padding: 14px;
}
.sales-flow-card h3,
.today-pipeline-card h3,
.sales-nudge-card h3 {
  margin: 0;
  color: #172f4e;
}
.sales-home-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 18px;
  align-items: start;
}
.today-pipeline-list,
.sales-nudge-list {
  display: grid;
  gap: 10px;
  padding: 16px;
}
.today-pipeline-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
}
.pipeline-status {
  border: 1px solid #cfe0f5;
  border-radius: 999px;
  padding: 5px 10px;
  color: #174c85;
  background: #f3f8ff;
  font-weight: 700;
  white-space: nowrap;
}
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}
.quick-actions-grid button {
  display: grid;
  gap: 6px;
  padding: 14px;
  text-align: left;
}
.quick-actions-grid b {
  color: #16345f;
}
.sales-nudge-card {
  display: grid;
  gap: 8px;
  padding: 14px;
}
.sales-nudge-card button {
  justify-self: start;
}
.project-center-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.project-route-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #bfd7f3;
  border-left: 4px solid #1769d5;
  border-radius: 8px;
  background: #f4f9ff;
  color: #17365f;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.project-route-notice strong {
  flex: 0 0 auto;
}
.project-route-notice span {
  color: #526277;
  line-height: 1.5;
}
.project-center-card {
  border: 1px solid #dbe5f3;
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  display: grid;
  gap: 12px;
}
.project-center-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.project-center-card-head h3 {
  margin: 4px 0 0;
  color: #172f4e;
}
.project-center-card-head small {
  color: #64748b;
}
.project-center-card-head span {
  border: 1px solid #cfe0f5;
  border-radius: 999px;
  color: #174c85;
  background: #f3f8ff;
  padding: 5px 10px;
  font-weight: 700;
  white-space: nowrap;
}
.project-center-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.project-center-meta span {
  border: 1px solid #edf2f7;
  border-radius: 8px;
  background: #fbfdff;
  color: #334155;
  padding: 8px;
}
.project-center-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.project-next-action-card,
.project-install-handoff {
  display: grid;
  gap: 12px;
  border: 1px solid #cfe0f5;
  border-left: 4px solid #1769d5;
  border-radius: 8px;
  background: #f7fbff;
  padding: 14px;
}
.project-next-action-card.high,
.project-next-action-card.medium {
  border-left-color: #0f766e;
  background: #f2fbf8;
}
.project-next-action-card small,
.project-install-handoff small {
  color: #0b62b4;
  font-weight: 800;
}
.project-next-action-card h3,
.project-install-handoff h3 {
  margin: 4px 0;
  color: #172f4e;
}
.project-next-action-card p,
.project-install-handoff p {
  margin: 0;
  color: #526277;
  line-height: 1.6;
}
.project-install-handoff {
  margin-bottom: 14px;
}
.project-install-handoff.done {
  border-left-color: #16a34a;
  background: #f4fbf6;
}
.project-contract-handoff {
  margin-top: 16px;
  margin-bottom: 0;
  padding: 20px;
  border-radius: 16px;
}
.project-contract-handoff-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}
.project-contract-handoff-state {
  flex: 0 0 auto;
  align-self: flex-start;
  padding: 7px 12px;
  border-radius: 999px;
  background: #e4f0fb;
  color: #145b92;
  font-weight: 800;
}
.project-contract-handoff.done .project-contract-handoff-state {
  background: #d9f3e5;
  color: #126543;
}
.project-contract-handoff-binding {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.project-contract-handoff-binding > div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid #d5e3ef;
  border-radius: 11px;
  background: #fff;
}
.project-contract-handoff-binding b,
.project-contract-handoff-binding span {
  overflow-wrap: anywhere;
}
.project-contract-handoff-binding span {
  color: #60798f;
}
.handoff-readiness-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border-radius: 10px;
}
.handoff-readiness-list b {
  flex-basis: 100%;
}
.handoff-readiness-list span {
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 13px;
}
.handoff-readiness-list.blocker {
  border: 1px solid #efb8b8;
  background: #fff6f6;
  color: #9f2626;
}
.handoff-readiness-list.warning {
  border: 1px solid #efd2a6;
  background: #fff9ef;
  color: #8b5517;
}
.handoff-package-sections {
  display: grid;
  gap: 12px;
}
.handoff-package-section {
  display: grid;
  gap: 9px;
  padding: 13px;
  border: 1px solid #dce6f0;
  border-radius: 12px;
  background: #fbfdff;
}
.handoff-package-section h4 {
  margin: 0;
  color: #1d466c;
}
.handoff-package-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.handoff-package-items article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 10px;
  align-items: start;
  padding: 11px;
  border: 1px solid #dfe7ef;
  border-left: 4px solid #2f8f6d;
  border-radius: 9px;
  background: #fff;
}
.handoff-package-items article > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.handoff-package-items article small,
.handoff-package-items article p {
  color: #60758a;
  overflow-wrap: anywhere;
}
.handoff-package-items article p {
  grid-column: 1 / -1;
  margin: 0;
  line-height: 1.6;
}
.handoff-package-items article > span {
  font-weight: 800;
  color: #247458;
}
.handoff-package-items .handoff-item-warning {
  border-left-color: #d99a32;
  background: #fffbf3;
}
.handoff-package-items .handoff-item-warning > span {
  color: #9a641c;
}
.handoff-package-items .handoff-item-blocker {
  border-left-color: #d84b4b;
  background: #fff7f7;
}
.handoff-package-items .handoff-item-blocker > span {
  color: #a52f2f;
}
.handoff-accept-actions {
  padding-top: 4px;
}
@media (max-width: 820px) {
  .customer-contract-next-step,
  .project-contract-handoff-head {
    flex-direction: column;
  }
  .project-contract-handoff-binding,
  .project-contract-handoff .project-center-meta,
  .handoff-package-items {
    grid-template-columns: 1fr;
  }
}
.project-quote-readiness {
  display: grid;
  gap: 12px;
  border: 1px solid #cfe0f5;
  border-left: 4px solid #8b5cf6;
  border-radius: 8px;
  background: #fbf8ff;
  padding: 14px;
  margin-bottom: 14px;
}
.project-quote-readiness.ready {
  border-left-color: #16a34a;
  background: #f4fbf6;
}
.project-quote-readiness p {
  margin: 0;
  color: #526277;
}
.quote-readiness-score {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: #526277;
}
.quote-readiness-score small {
  margin-right: 4px;
  color: #6d7e90;
  font-size: 12px;
}
.quote-readiness-score strong {
  color: #172f4e;
  font-size: 28px;
}
.project-manual-quote-form {
  display: grid;
  gap: 8px;
  border: 1px solid #e1e8f2;
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}
.project-manual-quote-form textarea {
  font-family: inherit;
  line-height: 1.5;
}
.project-config-table {
  display: grid;
  gap: 6px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #f8fbff;
  padding: 8px;
}
.project-config-head,
.project-config-row {
  display: grid;
  grid-template-columns: 0.7fr 1.2fr 0.7fr repeat(3, 1fr) auto;
  gap: 6px;
  align-items: center;
}
.project-config-head {
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}
.project-config-row input,
.project-config-row select {
  min-height: 32px;
}
.compact-actions {
  margin-top: 4px;
}
.project-quote-draft-review {
  display: flex;
  flex-direction: column;
  margin-top: 12px;
  border: 1px solid #d7e7d9;
  border-radius: 8px;
  background: #f8fdf9;
  padding: 12px;
}
.project-quote-draft-review > .project-selection-preview { order: 10; }
.project-quote-draft-review > .quote-config-book { order: 20; }
.project-quote-draft-review > .quote-line-add-form { order: 30; }
.project-quote-draft-review > .quote-template001-section { order: 40; }
.project-quote-draft-review > .quote-summary-sheet { order: 50; }
.project-quote-draft-review > .project-saved-quote-card { order: 60; }
.project-quote-draft-review > .project-center-meta { order: 70; }
.project-quote-draft-review > p.error { order: 80; }
.project-quote-section-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}
.project-quote-section-totals span {
  border: 1px solid #cfe7d4;
  border-radius: 8px;
  background: #fff;
  padding: 7px 10px;
  color: #245b35;
}
.project-selection-preview {
  display: grid;
  gap: 10px;
  border: 1px solid #cfe7d4;
  border-radius: 8px;
  background: #f7fbf8;
  padding: 12px;
  margin: 10px 0;
}
.project-selection-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.project-selection-preview-head h4 {
  margin: 0;
}
.project-selection-preview-head span,
.project-selection-grid small {
  color: #64748b;
}
.project-selection-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.project-selection-totals span {
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #fff;
  padding: 6px 9px;
  color: #245b35;
}
.project-selection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.project-selection-grid article {
  display: grid;
  gap: 4px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #fff;
  padding: 9px;
}

.quote-rule-param-panel {
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}
.quote-rule-param-panel summary {
  cursor: pointer;
}
.quote-rule-param-panel summary small {
  margin-left: 8px;
  color: #64748b;
}
.quote-rule-param-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.quote-line-add-form {
  display: grid;
  grid-template-columns: minmax(128px, 1.05fr) 64px minmax(160px, 1.5fr) 78px minmax(105px, 1fr) 64px 56px 80px minmax(130px, 1.15fr) auto;
  gap: 8px;
  align-items: center;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  margin-bottom: 10px;
}
.quote-line-add-form > * {
  min-width: 0;
}
.quote-edit-guidance {
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
  padding: 10px 12px;
  border: 1px solid #bdd6f5;
  border-radius: 10px;
  background: #f3f8ff;
  color: #173f70;
}
.quote-edit-guidance span {
  line-height: 1.55;
}
.quote-default-save-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.quote-default-save-actions button {
  white-space: nowrap;
}
.quote-brand-inheritance-map {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin: 10px 0 14px;
}
.quote-brand-inheritance-map span {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid #cbdceb;
  border-radius: 9px;
  background: #f7fbff;
}
.quote-brand-inheritance-map i {
  color: #62809e;
  font-style: normal;
  font-weight: 700;
}
.quote-brand-hierarchy {
  display: grid;
  gap: 4px;
}
.quote-brand-hierarchy small {
  color: #64748b;
  font-size: 11px;
  line-height: 1.35;
}
.quote-brand-hierarchy small.source-project_override { color: #9a4f00; }
.quote-brand-hierarchy small.source-dealer_profile { color: #0b6a50; }
.quote-brand-hierarchy small.source-manufacturer_admin { color: #6246a5; }
.quote-brand-hierarchy small.source-model_catalog { color: #165d9c; }
.quote-calculation-breakdown {
  margin: 12px 0 18px;
  padding: 12px;
  border: 1px solid #bcd7cd;
  border-radius: 10px;
  background: #f4fbf8;
}
.quote-calculation-breakdown > summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  color: #145542;
}
.quote-calculation-breakdown > summary span {
  color: #52736a;
  font-size: 13px;
}
.quote-calculation-breakdown .quote-config-table-wrap {
  margin-top: 10px;
}
.quote-calculation-breakdown table th,
.quote-calculation-breakdown table td {
  min-width: 90px;
  white-space: normal;
  vertical-align: top;
}
.quote-calculation-breakdown table th:nth-child(8),
.quote-calculation-breakdown table td:nth-child(8) {
  min-width: 320px;
}
#project-center-quote-panel .quote-template001-section .quote-detail-table .quote-line-field {
  min-height: 38px;
  border: 1px solid #99afd0;
  border-radius: 6px;
  background: #fff;
  color: #162941;
  font-weight: 600;
}
#project-center-quote-panel .quote-template001-section .quote-detail-table .quote-line-field:focus {
  border-color: #1674dc;
  box-shadow: 0 0 0 3px rgba(22, 116, 220, 0.14);
  outline: none;
}
#project-center-quote-panel .quote-template001-section .quote-detail-table .quote-line-number-field {
  text-align: center;
}
#project-center-quote-panel .quote-template001-section .quote-detail-table .quote-water-host-model-select {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding-right: 24px;
  text-overflow: ellipsis;
  font-size: 13px;
}
.quote-line-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.quote-line-head input {
  font-weight: 700;
}

.quote-line-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}
.quote-line-editor label,
.quote-line-note {
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: #64748b;
}
.quote-line-editor input,
.quote-line-note input {
  width: 100%;
}

.project-quote-line-table {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.project-quote-line-table article {
  display: grid;
  gap: 6px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}
.project-quote-line-table article div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.project-quote-line-table article div span,
.project-quote-line-table small,
.project-quote-line-table p {
  color: #475569;
}
.project-quote-line-table p {
  margin: 0;
}
.project-quote-line-table strong {
  color: #0f5132;
}
.project-quote-review-notes {
  margin-top: 10px;
}
.customer-share-page {
  min-height: 100vh;
  background: #eef4f8;
  color: #172f4e;
  padding: 24px;
}
.customer-share-shell {
  display: grid;
  gap: 16px;
  width: min(1120px, 100%);
  margin: 0 auto;
}
.customer-share-shell.embedded {
  width: 100%;
  margin: 16px 0 0;
}
.customer-share-hero,
.customer-share-section,
.customer-share-empty {
  border: 1px solid #dbe5f3;
  border-radius: 8px;
  background: #fff;
}
.customer-share-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.38fr);
  gap: 18px;
  align-items: center;
  padding: 24px;
}
.customer-share-hero small {
  color: #0b62b4;
  font-weight: 700;
}
.customer-share-hero h1 {
  margin: 8px 0;
  color: #10233f;
  font-size: 32px;
  line-height: 1.2;
}
.customer-share-hero p,
.customer-share-section p,
.customer-share-section li,
.customer-share-contact span,
.customer-share-grid span {
  color: #526277;
  line-height: 1.6;
}
.customer-share-contact {
  display: grid;
  gap: 8px;
  border: 1px solid #e1e8f2;
  border-radius: 8px;
  background: #fbfdff;
  padding: 14px;
}
.customer-share-contact b {
  color: #17365f;
}
.customer-share-section {
  display: grid;
  gap: 12px;
  padding: 18px;
}
.customer-share-section h2,
.customer-share-section h3,
.customer-share-section h4,
.customer-share-card h3 {
  margin: 0;
  color: #172f4e;
}
.customer-share-section h2 {
  font-size: 20px;
}
.customer-share-page button {
  border: 1px solid #cfe0f5;
  border-radius: 8px;
  background: #ffffff;
  color: #174c85;
  font: inherit;
  font-weight: 700;
  padding: 9px 14px;
  cursor: pointer;
}
.customer-share-page button:hover {
  border-color: #8ab8e8;
  background: #f5faff;
}
.customer-share-page button.primary {
  border-color: #0b62b4;
  background: #0b62b4;
  color: #ffffff;
}
.customer-share-page button.primary:hover {
  background: #084f91;
}
.customer-share-grid,
.customer-share-columns {
  display: grid;
  gap: 10px;
}
.customer-share-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.customer-share-grid span,
.customer-share-columns > div,
.customer-share-card {
  border: 1px solid #e1e8f2;
  border-radius: 8px;
  background: #fbfdff;
  padding: 12px;
}
.customer-share-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.customer-share-columns ul {
  margin: 8px 0 0;
  padding-left: 18px;
}
.customer-share-card {
  display: grid;
  gap: 12px;
}
.customer-share-decision {
  border-color: #c6daee;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}
.customer-share-decision-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.customer-share-decision-card {
  border: 1px solid #dbe5f3;
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
}
.customer-share-decision-card small {
  color: #0b62b4;
  font-weight: 800;
}
.customer-share-decision-card h3 {
  margin: 6px 0;
  font-size: 18px;
}
.customer-share-primary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.customer-progress-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.customer-progress-steps span {
  border: 1px solid #dbe5f3;
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
  padding: 8px 10px;
  text-align: center;
  font-weight: 700;
}
.customer-progress-steps .done {
  border-color: #b8dfcd;
  background: #edf9f3;
  color: #17633d;
}
.customer-progress-steps .active {
  border-color: #7eb9eb;
  background: #eaf5ff;
  color: #075f9d;
  box-shadow: inset 0 0 0 1px rgba(11, 98, 180, 0.08);
}
.customer-progress-steps .current {
  border-color: #b9d6f7;
  background: #f0f7ff;
  color: #0b62b4;
}
.customer-share-final-contact div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.customer-share-empty {
  width: min(760px, 100%);
  margin: 15vh auto 0;
  padding: 28px;
  color: #526277;
  text-align: center;
}
@media (max-width: 980px) {
  .sales-hero-panel,
  .dealer-loop-board,
  .two-column-layout,
  .sales-home-main-grid,
  .sales-flow-steps,
  .sales-priority-list,
  .factory-admin-hero,
  .factory-admin-deeplink,
  .factory-admin-metrics,
  .factory-admin-workspace,
  .factory-admin-todo-list,
  .factory-admin-review-list,
  .factory-admin-quick-actions,
  .quick-actions-grid,
  .project-center-grid,
  .project-center-meta,
  .project-config-head,
  .project-config-row,
  .project-selection-grid,
  .quote-rule-param-grid,
  .quote-line-add-form,
  .quote-edit-guidance,
  .project-quote-line-table,
  .quote-line-editor,
  .installer-handoff-grid,
  .installer-risk-grid,
  .installer-today-grid,
  .installer-task-grid,
  .installer-node-grid,
  .installer-task-meta,
  .customer-share-hero,
  .customer-share-grid,
  .customer-share-columns,
  .customer-share-decision-grid,
  .customer-progress-steps {
    grid-template-columns: 1fr;
  }
  .customer-share-page {
    padding: 12px;
  }
  .today-pipeline-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .today-pipeline-card button {
    width: 100%;
  }
}



.customer-share-page { padding-bottom: 104px; }
.customer-share-topline { font-size: 18px; color: #213b5d; }
.customer-share-status-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.customer-share-status-row span { border: 1px solid #cfe0f5; border-radius: 999px; color: #174c85; background: #f7fbff; padding: 6px 10px; font-weight: 700; }
.customer-share-status-row .customer-contract-status-pill.contract-sent {
  border-color: #f0c27b;
  background: #fff6e6;
  color: #8a5700;
}
.customer-share-status-row .customer-contract-status-pill.contract-signed {
  border-color: #9ed8bc;
  background: #edf9f3;
  color: #126a43;
}
.customer-share-status-row .customer-contract-status-pill.contract-stale,
.customer-share-status-row .customer-contract-status-pill.contract-void {
  border-color: #e8b3b3;
  background: #fff1f1;
  color: #963636;
}
.customer-share-privacy { border-color: #cfe0f5; background: #f7fbff; }
.customer-share-fixed-cta { position: fixed; left: 50%; bottom: 14px; z-index: 20; width: min(680px, calc(100vw - 24px)); transform: translateX(-50%); display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 8px; border: 1px solid #dbe5f3; border-radius: 8px; background: rgba(255, 255, 255, 0.96); box-shadow: 0 10px 30px rgba(15, 35, 63, 0.16); padding: 10px; }
.customer-share-fixed-cta button { min-width: 0; min-height: 42px; white-space: normal; line-height: 1.25; }
@media (max-width: 720px) {
  .customer-share-page { padding: 10px 10px 96px; }
  .customer-share-hero { padding: 18px; }
  .customer-share-hero h1 { font-size: 24px; }
  .customer-share-topline { font-size: 16px; }
  .customer-share-section { padding: 14px; }
  .customer-share-fixed-cta { bottom: 8px; width: calc(100vw - 16px); grid-template-columns: 1fr 1fr 1fr; padding: 8px; }
}


.quote-generation-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.quote-generation-flow span {
  min-height: 34px;
  border: 1px solid #d9e4f2;
  border-radius: 8px;
  background: #f8fbff;
  color: #5a6d86;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}

.quote-generation-flow span.done {
  border-color: #1b7f79;
  background: #e9f7f4;
  color: #0c5f5a;
}

.quote-generation-flow span.active {
  border-color: #1b64c8;
  box-shadow: inset 0 0 0 1px rgba(27, 100, 200, 0.18);
}

.project-quote-workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
  padding: 10px;
  border: 1px solid #d8e4ef;
  border-radius: 12px;
  background: #f7fafc;
}
.project-quote-workflow button {
  min-width: 0;
  min-height: 62px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  text-align: left;
  border-color: #cfdce7;
  background: #fff;
}
.project-quote-workflow button > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #436078;
  background: #eaf0f5;
  font-weight: 800;
}
.project-quote-workflow button > div { min-width: 0; display: grid; gap: 2px; }
.project-quote-workflow button b { overflow: hidden; color: #2f465b; text-overflow: ellipsis; white-space: nowrap; }
.project-quote-workflow button small { color: #748697; }
.project-quote-workflow button em { color: #8495a4; font-style: normal; font-size: 18px; text-align: right; }
.project-quote-workflow button.active { color: #fff; border-color: #176fd1; background: #176fd1; box-shadow: 0 6px 16px rgba(23, 111, 209, .18); }
.project-quote-workflow button.active > span { color: #176fd1; background: #fff; }
.project-quote-workflow button.active b, .project-quote-workflow button.active small, .project-quote-workflow button.active em { color: #fff; }
.project-quote-workflow button.done:not(.active) { border-color: #91cbb1; background: #f0faf5; }
.project-quote-workflow button.done:not(.active) > span { color: #14734c; background: #dff3e9; }
.project-quote-workflow button:disabled { cursor: not-allowed; opacity: .58; }
.project-quote-step-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 16px; padding: 10px 0; }
.project-quote-drawing-state { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 10px 16px; padding: 11px 12px; border: 1px solid #d4e1ec; border-radius: 10px; background: #f8fbfd; }
.project-quote-drawing-state > div { display: grid; gap: 3px; min-width: 0; }
.project-quote-drawing-state b { color: #294a65; }
.project-quote-drawing-state span { color: #617689; }
.project-quote-drawing-state em { flex: 0 0 auto; padding: 4px 8px; border-radius: 999px; color: #526b80; background: #eaf1f6; font-style: normal; font-size: 12px; }
.project-quote-drawing-state.loading { border-color: #9fc6e7; background: #f1f8fe; }
.project-quote-drawing-state.pending { border-color: #e6bd72; background: #fff9ee; }
.project-quote-drawing-state.pending em { color: #8b5a10; background: #ffedc9; }
.project-quote-drawing-state.confirmed { border-color: #8dc9ad; background: #f1faf5; }
.project-quote-drawing-state.confirmed em { color: #176b49; background: #dff3e8; }
.project-quote-drawing-state.empty { border-color: #d9e1e8; background: #fafcfd; }
.project-quote-result-actions { margin: 12px 0; padding: 12px; border: 1px solid #cfe0ef; border-radius: 10px; background: #f6fbff; }
.project-quote-step-intro { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 12px; padding: 12px 14px; border: 1px solid #cfe0ef; border-radius: 10px; background: #f6fbff; }
.project-quote-step-intro > div { display: grid; gap: 3px; }
.project-quote-step-intro b { color: #174f7d; font-size: 16px; }
.project-quote-step-intro span { color: #607487; }
.project-quote-step-intro em { flex: 0 0 auto; padding: 5px 9px; border-radius: 999px; color: #17644b; background: #e9f7f1; font-style: normal; font-weight: 700; }
.project-quote-step-intro em.pending { color: #8b5a10; background: #ffedc9; }
.project-cad-quote-import-notice { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: -2px 0 12px; padding: 12px 14px; border: 1px solid #e6bd72; border-radius: 10px; background: #fff9ee; }
.project-cad-quote-import-notice > div { display: grid; gap: 3px; min-width: 0; }
.project-cad-quote-import-notice b { color: #7a4a07; }
.project-cad-quote-import-notice span { color: #664f2f; }
.project-cad-quote-import-notice small { color: #7e6f5a; }
.project-cad-quote-import-notice button { flex: 0 0 auto; white-space: nowrap; }
.project-cad-quote-import-notice.confirmed { border-color: #8dc9ad; background: #f1faf5; }
.project-cad-quote-import-notice.confirmed b { color: #176b49; }
.project-functional-area-coverage { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 12px; padding: 13px 15px; border: 1px solid #b9d5eb; border-radius: 12px; background: #f5faff; }
.project-functional-area-coverage > div:first-child { display: grid; gap: 3px; min-width: 0; }
.project-functional-area-coverage > div:first-child b { color: #164f78; }
.project-functional-area-coverage > div:first-child span { color: #355b75; }
.project-functional-area-coverage > div:first-child small { color: #6c7f8d; line-height: 1.55; }
.project-functional-area-coverage.coverage-mixed { border-color: #d3c18e; background: #fffaf0; }
.project-functional-area-coverage.coverage-manual { border-color: #b6d7c3; background: #f4fbf6; }
.project-functional-area-coverage-metrics { display: flex; flex: 0 0 auto; gap: 8px; }
.project-functional-area-coverage-metrics span { display: grid; min-width: 84px; padding: 8px 10px; border: 1px solid rgba(32, 102, 151, .16); border-radius: 9px; background: #fff; color: #587286; font-size: 11px; text-align: center; }
.project-functional-area-coverage-metrics b { color: #0f639d; font-size: 18px; }
.project-quote-step-empty { margin: 12px 16px; }
@media (max-width: 900px) {
  .project-quote-workflow { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .project-quote-workflow { grid-template-columns: 1fr; }
  .project-quote-step-intro { align-items: flex-start; flex-direction: column; }
  .project-quote-drawing-state { align-items: flex-start; flex-direction: column; }
  .project-cad-quote-import-notice { align-items: stretch; flex-direction: column; }
  .project-cad-quote-import-notice button { width: 100%; }
  .project-functional-area-coverage { align-items: stretch; flex-direction: column; }
  .project-functional-area-coverage-metrics { display: grid; grid-template-columns: repeat(3, 1fr); }
  .project-functional-area-coverage-metrics span { min-width: 0; }
}

.customer-quote-preview,
.project-saved-quote-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  margin: 12px 0;
}

.customer-quote-total {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
}

.customer-quote-total small,
.customer-quote-total span,
.project-saved-quote-card small {
  color: var(--muted);
}

.customer-quote-total strong,
.project-saved-quote-card h3 {
  color: var(--text);
  font-size: 20px;
}

.project-saved-quote-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.project-quote-line-table.customer-facing article {
  background: #f8fbff;
}


.quote-config-book {
  display: grid;
  gap: 14px;
}
.quote-selection-completeness {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #b9dfca;
  border-radius: 16px;
  background: #f4fbf7;
}
.quote-selection-completeness.warning {
  border-color: #efb4ac;
  background: #fff7f5;
}
.quote-selection-completeness-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.quote-selection-completeness-head > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.quote-selection-completeness-head span,
.quote-selection-completeness p {
  color: #62758a;
}
.quote-selection-completeness-head strong {
  color: #16834b;
}
.quote-selection-completeness.warning .quote-selection-completeness-head strong {
  color: #b23b32;
}
.quote-selection-completeness-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.quote-selection-completeness-grid article {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  padding: 12px;
  border: 1px solid #d7e8df;
  border-radius: 12px;
  background: #fff;
}
.quote-selection-completeness-grid article b,
.quote-selection-completeness-grid article small {
  grid-column: 1 / -1;
}
.quote-selection-completeness-grid article.warning {
  border-color: #efb4ac;
}
@media (max-width: 900px) {
  .quote-selection-completeness-head { align-items: flex-start; flex-direction: column; }
  .quote-selection-completeness-grid { grid-template-columns: 1fr; }
}
.quote-config-sheet {
  display: grid;
  gap: 8px;
  border: 1px solid #ccd8e7;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}
.quote-config-sheet h4 {
  margin: 0;
  text-align: center;
  font-size: 18px;
  color: #111827;
}
.quote-config-sheet-titlebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}
.quote-config-sheet-titlebar h4 { grid-column: 2; }
.quote-config-sheet-titlebar .quote-config-sync-all {
  grid-column: 3;
  justify-self: end;
  min-width: 168px;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .quote-config-sheet-titlebar { grid-template-columns: 1fr; }
  .quote-config-sheet-titlebar h4,
  .quote-config-sheet-titlebar .quote-config-sync-all { grid-column: 1; }
  .quote-config-sheet-titlebar .quote-config-sync-all { justify-self: stretch; }
}
.quote-config-table-wrap {
  width: 100%;
  overflow-x: auto;
}
.quote-config-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: #fff;
  font-size: 13px;
}
.quote-config-table th,
.quote-config-table td {
  border: 1px solid #1f2937;
  padding: 7px 8px;
  min-width: 74px;
  text-align: center;
  vertical-align: middle;
  white-space: normal;
  line-height: 1.35;
}
.quote-config-table th {
  background: #bfbfbf;
  color: #0f172a;
  font-weight: 800;
}
.quote-config-table td:nth-child(1),
.quote-config-table td:nth-child(2),
.quote-config-table td:nth-child(3) {
  background: #fff3cc;
}
.quote-config-table .group.cooling { background: #9cc3e5; }
.quote-config-table .group.heating { background: #f4b183; }
.quote-config-table .group.air { background: #a9d18e; }
.quote-config-table .group.humidity { background: #ffe699; }
.quote-config-table .subgroup.cooling { background: #9cc3e5; }
.quote-config-table .subgroup.heating { background: #f4b183; }
.quote-config-table .subgroup.air { background: #a9d18e; }
.quote-config-table .subgroup.humidity { background: #ffe699; }
.quote-config-table .total-row td {
  background: #d9d9d9 !important;
  font-weight: 800;
}
.cooling-table td:nth-child(n+4):nth-child(-n+7),
.radiant-table td:nth-child(n+4):nth-child(-n+10),
.air-table td:nth-child(n+4):nth-child(-n+9) {
  background: #e2f0d9;
}
.cooling-table td:nth-child(10),
.air-table td:nth-child(10) {
  background: #ddebf7;
}
#project-center-quote-panel .quote-config-book .quote-config-table tbody tr:not(.total-row):not(.empty-row) td {
  background: #fff !important;
}
#project-center-quote-panel .quote-config-book .quote-config-table tbody tr:nth-child(even):not(.total-row):not(.empty-row) td {
  background: #f7f8fa !important;
}
#project-center-quote-panel .quote-config-book .quote-config-table tbody td[rowspan] {
  background: #fff !important;
}
#project-center-quote-panel .quote-config-book .quote-config-table tbody tr:not(.total-row):not(.empty-row) input,
#project-center-quote-panel .quote-config-book .quote-config-table tbody tr:not(.total-row):not(.empty-row) select,
#project-center-quote-panel .quote-config-book .quote-config-table tbody tr:not(.total-row):not(.empty-row) textarea {
  background: transparent;
}
.rule-table {
  min-width: 720px;
}
.rule-table td:nth-child(1),
.rule-table td:nth-child(2),
.rule-table td:nth-child(3),
.rule-table td:nth-child(4) {
  background: #fff;
}


.quote-config-table input,
.quote-config-table select,
.quote-config-table textarea {
  width: 100%;
  min-width: 70px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.78);
  color: inherit;
  font: inherit;
  text-align: center;
  padding: 4px 5px;
}
.quote-config-table textarea {
  min-height: 58px;
  resize: vertical;
  white-space: normal;
  overflow-wrap: anywhere;
}
.quote-config-table input:focus,
.quote-config-table select:focus,
.quote-config-table textarea:focus {
  outline: 2px solid rgba(31, 111, 235, 0.22);
  border-color: #1f6feb;
  background: #fff;
}
.quote-detail-table {
  min-width: 1380px;
}
.quote-detail-table th:nth-child(2),
.quote-detail-table td:nth-child(2),
.quote-detail-table th:nth-child(7),
.quote-detail-table td:nth-child(7) {
  min-width: 240px;
}
.quote-detail-table td:nth-child(1),
.quote-detail-table td:nth-child(2),
.quote-detail-table td:nth-child(3) {
  background: #fff;
}


.quote-template001-section {
  margin-top: 12px;
}
.quote-template-subhead td {
  background: #d9d9d9 !important;
  text-align: left;
  font-weight: 800;
  font-size: 16px;
}
.quote-detail-table th:nth-child(2),
.quote-detail-table td:nth-child(2),
.quote-detail-table th:nth-child(4),
.quote-detail-table td:nth-child(4),
.quote-detail-table th:nth-child(9),
.quote-detail-table td:nth-child(9) {
  min-width: 220px;
}
.quote-detail-table th:nth-child(10),
.quote-detail-table td:nth-child(10) {
  min-width: 92px;
}


.quote-summary-sheet {
  margin-top: 14px;
}
.quote-summary-table {
  min-width: 920px;
}
.quote-summary-table th,
.quote-summary-table td {
  height: 52px;
  font-size: 16px;
}
.quote-summary-table td:nth-child(1) {
  width: 90px;
  background: #fff !important;
  font-weight: 800;
}
.quote-summary-table td:nth-child(2) {
  min-width: 280px;
  text-align: left;
  background: #fff !important;
}
.quote-summary-table td:nth-child(3) {
  min-width: 180px;
  font-weight: 800;
}

.compact-config-form .dealer-form-grid {
  display: none;
}
.compact-project-config-table {
  overflow-x: auto;
  gap: 0;
  padding: 0;
  border-radius: 8px;
}
.quote-config-compact-head,
.quote-config-compact-row {
  display: grid;
  grid-template-columns: 120px 126px 76px 190px 96px 96px 86px 170px 104px 92px 190px 104px 92px 230px 104px 64px;
  gap: 0;
  min-width: 2030px;
  align-items: stretch;
}

.project-quote-equipment-grid .quote-config-compact-head,
.project-quote-equipment-grid .quote-config-compact-row {
  grid-template-columns: 120px 126px 76px 90px 92px 112px 130px 190px 96px 96px 340px 340px 340px 216px;
  min-width: 2364px;
}
.quote-config-compact-head span,
.quote-config-compact-row > input,
.quote-config-compact-row > select,
.quote-config-compact-row > details,
.quote-config-compact-row > .quote-equipment-choice-cell,
.quote-config-compact-row > .quote-row-batch-actions,
.quote-config-compact-row > button {
  border: 0;
  border-right: 1px solid #d7e1ee;
  border-bottom: 1px solid #d7e1ee;
  border-radius: 0;
  background: #fff;
  min-height: 42px;
}
.quote-config-compact-head span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 6px;
  background: #eef4fb;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}
.quote-config-compact-row > input,
.quote-config-compact-row > select {
  width: 100%;
  padding: 6px 7px;
  font-size: 13px;
}
.quote-config-compact-row > select[multiple] {
  min-height: 42px;
  height: 42px;
  overflow: auto;
}
.quote-config-compact-row .compact-delete {
  color: #b42318;
  background: #fff7f6;
  font-size: 12px;
}

.quote-config-compact-row > details.quote-multi-select {
  position: relative;
  padding: 0;
  font-size: 13px;
}
.quote-multi-select summary {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 22px 6px 7px;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.quote-multi-select summary::-webkit-details-marker {
  display: none;
}
.quote-multi-select summary::after {
  content: "v";
  position: absolute;
  right: 8px;
  color: #64748b;
}
.quote-multi-select[open] {
  z-index: 20;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}
.quote-multi-select[open] summary {
  border-bottom: 1px solid #d7e1ee;
}
.quote-multi-select label {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 5px 8px;
  background: #fff;
  white-space: nowrap;
}
.quote-multi-select label:hover {
  background: #f3f8ff;
}
.quote-multi-select input {
  width: auto;
  min-height: auto;
}

.quote-floor-cell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  border-right: 1px solid #d7e1ee;
  border-bottom: 1px solid #d7e1ee;
  background: #fff;
}
.quote-floor-cell select,
.quote-floor-cell input {
  border: 0;
  border-radius: 0;
  min-height: 42px;
  padding: 6px 7px;
  width: 100%;
}
.quote-floor-cell input {
  border-top: 1px solid #d7e1ee;
}
.quote-project-level-config {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 8px;
}
.quote-row-batch-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
  gap: 4px;
  padding: 5px;
}
.quote-building-fact-confirm {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 28px;
  border: 1px solid #c9d9e8;
  border-radius: 6px;
  background: #f4f8fb;
  color: #365b78;
  padding: 3px 5px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}
.quote-building-fact-confirm input {
  width: auto;
  min-height: 0;
  margin: 0;
  accent-color: #0b6ab8;
}
.quote-row-batch-actions button {
  min-height: 30px;
  padding: 4px 6px;
  font-size: 12px;
  white-space: nowrap;
}
.quote-row-batch-actions .compact-delete {
  grid-column: 1 / -1;
}
.quote-project-level-row {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}
.quote-project-level-secondary-row {
  padding-top: 4px;
  border-top: 1px dashed #d7e1ee;
}
.quote-project-level-secondary-row .quote-project-field {
  flex: 1 1 150px;
}
.quote-project-level-secondary-row .quote-project-model-field {
  flex-basis: 240px;
  min-width: 220px;
}
.quote-project-level-config label,
.quote-project-level-config .quote-project-field {
  display: grid;
  gap: 4px;
  min-width: 132px;
  font-size: 12px;
  color: #475569;
}
.quote-project-level-config select,
.quote-project-level-config details {
  min-height: 36px;
  border: 1px solid #d7e1ee;
  border-radius: 8px;
  background: #fff;
}
.quote-project-level-config .quote-multi-select summary {
  min-height: 36px;
}
.quote-project-level-config .quote-project-model-field .quote-multi-select {
  min-width: 220px;
  max-width: 360px;
}

.quote-project-field > span {
  font-size: 12px;
  color: #475569;
}

.quote-system-selector {
  min-width: 220px;
  max-width: 420px;
  border: 1px solid #d7e1ee;
  border-radius: 8px;
  background: #fff;
  padding: 0;
}
.quote-system-selector > summary {
  min-height: 40px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 700;
  color: #0f2a44;
}
.quote-system-selector-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 8px;
  padding: 10px;
  max-height: 420px;
  overflow: auto;
}
.quote-system-selector-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px;
  background: #f8fbff;
}
.quote-system-selector-card b {
  color: #12385f;
}
.quote-system-selector-card select,
.quote-system-selector-card input {
  width: 100%;
  min-height: 34px;
  border: 1px solid #d7e1ee;
  border-radius: 6px;
  padding: 5px 7px;
  background: #fff;
}
.cooling-table th:nth-child(11),
.cooling-table td:nth-child(11) {
  min-width: 130px;
}
.cooling-table th:nth-child(12),
.cooling-table td:nth-child(12) {
  min-width: 230px;
}
.cooling-table th:nth-child(15),
.cooling-table td:nth-child(15) {
  min-width: 340px;
}
.quote-terminal-type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eaf3ff;
  color: #174f91;
  font-weight: 800;
  white-space: normal;
}
.quote-terminal-quantity-editor {
  display: grid;
  grid-template-columns: minmax(56px, 1fr) auto;
  align-items: center;
  gap: 4px;
}
.quote-terminal-quantity-editor span {
  color: #52657a;
  font-weight: 700;
}
.air-table th:nth-child(8),
.air-table td:nth-child(8) {
  min-width: 250px;
}
.air-table th:nth-child(9),
.air-table td:nth-child(9) {
  min-width: 390px;
}

.quote-equipment-choice-cell {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 86px;
  min-width: 0;
}

.quote-equipment-choice-cell select {
  min-width: 0;
  border: 0;
  border-right: 1px solid #d7e1ee;
  border-radius: 0;
  padding: 6px 5px;
  background: #fff;
  font-size: 13px;
}

.quote-equipment-choice-cell select:last-child {
  border-right: 0;
}

.quote-hvac-system-apply {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.2fr) minmax(200px, 1fr) auto auto auto;
  gap: 10px;
  align-items: end;
  padding: 10px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #f8fbff;
  margin-bottom: 10px;
}

.quote-hvac-system-apply div {
  display: grid;
  gap: 2px;
}

.quote-hvac-system-apply small,
.quote-hvac-system-apply span {
  color: #64748b;
}

.quote-hvac-system-apply b {
  color: #12385f;
}

.quote-hvac-system-apply select {
  width: 100%;
  min-height: 38px;
  border: 1px solid #d7e1ee;
  border-radius: 8px;
  background: #fff;
  padding: 7px 9px;
}

.quote-hvac-system-apply .quote-air-form-picker {
  position: relative;
  min-width: 0;
  border: 1px solid #d7e1ee;
  border-radius: 8px;
  background: #fff;
}

.quote-hvac-system-apply .quote-air-form-picker[open] {
  z-index: 30;
}

.quote-hvac-system-apply .quote-air-form-picker label {
  position: relative;
  z-index: 1;
}

.quote-config-table .empty-row td {
  padding: 13px 12px;
  text-align: left;
  color: #64748b;
  background: #f8fbff;
}

/* 报价工作区屏幕适配：项目配置概览表至报价汇总表不再依赖横向滚动。 */
#project-center-quote-panel .quote-config-book .quote-config-table-wrap,
#project-center-quote-panel .quote-template001-section .quote-config-table-wrap,
#project-center-quote-panel .quote-summary-sheet .quote-config-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: visible;
}

#project-center-quote-panel .quote-config-book .quote-config-table,
#project-center-quote-panel .quote-template001-section .quote-detail-table,
#project-center-quote-panel .quote-summary-sheet .quote-summary-table {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  table-layout: fixed;
  font-size: clamp(9px, 0.68vw, 13px);
}

#project-center-quote-panel .quote-config-book .quote-config-table th,
#project-center-quote-panel .quote-config-book .quote-config-table td,
#project-center-quote-panel .quote-template001-section .quote-detail-table th,
#project-center-quote-panel .quote-template001-section .quote-detail-table td,
#project-center-quote-panel .quote-summary-sheet .quote-summary-table th,
#project-center-quote-panel .quote-summary-sheet .quote-summary-table td {
  width: auto;
  min-width: 0 !important;
  max-width: none;
  padding: 5px 3px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.28;
}

#project-center-quote-panel .quote-config-book .quote-config-table input,
#project-center-quote-panel .quote-config-book .quote-config-table select,
#project-center-quote-panel .quote-config-book .quote-config-table textarea,
#project-center-quote-panel .quote-template001-section .quote-detail-table input,
#project-center-quote-panel .quote-template001-section .quote-detail-table select,
#project-center-quote-panel .quote-template001-section .quote-detail-table textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  padding: 3px 2px;
  font-size: inherit;
}

#project-center-quote-panel .quote-config-book .quote-config-table textarea {
  min-height: 48px;
}

#project-center-quote-panel .quote-config-book .quote-table-model-picker {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  border-radius: 3px;
  background: transparent;
}

#project-center-quote-panel .quote-config-book .quote-table-model-picker > span {
  display: block;
  width: 100%;
  padding: 4px 16px 4px 3px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.25;
  text-align: center;
}

#project-center-quote-panel .quote-config-book .quote-table-model-picker > select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

#project-center-quote-panel .quote-config-book .quote-table-model-picker:focus-within {
  outline: 2px solid rgba(31, 111, 235, 0.22);
  background: #fff;
}

#project-center-quote-panel .quote-config-book .air-table td.quote-air-system-merged-cell {
  vertical-align: middle;
  text-align: center;
  padding-top: 7px;
  padding-bottom: 7px;
}

#project-center-quote-panel .quote-config-book .air-table td:nth-child(n+8):nth-child(-n+14) input,
#project-center-quote-panel .quote-config-book .air-table td:nth-child(n+8):nth-child(-n+14) select,
#project-center-quote-panel .quote-config-book .air-table td:nth-child(n+8):nth-child(-n+14) textarea,
#project-center-quote-panel .quote-config-book .air-table td:nth-child(n+8):nth-child(-n+14) button,
#project-center-quote-panel .quote-config-book .air-table td:nth-child(n+8):nth-child(-n+14) small {
  text-align: center;
}

#project-center-quote-panel .quote-config-book .quote-air-unit-type-editor {
  display: grid;
  gap: 5px;
  width: 100%;
  align-content: center;
}

#project-center-quote-panel .quote-config-book .quote-air-unit-type-select {
  display: block;
  width: 100%;
  min-height: 38px;
  padding: 5px 22px 5px 6px;
  border: 1px solid #8daac9;
  border-radius: 5px;
  background: #fff;
  color: #17324d;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

#project-center-quote-panel .quote-config-book .quote-air-unit-type-select:focus {
  border-color: #1674dc;
  box-shadow: 0 0 0 3px rgba(22, 116, 220, 0.14);
  outline: none;
}

#project-center-quote-panel .quote-config-book .quote-air-unit-type-editor small {
  color: #52677d;
  font-size: 10px;
  line-height: 1.25;
}

#project-center-quote-panel .quote-config-book .quote-air-unit-quantity-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 2px;
  overflow: hidden;
}

#project-center-quote-panel .quote-config-book .quote-air-unit-quantity-editor > input,
#project-center-quote-panel .quote-config-book .quote-air-unit-quantity-editor > button {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 3px 2px;
  font-size: 12px;
  line-height: 1.2;
}

#project-center-quote-panel .quote-config-book .quote-air-unit-quantity-editor > button {
  white-space: normal;
}

#project-center-quote-panel .quote-template001-section .quote-detail-table textarea {
  min-height: 44px;
  height: auto;
  resize: vertical;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

#project-center-quote-panel .quote-config-book .quote-multi-select summary {
  min-width: 0;
  padding: 4px 14px 4px 3px;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.2;
}

/* 项目配置概览表：名称适当放宽，其余系统形式平均收紧。 */
#project-center-quote-panel .overview th:nth-child(1),
#project-center-quote-panel .overview td:nth-child(1) { width: 6%; }
#project-center-quote-panel .overview th:nth-child(2),
#project-center-quote-panel .overview td:nth-child(2) { width: 9%; }
#project-center-quote-panel .overview th:nth-child(3),
#project-center-quote-panel .overview td:nth-child(3) { width: 5%; }

/* 供冷、地冷/地暖和空气设备表：型号列较宽，数字列较窄。 */
#project-center-quote-panel .cooling-table th:nth-child(1) { width: 5%; }
#project-center-quote-panel .cooling-table th:nth-child(2) { width: 8%; }
#project-center-quote-panel .cooling-table th:nth-child(3) { width: 5%; }
#project-center-quote-panel .cooling-table th:nth-child(4) { width: 8%; }
#project-center-quote-panel .cooling-table th:nth-child(5) { width: 6%; }
#project-center-quote-panel .cooling-table th:nth-child(6),
#project-center-quote-panel .cooling-table th:nth-child(7),
#project-center-quote-panel .cooling-table th:nth-child(8) { width: 6%; }
#project-center-quote-panel .cooling-table th:nth-child(9) { width: 7%; }
#project-center-quote-panel .cooling-table th:nth-child(10) { width: 6%; }
#project-center-quote-panel .cooling-table th:nth-child(11) { width: 11%; }
#project-center-quote-panel .cooling-table th:nth-child(12) { width: 12%; }
#project-center-quote-panel .cooling-table th:nth-child(13) { width: 5%; }
#project-center-quote-panel .cooling-table th:nth-child(14) { width: 6%; }
#project-center-quote-panel .cooling-table th:nth-child(15) { width: 10%; }

#project-center-quote-panel .radiant-table th:nth-child(1) { width: 5%; }
#project-center-quote-panel .radiant-table th:nth-child(2) { width: 8%; }
#project-center-quote-panel .radiant-table th:nth-child(3) { width: 5%; }
#project-center-quote-panel .radiant-table th:nth-child(4) { width: 8%; }
#project-center-quote-panel .radiant-table th:nth-child(5) { width: 7%; }
#project-center-quote-panel .radiant-table th:nth-child(6) { width: 10%; }
#project-center-quote-panel .radiant-table th:nth-child(7) { width: 5%; }
#project-center-quote-panel .radiant-table th:nth-child(8),
#project-center-quote-panel .radiant-table th:nth-child(9) { width: 6%; }
#project-center-quote-panel .radiant-table th:nth-child(10),
#project-center-quote-panel .radiant-table th:nth-child(11) { width: 5%; }
#project-center-quote-panel .radiant-table th:nth-child(12) { width: 6%; }
#project-center-quote-panel .radiant-table th:nth-child(13) { width: 6%; }
#project-center-quote-panel .radiant-table th:nth-child(14) { width: 10%; }

#project-center-quote-panel .air-table th:nth-child(1) { width: 5%; }
#project-center-quote-panel .air-table th:nth-child(2) { width: 8%; }
#project-center-quote-panel .air-table th:nth-child(3),
#project-center-quote-panel .air-table th:nth-child(4) { width: 6%; }
#project-center-quote-panel .air-table th:nth-child(5),
#project-center-quote-panel .air-table th:nth-child(6) { width: 7%; }
#project-center-quote-panel .air-table th:nth-child(7) { width: 5%; }
#project-center-quote-panel .air-table th:nth-child(8) { width: 10%; }
#project-center-quote-panel .air-table th:nth-child(9) { width: 13%; }
#project-center-quote-panel .air-table th:nth-child(10),
#project-center-quote-panel .air-table th:nth-child(11),
#project-center-quote-panel .air-table th:nth-child(12) { width: 6%; }
#project-center-quote-panel .air-table th:nth-child(13) { width: 4%; }
#project-center-quote-panel .air-table th:nth-child(14) { width: 7%; }

/* 报价模板001明细表：配置名称、型号和备注优先获得宽度。 */
#project-center-quote-panel .quote-detail-table th:nth-child(1) { width: 5%; }
#project-center-quote-panel .quote-detail-table th:nth-child(2) { width: 16%; }
#project-center-quote-panel .quote-detail-table th:nth-child(3) { width: 8%; }
#project-center-quote-panel .quote-detail-table th:nth-child(4) { width: 13%; }
#project-center-quote-panel .quote-detail-table th:nth-child(5) { width: 5%; }
#project-center-quote-panel .quote-detail-table th:nth-child(6) { width: 6%; }
#project-center-quote-panel .quote-detail-table th:nth-child(7) { width: 8%; }
#project-center-quote-panel .quote-detail-table th:nth-child(8) { width: 9%; }
#project-center-quote-panel .quote-detail-table th:nth-child(9) { width: 24%; }
#project-center-quote-panel .quote-detail-table th:nth-child(10) { width: 6%; }

#project-center-quote-panel .quote-summary-table th:nth-child(1) { width: 8%; }
#project-center-quote-panel .quote-summary-table th:nth-child(2) { width: 38%; }
#project-center-quote-panel .quote-summary-table th:nth-child(3) { width: 18%; }
#project-center-quote-panel .quote-summary-table th:nth-child(4) { width: 36%; }

#project-center-quote-panel .quote-summary-table th,
#project-center-quote-panel .quote-summary-table td {
  height: auto;
  min-height: 44px;
  font-size: clamp(11px, 0.82vw, 16px);
}

.hvac-graph-maintenance {
  display: grid;
  gap: 14px;
}

.hvac-graph-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  gap: 12px;
  align-items: start;
}

.hvac-graph-board {
  display: grid;
  grid-template-columns: repeat(8, minmax(170px, 1fr));
  gap: 10px;
  overflow-x: auto;
  max-height: 640px;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background-image: radial-gradient(#d8e1ee 1px, transparent 1px);
  background-size: 16px 16px;
}

.hvac-graph-column {
  min-width: 160px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

.hvac-graph-column h4 {
  margin: 0 0 4px;
  color: #17365f;
  font-size: 15px;
}

.hvac-graph-column-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.hvac-graph-column-head button {
  width: 28px;
  min-height: 28px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  text-align: center;
  font-weight: 800;
}

.hvac-graph-column button {
  width: 100%;
  min-height: 34px;
  text-align: left;
  border-color: #d8e3f0;
  background: #fff;
  color: #172339;
  white-space: normal;
  line-height: 1.35;
}

.hvac-graph-column button.active {
  border-color: #1769d5;
  background: #eef6ff;
  color: #0f4f96;
  box-shadow: inset 0 0 0 1px rgba(23, 105, 213, 0.2);
}

.hvac-system-editor {
  display: grid;
  gap: 12px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.hvac-graph-side-editor {
  position: sticky;
  top: 76px;
  max-height: calc(100vh - 96px);
  overflow: auto;
}

.hvac-node-editor,
.hvac-system-default-panel {
  display: grid;
  gap: 10px;
}

.hvac-node-editor {
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  padding: 10px;
  background: #f8fbff;
}

.hvac-node-editor h4 {
  margin: 0;
}

.hvac-node-editor label {
  display: grid;
  gap: 5px;
  color: #475569;
  font-size: 12px;
}

.hvac-node-editor input,
.hvac-node-editor select,
.hvac-node-editor textarea {
  width: 100%;
  border: 1px solid #d7e1ee;
  border-radius: 8px;
  background: #fff;
  color: #172339;
  font: inherit;
  padding: 7px 9px;
}

.hvac-system-default-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hvac-system-default-grid label {
  display: grid;
  gap: 5px;
  color: #475569;
  font-size: 12px;
}

.hvac-system-default-grid label.wide {
  grid-column: span 2;
}

.hvac-system-default-grid input,
.hvac-system-default-grid select,
.hvac-system-default-grid textarea {
  width: 100%;
  border: 1px solid #d7e1ee;
  border-radius: 8px;
  background: #fff;
  color: #172339;
  font: inherit;
  padding: 7px 9px;
}

.hvac-related-models {
  display: grid;
  gap: 8px;
}

.hvac-related-models h4 {
  margin: 0;
}

.hvac-related-models article {
  display: grid;
  gap: 3px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #f8fbff;
  padding: 9px;
  cursor: pointer;
}

.hvac-related-models article:hover {
  border-color: #9bb9e8;
}

@media (max-width: 1100px) {
  .quote-hvac-system-apply,
  .hvac-graph-workspace {
    grid-template-columns: 1fr;
  }
  .hvac-graph-side-editor {
    position: static;
    max-height: none;
  }
}

.hvac-related-models span {
  color: #64748b;
  line-height: 1.5;
}

/* WeChat customer quote sharing */
.wechat-share-dialog {
  width: min(1040px, calc(100vw - 32px));
  max-height: min(860px, calc(100vh - 32px));
}
.wechat-share-dialog .dialog-head > div {
  display: grid;
  gap: 4px;
}
.wechat-share-dialog .dialog-head small {
  color: #607087;
  line-height: 1.5;
}
.wechat-share-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.wechat-share-poster-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 18px;
  border: 1px solid #d5dfeb;
  border-radius: 14px;
  background: #f8fbff;
  text-align: center;
}
.wechat-share-poster-card > img {
  width: 318px;
  height: 424px;
  max-width: 100%;
  object-fit: contain;
  border: 8px solid #fff;
  border-radius: 10px;
  box-shadow: 0 5px 18px rgba(33, 62, 96, 0.1);
}
.wechat-share-poster-card small {
  color: #607087;
  line-height: 1.5;
}
.wechat-share-poster-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}
.wechat-share-poster-buttons button {
  min-width: 0;
}
.wechat-share-content {
  display: grid;
  gap: 14px;
}
.wechat-share-content label {
  display: grid;
  gap: 7px;
  color: #24364f;
  font-weight: 700;
}
.wechat-share-content textarea,
.wechat-share-content input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #c8d5e5;
  border-radius: 9px;
  background: #fff;
  color: #17283f;
  font: inherit;
}
.wechat-share-content textarea {
  min-height: 150px;
  padding: 12px;
  resize: vertical;
  line-height: 1.65;
}
.wechat-share-content input {
  padding: 11px 12px;
}
.wechat-share-warning {
  margin: 0 0 16px;
  padding: 11px 13px;
  border: 1px solid #f0b4a6;
  border-radius: 9px;
  background: #fff3ef;
  color: #a33622;
  line-height: 1.55;
}
.wechat-share-actions {
  flex-wrap: wrap;
}
@media (max-width: 720px) {
  .wechat-share-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }
  .wechat-share-grid {
    grid-template-columns: 1fr;
  }
  .wechat-share-poster-card > img {
    width: min(280px, 100%);
    height: auto;
    aspect-ratio: 3 / 4;
  }
  .wechat-share-actions button {
    flex: 1 1 44%;
  }
}
/* CAD drawing review: recognition remains a review draft until explicitly confirmed. */
.cad-review-panel {
  margin: 14px 0;
  border: 1px solid #b8d3ec;
  border-radius: 12px;
  background: #f7fbff;
}
.cad-review-panel > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  color: #15324d;
}
.cad-review-panel > summary small { color: #627b90; font-weight: 400; }
.cad-review-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) minmax(120px, .6fr) minmax(170px, .8fr) auto;
  gap: 10px;
  align-items: end;
  padding: 0 16px 12px;
}
.cad-review-toolbar label { display: grid; gap: 5px; min-width: 0; }
.cad-review-toolbar label > span { font-size: 12px; color: #60778b; }
.cad-batch-queue { margin: 0 16px 12px; padding: 10px; border: 1px solid #c8dbea; border-radius: 10px; background: #f7fbff; }
.cad-batch-title { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; margin-bottom: 8px; color: #214967; }
.cad-batch-title span { font-size: 12px; color: #667f93; }
.cad-batch-grid { display: grid; gap: 7px; }
.cad-batch-item { display: grid; grid-template-columns: 28px minmax(150px, 1fr) minmax(180px, .7fr) 95px auto; align-items: end; gap: 8px; padding: 8px; border: 1px solid #d7e4ee; border-radius: 8px; background: #fff; }
.cad-batch-item.uploading { border-color: #73aee3; background: #f0f8ff; }
.cad-batch-item.done { border-color: #9fd4bf; }
.cad-batch-item.failed { border-color: #efb1ae; background: #fff7f6; }
.cad-batch-index { align-self: center; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #dcecff; color: #185b9f; font-weight: 700; }
.cad-batch-item > div { display: grid; min-width: 0; }
.cad-batch-item > div b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cad-batch-item small { color: #788d9e; }
.cad-batch-item label { display: grid; gap: 3px; }
.cad-batch-item label span { font-size: 11px; color: #657c90; }
.cad-batch-item input { min-height: 34px; }
.cad-batch-item em { align-self: center; font-size: 12px; color: #6b7d8c; font-style: normal; }
.cad-batch-item em.success { color: #168255; }
.cad-batch-item em.failed { color: #bd312b; }
.cad-batch-session-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 8px 16px; padding: 9px; border-radius: 9px; background: #edf6fd; }
.cad-batch-session-tabs > b { color: #294e6b; }
.cad-batch-session-tabs button { display: grid; gap: 2px; min-width: 115px; text-align: left; }
.cad-batch-session-tabs button small { color: inherit; opacity: .75; }
.cad-batch-session-tabs button.active { color: #fff; background: #176fd1; border-color: #176fd1; }
.cad-batch-session-tabs button.confirmed:not(.active) { color: #177650; border-color: #89c9ae; background: #effaf5; }
.cad-current-batch { display: flex; justify-content: space-between; gap: 12px; margin: 10px 16px 6px; padding: 10px 12px; border: 1px solid #9bc9ec; border-radius: 10px; background: #f5fbff; }
.cad-current-batch > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cad-current-batch b { color: #174f7d; }
.cad-current-batch span { color: #526b7f; }
.cad-current-batch em { padding: 3px 7px; border-radius: 999px; color: #9a5410; background: #fff1dc; font-style: normal; font-size: 12px; }
.cad-history-batches { margin: 8px 16px 12px; border: 1px solid #d6e0e8; border-radius: 10px; background: #fafcfd; }
.cad-history-batches > summary { display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; color: #37546c; }
.cad-history-batches > summary small { color: #718496; }
.cad-history-batch-list { display: grid; gap: 7px; padding: 0 10px 10px; }
.cad-history-batch-list article { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 10px; border: 1px solid #dce5ec; border-radius: 8px; background: #fff; }
.cad-history-batch-list article.duplicate { background: #fffaf2; }
.cad-history-batch-main { min-width: 0; display: grid; gap: 2px; }
.cad-history-batch-main b { color: #314e65; font-size: 13px; }
.cad-history-batch-main span { overflow: hidden; color: #4e6374; text-overflow: ellipsis; white-space: nowrap; }
.cad-history-batch-main small { color: #7a8b99; }
.cad-history-batch-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 7px; flex: 0 0 auto; }
.cad-history-batch-actions em { color: #9a5a17; font-style: normal; font-size: 12px; }
.cad-history-expand { margin: 0 10px 10px; }
@media (max-width: 900px) {
  .cad-batch-item { grid-template-columns: 28px 1fr auto; }
  .cad-batch-item label { grid-column: 2 / -1; }
  .cad-current-batch, .cad-history-batch-list article { align-items: flex-start; flex-direction: column; }
  .cad-history-batch-actions { justify-content: flex-start; }
}
.cad-review-panel .hint,
.cad-review-panel > .loading,
.cad-review-panel > .error { margin-left: 16px; margin-right: 16px; }
.cad-review-meta,
.cad-review-warnings,
.cad-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 16px;
}
.cad-review-meta span,
.cad-review-warnings span,
.cad-review-actions > span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #e6f1fa;
  color: #36566f;
  font-size: 12px;
}
.cad-review-warnings span { background: #fff3d7; color: #8a5b00; }
.cad-annotation-workbench { margin: 10px 16px 14px; border: 1px solid #aac8e2; border-radius: 10px; background: #fff; overflow: hidden; }
.cad-annotation-workbench.fullscreen { position: fixed; inset: 8px; z-index: 10050; margin: 0; display: flex; flex-direction: column; border-radius: 8px; box-shadow: 0 18px 60px rgba(15, 35, 55, .34); }
.cad-annotation-workbench.fullscreen .cad-annotation-stage { min-height: 0; flex: 1; }
.cad-annotation-workbench.fullscreen .cad-annotation-canvas-wrap { height: auto; min-height: 0; flex: 1; }
.cad-annotation-fullscreen-open { overflow: hidden; }
.cad-annotation-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; background: #eaf4fd; }
.cad-annotation-head > div:first-child { display: grid; gap: 5px; min-width: 0; width: 100%; }
.cad-annotation-head small { color: #60778b; }
.cad-batch-session-tabs-inline { flex-wrap: nowrap; gap: 5px; min-width: 0; margin: 0; padding: 0; overflow-x: auto; border-radius: 0; background: transparent; }
.cad-batch-session-tabs-inline > strong { flex: 0 0 auto; color: #526b80; font-size: 12px; }
.cad-batch-session-tabs-inline button { min-width: auto; display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; padding: 4px 7px; font-size: 11px; text-align: center; }
.cad-batch-session-tabs-inline button small { font-size: 10px; }
.cad-batch-session-tabs-inline .cad-floor-view-empty { flex: 0 0 auto; color: #718497; font-size: 10px; }
.cad-floor-view-chip { display: inline-flex; flex: 0 0 auto; align-items: stretch; border: 1px solid #a9c9e4; border-radius: 7px; overflow: hidden; background: #fff; }
.cad-batch-session-tabs-inline .cad-floor-view-chip button { border: 0; border-radius: 0; }
.cad-batch-session-tabs-inline .cad-floor-view-chip .cad-floor-view-main { border-right: 1px solid #d2e0eb; }
.cad-batch-session-tabs-inline .cad-floor-view-chip .cad-floor-view-main.active { color: #fff; background: #176fd1; }
.cad-batch-session-tabs-inline .cad-floor-view-chip .cad-floor-view-edit,
.cad-batch-session-tabs-inline .cad-floor-view-chip .cad-floor-view-remove { min-width: 30px; padding: 4px 5px; color: #5b7082; font-size: 10px; background: #f8fbfd; }
.cad-batch-session-tabs-inline .cad-floor-view-chip .cad-floor-view-remove { color: #a62e27; font-size: 15px; }
.cad-floor-view-dialog-mask { position: fixed; inset: 0; z-index: 12080; display: grid; place-items: center; padding: 18px; background: rgba(15, 32, 48, .48); }
.cad-floor-view-dialog { width: min(460px, 100%); display: grid; gap: 14px; padding: 20px; border: 1px solid #b8cee1; border-radius: 14px; background: #fff; box-shadow: 0 22px 70px rgba(15, 35, 55, .28); }
.cad-floor-view-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.cad-floor-view-dialog-head h3 { margin: 0 0 5px; color: #173957; font-size: 20px; }
.cad-floor-view-dialog-head p { margin: 0; color: #6a7f92; font-size: 12px; line-height: 1.45; }
.cad-floor-view-dialog-head > button { min-width: 34px; padding: 4px 8px; color: #6b7d8d; font-size: 20px; background: #fff; }
.cad-floor-view-dialog label { display: grid; gap: 6px; color: #314f68; font-size: 13px; font-weight: 700; }
.cad-floor-view-dialog input { min-height: 42px; font-size: 16px; }
.cad-floor-view-dialog > small { color: #6b7f91; line-height: 1.5; }
.cad-floor-view-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
.cad-floor-view-dialog-actions button { min-width: 92px; }
.cad-annotation-mode-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.cad-annotation-mode-buttons button.active { color: #fff; background: #176fd1; border-color: #176fd1; }
.cad-annotation-settings { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; padding: 9px 12px; border-bottom: 1px solid #d4e2ee; }
.cad-annotation-settings label { display: grid; gap: 4px; min-width: 150px; font-size: 12px; color: #526b80; }
.cad-annotation-settings input, .cad-annotation-settings select { min-height: 36px; }
.cad-annotation-settings > span { padding: 7px 9px; border-radius: 7px; background: #eef6ff; color: #36566f; font-size: 12px; }
.cad-annotation-settings .warning-text { background: #fff1d6; color: #8a5b00; }
.cad-annotation-command-row { width: 100%; min-width: 0; box-sizing: border-box; flex-wrap: wrap; align-items: end; gap: 6px; padding: 8px 10px; overflow-x: visible; }
.cad-annotation-command-row > label { min-width: 96px; flex: 0 0 100px; gap: 2px; }
.cad-annotation-command-row > label:first-child { flex-basis: 120px; }
.cad-annotation-command-row input,
.cad-annotation-command-row select { min-height: 32px; padding: 5px 7px; }
.cad-annotation-command-row > span { flex: 0 0 auto; padding: 6px 7px; white-space: nowrap; }
.cad-raster-display-controls { display: flex; min-width: 0; max-width: 100%; flex: 1 1 420px; flex-wrap: wrap; align-items: center; gap: 6px; padding: 5px 7px; border: 1px solid #bdd3e5; border-radius: 9px; background: #f8fbfe; }
.cad-raster-display-controls button { min-height: 31px; padding: 5px 9px; white-space: nowrap; }
.cad-raster-display-controls span { min-width: 48px; color: #36566f; font-size: 12px; font-weight: 800; text-align: center; }
.cad-annotation-view-controls { flex: 0 0 auto; }
.cad-annotation-view-controls small { color: #6b7f91; font-size: 10px; white-space: nowrap; }
.cad-annotation-view-controls button:disabled { opacity: .45; cursor: not-allowed; }
.cad-raster-display-controls .confirm-view { color: #fff; border-color: #f05b23; background: #f05b23; }
.cad-raster-display-controls .confirm-view.ready { color: #116149; border-color: #9ed5c2; background: #e9f8f2; }
.cad-annotation-inline-tools { display: flex; min-width: 0; max-width: 100%; flex: 1 1 640px; flex-wrap: wrap; align-items: center; gap: 5px; padding: 0; border: 0; overflow: visible; }
.cad-annotation-inline-tools button,
.cad-annotation-inline-save button { flex: 0 0 auto; min-height: 32px; padding: 5px 7px; font-size: 11px; white-space: nowrap; }
.cad-annotation-inline-tools button.active { color: #fff; border-color: #176fd1; background: #176fd1; }
.cad-annotation-inline-tools button.danger { color: #b42318; border-color: #f0aaa3; background: #fff7f6; }
.cad-annotation-inline-save { display: flex; max-width: 100%; flex: 0 1 auto; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 5px; margin-left: auto; padding: 0; border: 0; }
.cad-annotation-inline-save button.primary { color: #fff; border-color: #176fd1; background: #176fd1; }
@media (max-width: 900px) {
  .cad-annotation-command-row { flex-wrap: wrap; overflow-x: visible; }
  .cad-raster-display-controls,
  .cad-annotation-inline-tools { flex-basis: 100%; }
  .cad-annotation-inline-save { width: 100%; justify-content: flex-end; }
}

.cad-ai-layer-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding: 8px 12px; border-bottom: 1px solid #d4e2ee; background: #f8fbfe; }
.cad-ai-layer-toolbar strong { color: #314f68; font-size: 12px; }
.cad-ai-layer-toolbar button { padding: 5px 9px; border-color: #becfdd; background: #fff; color: #526b80; font-size: 12px; }
.cad-ai-layer-toolbar button.active { border-color: #176fd1; background: #e8f2ff; color: #145ea8; box-shadow: inset 0 0 0 1px rgba(23,111,209,.14); }
.cad-ai-layer-toolbar > span { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-left: auto; color: #60778b; font-size: 11px; }
.cad-ai-layer-toolbar i { width: 12px; height: 4px; border-radius: 3px; display: inline-block; }
.cad-ai-layer-toolbar i.ai { background: #8b5cf6; }
.cad-ai-layer-toolbar i.geometry { background: #f08c00; }
.cad-ai-layer-toolbar i.manual { background: #0f9f79; }
.cad-annotation-regions polygon.ai-candidate { fill: #8b5cf6 !important; stroke: #8b5cf6 !important; fill-opacity: .12; stroke-dasharray: 10 7; }
.cad-annotation-regions polygon.geometry-candidate { fill: #f08c00 !important; stroke: #f08c00 !important; fill-opacity: .09; stroke-dasharray: 6 6; }
.cad-annotation-regions polygon.manual-region { fill: #0f9f79 !important; stroke: #0f9f79 !important; fill-opacity: .12; }
.cad-annotation-regions polygon.human-corrected { fill: #176fd1 !important; stroke: #176fd1 !important; fill-opacity: .15; }
.cad-annotation-regions text.layer-ai_candidate { fill: #6d32c9; }
.cad-annotation-regions text.layer-geometry_candidate { fill: #a95600; }
.cad-annotation-regions text.layer-manual, .cad-annotation-regions text.layer-human_corrected { fill: #075e4a; }
.cad-ai-not-run { display: block; color: #7b8d9c; line-height: 1.3; }
.cad-ai-prediction { margin-top: 4px; color: #6d32c9; font-size: 11px; line-height: 1.3; }

.cad-annotation-stage { display: flex; min-height: 720px; background: #dce6ee; }
.cad-annotation-sidebar { width: 252px; flex: 0 0 252px; display: flex; flex-direction: column; max-height: min(100vh, 1080px); overflow: hidden; border-right: 1px solid #bfd0df; background: #f4f8fb; }
.cad-sidebar-scroll { min-height: 0; padding: 10px; overflow-y: auto; }
.cad-sidebar-section { display: grid; gap: 7px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid #d6e2ec; }
.cad-sidebar-section > b { color: #20394f; font-size: 13px; }
.cad-sidebar-toggle-grid,
.cad-sidebar-tool-grid,
.cad-sidebar-edit-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.cad-sidebar-toggle-grid button,
.cad-sidebar-tool-grid button,
.cad-sidebar-edit-actions button { min-width: 0; padding: 7px 5px; font-size: 12px; }
.cad-sidebar-toggle-grid button.active,
.cad-sidebar-tool-grid button.active { color: #fff; border-color: #176fd1; background: #176fd1; }
.cad-sidebar-edit-actions .danger { grid-column: 1 / -1; color: #b42318; border-color: #f0aaa3; background: #fff7f6; }
.cad-sidebar-footer { display: grid; gap: 7px; margin-top: auto; padding: 10px; border-top: 1px solid #bfd0df; background: #fff; box-shadow: 0 -8px 18px rgba(31, 67, 96, .07); }
.cad-sidebar-footer small { min-height: 32px; color: #60778b; line-height: 1.35; }
.cad-service-zone-room,
.cad-service-zone-list button { width: 100%; display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 7px; padding: 7px 8px; text-align: left; border-color: #c8d7e3; background: #fff; }
.cad-service-zone-room i,
.cad-service-zone-list i { width: 10px; height: 10px; border-radius: 3px; background: #0f9f79; }
.cad-service-zone-room small,
.cad-service-zone-list small { color: #718596; font-size: 10px; }
.cad-service-zone-list { display: grid; gap: 5px; }
.cad-service-zone-room.active,
.cad-service-zone-list button.active { border-color: #176fd1; background: #e9f3ff; box-shadow: inset 3px 0 0 #176fd1; }
.cad-service-zone-copy { width: 100%; color: #145ea8; background: #eef6ff; }
.cad-room-layer-note { margin: -2px 0 0; color: #567087; font-size: 10px; line-height: 1.45; }
.cad-service-zone-subtitle { display: flex; align-items: center; justify-content: space-between; margin-top: 3px; color: #314f68; }
.cad-service-zone-subtitle small { color: #8a6a2f; font-size: 10px; font-weight: 500; }
.cad-equipment-sidebar-section > b { display: flex; justify-content: space-between; align-items: center; }
.cad-equipment-sidebar-section > b small { color: #60778b; font-weight: 500; }
.cad-equipment-sidebar-section > p { margin: 0; color: #718596; font-size: 11px; }
.cad-equipment-palette { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.cad-equipment-palette button { min-width: 0; display: grid; grid-template-columns: 32px 1fr; align-items: center; gap: 5px; padding: 6px; text-align: left; font-size: 11px; cursor: grab; }
.cad-equipment-palette button:active { cursor: grabbing; }
.cad-equipment-palette button.active { color: #145ea8; border-color: #176fd1; background: #e9f3ff; }
.cad-equipment-palette-icon { width: 31px; height: 23px; display: block; overflow: visible; }
.cad-equipment-palette-icon .equipment-body { fill: #fff1e8; stroke: #f04b23; stroke-width: 3; vector-effect: non-scaling-stroke; }
.cad-equipment-palette-icon path,
.cad-equipment-palette-icon line,
.cad-equipment-palette-icon circle:not(.equipment-body),
.cad-equipment-palette-icon rect:not(.equipment-body) { fill: none; stroke: #f04b23; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.cad-equipment-selected-editor { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px; border: 1px solid #a9c7df; border-radius: 7px; background: #fff; }
.cad-equipment-selected-editor > strong { grid-column: 1 / -1; color: #183b56; font-size: 12px; }
.cad-equipment-selected-editor label { display: grid; gap: 3px; color: #60778b; font-size: 10px; }
.cad-equipment-selected-editor label:nth-of-type(3) { grid-column: 1 / -1; }
.cad-equipment-selected-editor input { width: 100%; min-width: 0; padding: 5px; }
.cad-equipment-selected-editor > div { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.cad-equipment-selected-editor button { min-width: 0; padding: 5px; font-size: 11px; }
.cad-equipment-selected-editor button.danger { color: #b42318; border-color: #f0aaa3; background: #fff7f6; }
.cad-customer-visualization-publish { border-color: #b8ddca; background: #f3fbf7; }
.cad-customer-visualization-publish > p { margin: 0; color: #60778b; font-size: 11px; line-height: 1.5; }
.cad-customer-visualization-publish > small { color: #157a56; font-weight: 700; }
.cad-customer-visualization-publish > button { width: 100%; }
.cad-customer-visualization-publish > button.primary { color: #fff; border-color: #157a56; background: #157a56; }
.cad-drawing-section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.cad-drawing-bulk-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 5px; }
.cad-drawing-bulk-actions label { display: inline-flex; align-items: center; gap: 3px; color: #49677e; font-size: 11px; }
.cad-drawing-bulk-actions input { width: 14px; height: 14px; margin: 0; }
.cad-drawing-section-head .cad-drawing-bulk-delete { width: auto; padding: 4px 7px; color: #a62e27; border-color: #efb2ac; font-size: 11px; background: #fff7f6; }
.cad-drawing-section-head .cad-drawing-trash-toggle { width: auto; padding: 4px 8px; color: #49677e; font-size: 11px; background: #fff; }
.cad-drawing-section-head .cad-drawing-trash-toggle.active { color: #8d4f00; border-color: #e9b86c; background: #fff7e8; }
.cad-drawing-view-list { max-height: 250px; padding: 3px; overflow-y: auto; background: #edf4f9; border: 1px solid #bfd0df; border-radius: 7px; }
.cad-drawing-view-card { position: relative; margin-bottom: 8px; border: 1px solid #b7cad9; border-radius: 8px; background: #fff; overflow: hidden; }
.cad-drawing-view-card.active { border-color: #176fd1; box-shadow: 0 0 0 2px rgba(23, 111, 209, .16); }
.cad-drawing-view-card.selected { border-color: #d28a21; box-shadow: 0 0 0 2px rgba(210, 138, 33, .16); }
.cad-drawing-view-card .cad-drawing-view-main { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 3px 6px; padding: 6px; text-align: left; background: #fff; border: 0; border-radius: 0; }
.cad-drawing-view-card .cad-drawing-view-check { position: absolute; top: 7px; left: 7px; z-index: 3; display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid #b9c9d6; border-radius: 5px; background: rgba(255,255,255,.96); }
.cad-drawing-view-card .cad-drawing-view-check input { width: 15px; height: 15px; margin: 0; }
.cad-drawing-view-card .cad-drawing-view-remove { position: absolute; top: 5px; right: 5px; z-index: 2; width: 24px; min-width: 24px; height: 24px; padding: 0; color: #b42318; font-size: 19px; line-height: 20px; border-color: #efb2ac; border-radius: 50%; background: rgba(255,255,255,.96); }
.cad-drawing-view-card .cad-drawing-view-remove:disabled { color: #98a6b2; border-color: #d5dee5; opacity: .72; }
.cad-drawing-view-list canvas { grid-column: 1 / -1; width: 100%; height: 82px; display: block; background: #fff; border-radius: 4px; }
.cad-drawing-view-list span { color: #183b56; font-weight: 700; }
.cad-drawing-view-list small { color: #6d8191; }
.cad-drawing-view-actions { padding: 0 6px 6px; }
.cad-drawing-view-actions button { width: 100%; padding: 5px 7px; color: #245f90; border-color: #b7d2e8; font-size: 11px; background: #f3f9fe; }
.cad-drawing-view-actions button.promoted { color: #157a56; border-color: #9fcfb9; background: #effaf5; }
.cad-raster-page-placeholder { grid-column: 1 / -1; min-height: 76px; display: grid; place-content: center; gap: 4px; text-align: center; color: #26699f; border-radius: 5px; background: linear-gradient(145deg, #f8fbfe, #e5f1fa); }
.cad-raster-page-placeholder b { font-size: 14px; }
.cad-drawing-trash-panel { display: grid; gap: 7px; margin-top: 7px; padding: 8px; color: #5f7180; font-size: 11px; border: 1px dashed #e3ad62; border-radius: 7px; background: #fffaf0; }
.cad-drawing-trash-panel p { margin: 0; line-height: 1.5; }
.cad-drawing-trash-panel > div { display: grid; gap: 5px; }
.cad-drawing-trash-panel article { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 5px 6px; border-radius: 5px; background: #fff; }
.cad-drawing-trash-panel article span { color: #294a62; font-weight: 700; }
.cad-drawing-trash-panel article button { width: auto; padding: 3px 7px; color: #17633e; border-color: #9cccb5; background: #f4fbf7; }
.cad-annotation-canvas-wrap { position: relative; height: min(100vh, 1080px); min-height: 720px; flex: 1; min-width: 0; background: #fff; overflow: hidden; touch-action: none; }
.cad-plan-compass { position: absolute; top: 14px; right: 14px; z-index: 5; width: 96px; height: 96px; padding: 0; border: 2px solid #6c91ad; border-radius: 50%; color: #244b67; background: rgba(255,255,255,.94); box-shadow: 0 7px 18px rgba(34,73,103,.18); }
.cad-plan-compass:hover { border-color: #176fd1; background: #fff; }
.cad-plan-compass.confirmed { border-color: #16805c; box-shadow: 0 0 0 4px rgba(22,128,92,.12), 0 7px 18px rgba(34,73,103,.18); }
.cad-plan-compass > span { position: absolute; font-size: 12px; font-weight: 900; line-height: 1; }
.cad-plan-compass .north { top: 7px; left: 50%; transform: translateX(-50%); }
.cad-plan-compass .east { top: 50%; right: 7px; transform: translateY(-50%); }
.cad-plan-compass .south { bottom: 7px; left: 50%; transform: translateX(-50%); }
.cad-plan-compass .west { top: 50%; left: 7px; transform: translateY(-50%); }
.cad-plan-compass > i { position: absolute; top: 23px; left: 50%; transform: translateX(-50%); color: #176fd1; font-size: 31px; font-style: normal; line-height: 1; }
.cad-plan-compass > small { position: absolute; left: 50%; bottom: 25px; transform: translateX(-50%); width: max-content; color: #567189; font-size: 9px; font-weight: 700; }
.cad-annotation-vector-canvas { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; display: block; background: #fff; pointer-events: none; }
.cad-annotation-canvas { position: relative; z-index: 2; width: 100%; height: 100%; display: block; background: transparent; user-select: none; }
.cad-annotation-canvas > image { filter: contrast(1.35) saturate(.92); pointer-events: none; user-select: none; }
.cad-annotation-canvas.mode-draw { cursor: crosshair; }
.cad-annotation-canvas.mode-pan { cursor: grab; }
.cad-annotation-canvas.mode-pan:active { cursor: grabbing; }
.cad-annotation-regions polygon { fill-opacity: .10; stroke-width: 3; vector-effect: non-scaling-stroke; cursor: pointer; }
.cad-annotation-regions polygon.selected { fill-opacity: .22; stroke-width: 6; }
.cad-annotation-regions text { font-size: 16px; font-weight: 700; fill: #102a43; paint-order: stroke; stroke: #fff; stroke-width: 4px; pointer-events: none; }
.cad-service-zone-regions polygon { fill-opacity: .22; stroke-width: 4; vector-effect: non-scaling-stroke; cursor: pointer; }
.cad-service-zone-regions polygon.selected { fill-opacity: .34; stroke-width: 7; }
.cad-service-zone-regions text { font-size: 16px; font-weight: 800; fill: #183b56; paint-order: stroke; stroke: #fff; stroke-width: 5px; pointer-events: none; }
.cad-service-zone-regions text.cad-service-zone-name-label { pointer-events: auto; cursor: text; }
.cad-service-zone-inline-editor { overflow: visible; }
.cad-service-zone-inline-editor > div { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.cad-service-zone-inline-editor input { box-sizing: border-box; width: 100%; height: 100%; min-width: 0; padding: 0 .45em; border: 2px solid #1677ff; border-radius: .35em; background: rgba(255,255,255,.98); color: #123b63; font-weight: 900; text-align: center; outline: none; box-shadow: 0 0 0 3px rgba(22,119,255,.18); }
.cad-annotation-canvas.mode-equipment { cursor: crosshair; }
.cad-annotation-canvas.mode-equipment .cad-annotation-regions polygon,
.cad-annotation-canvas.mode-equipment .cad-service-zone-regions polygon { pointer-events: none; }
.cad-equipment-annotations > g { cursor: move; }
.cad-equipment-annotations .equipment-body { fill: rgba(255, 241, 232, .94); stroke: #f04b23; stroke-width: 1.75; vector-effect: non-scaling-stroke; }
.cad-equipment-annotations line,
.cad-equipment-annotations path,
.cad-equipment-annotations circle,
.cad-equipment-annotations rect:not(.equipment-body) { fill: none; stroke: #f04b23; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.cad-equipment-annotations path { stroke-linecap: round; stroke-linejoin: round; }
.cad-equipment-annotations > g.selected .equipment-body { fill: rgba(255, 239, 199, .94); stroke: #f08c00; stroke-width: 2.5; }
.cad-equipment-annotations > g.selected line,
.cad-equipment-annotations > g.selected path,
.cad-equipment-annotations > g.selected circle,
.cad-equipment-annotations > g.selected rect:not(.equipment-body) { stroke: #c66a00; }
.cad-equipment-annotations > g.confirmed .equipment-body { fill: rgba(232, 248, 240, .95); stroke: #16865f; }
.cad-equipment-annotations text { fill: #a92f14; font-size: 9px; font-weight: 900; paint-order: stroke; stroke: #fff; stroke-width: 2px; pointer-events: none; }

.customer-cad-drawing-tabs,
.customer-cad-layer-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.customer-cad-drawing-tabs button.active { color: #fff; border-color: #176fd1; background: #176fd1; }
.customer-cad-layer-tabs button { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; }
.customer-cad-layer-tabs button i { width: 11px; height: 11px; border-radius: 3px; background: var(--cad-layer-color, #0f9f79); }
.customer-cad-layer-tabs button.active { color: #12395e; border-color: var(--cad-layer-color, #176fd1); background: color-mix(in srgb, var(--cad-layer-color, #176fd1) 12%, white); box-shadow: inset 0 -3px 0 var(--cad-layer-color, #176fd1); }
.customer-cad-layer-tabs .equipment-toggle i { border: 2px solid #245f82; border-radius: 50%; background: #fff; }
.customer-cad-layer-tabs .equipment-toggle.active { border-color: #245f82; background: #eef7fb; box-shadow: inset 0 -3px 0 #245f82; }
.customer-cad-canvas { overflow: hidden; border: 1px solid #cddbe8; border-radius: 12px; background: #f4f7fa; }
.customer-cad-canvas svg { display: block; width: 100%; max-height: min(72vh, 760px); background: #fff; }
.customer-cad-zone-layer polygon { fill: var(--cad-layer-color, #0f9f79); fill-opacity: .2; stroke: var(--cad-layer-color, #0f9f79); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.customer-cad-zone-layer text,
.customer-cad-zone-label-layer text { fill: #a92f14; font-size: 5.5px; font-weight: 900; text-anchor: middle; paint-order: stroke; stroke: #fff; stroke-width: 1.2px; stroke-linejoin: round; }
.customer-cad-equipment-layer > g > text,
.customer-floor-layer-equipment > g > text { fill: #a92f14; font-size: 11px; font-weight: 900; text-anchor: middle; paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }
.customer-cad-equipment-layer g g .equipment-body { fill: rgba(255, 241, 232, .96); stroke: #f04b23; stroke-width: 2; vector-effect: non-scaling-stroke; }
.customer-cad-equipment-layer g g circle:not(.equipment-body),
.customer-cad-equipment-layer g g rect:not(.equipment-body),
.customer-cad-equipment-layer g g line,
.customer-cad-equipment-layer g g path { fill: none; stroke: #f04b23; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.cad-annotation-draft { fill: rgba(255, 145, 0, .12); stroke: #ff8a00; stroke-width: 4; vector-effect: non-scaling-stroke; }
.cad-annotation-draft-label { font-size: 17px; font-weight: 800; fill: #c65d00; paint-order: stroke; stroke: #fff; stroke-width: 5px; pointer-events: none; }
.cad-annotation-point { fill: #fff; stroke: #ff8a00; stroke-width: 3; vector-effect: non-scaling-stroke; }
.cad-annotation-calibration { fill: none; stroke: #e5484d; stroke-width: 4; stroke-dasharray: 8 6; vector-effect: non-scaling-stroke; }
.cad-annotation-calibration-point { fill: #fff; stroke: #e5484d; stroke-width: 3; vector-effect: non-scaling-stroke; }
.cad-annotation-vertex-handles circle { fill: #fff; stroke: #176fd1; stroke-width: 3; vector-effect: non-scaling-stroke; cursor: move; }
.cad-annotation-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; }
.cad-annotation-actions > span { color: #526b80; font-size: 12px; }
.cad-region-row-selected td { background: #eaf4ff !important; }
.cad-learning-summary { margin: 0 16px 12px; padding: 9px 11px; border: 1px dashed #9db9cf; border-radius: 8px; background: #f8fcff; }
.cad-learning-summary > div { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.cad-learning-summary span { padding: 5px 8px; border-radius: 999px; background: #e7f2fb; color: #36566f; font-size: 12px; }
.cad-learning-summary ul { margin: 8px 0 0 20px; color: #36566f; }
.cad-review-table-wrap { overflow-x: auto; padding: 0 16px 10px; }
.cad-review-table { width: 100%; min-width: 940px; border-collapse: collapse; table-layout: fixed; }
.cad-review-table th,
.cad-review-table td { border: 1px solid #bfd0df; padding: 6px; text-align: center; vertical-align: middle; }
.cad-review-table th { background: #d9e7f3; color: #20394f; }
.cad-review-table th:nth-child(1) { width: 6%; }
.cad-review-table th:nth-child(2) { width: 10%; }
.cad-review-table th:nth-child(3) { width: 16%; }
.cad-review-table th:nth-child(4) { width: 13%; }
.cad-review-table th:nth-child(5) { width: 15%; }
.cad-review-table th:nth-child(6) { width: 13%; }
.cad-review-table th:nth-child(7) { width: 27%; }
.cad-review-table input,
.cad-review-table select { width: 100%; min-width: 0; }
.cad-area-order-cell > span { display: block; margin-bottom: 5px; color: #526b80; font-weight: 800; }
.cad-area-order-cell > div { display: flex; justify-content: center; gap: 3px; }
.cad-area-order-cell button { min-width: 28px; min-height: 28px; padding: 2px 5px; font-size: 15px; }
.cad-ai-suggestion { display: grid; gap: 4px; margin-top: 6px; padding: 7px; border: 1px solid #9ec5f3; border-radius: 7px; background: #eef6ff; text-align: left; overflow-wrap: anywhere; }
.cad-ai-suggestion b { color: #145ea8; font-size: 12px; }
.cad-ai-suggestion small { color: #526b80; line-height: 1.35; }
.cad-ai-suggestion button { justify-self: start; padding: 3px 8px; font-size: 12px; }
.cad-confidence { display: inline-flex; padding: 4px 8px; border-radius: 999px; font-weight: 700; }
.cad-confidence.ok { color: #146c3d; background: #ddf5e8; }
.cad-confidence.low { color: #a33b2b; background: #ffe6e1; }
.cad-layer-audit { margin: 0 16px 14px; padding: 10px; border: 1px dashed #b9cbd9; border-radius: 8px; }
.cad-layer-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 6px; margin-top: 8px; }
.cad-layer-list span { display: grid; gap: 2px; padding: 8px; background: white; border-radius: 6px; font-size: 12px; }
@media (max-width: 900px) {
  .cad-review-toolbar { grid-template-columns: 1fr 1fr; }
  .cad-review-toolbar .primary { min-height: 42px; }
  .cad-annotation-head { align-items: flex-start; flex-direction: column; }
  .cad-annotation-canvas-wrap { min-height: 360px; height: 56vh; }
}
@media (max-width: 900px) {
  .cad-annotation-stage { display: block; }
  .cad-annotation-sidebar { width: auto; max-height: none; border-right: 0; border-bottom: 1px solid #bfd0df; }
  .cad-sidebar-scroll { max-height: 45vh; }
  .cad-drawing-view-list { width: auto; display: flex; gap: 8px; overflow-x: auto; }
  .cad-drawing-view-list button { min-width: 150px; margin-bottom: 0; }
}

.cad-draft-metrics { display: inline-grid; gap: 2px; padding: 6px 9px; border-radius: 7px; background: #fff1d6; color: #7a4c00; font-size: 13px; }
.cad-draft-metrics small { font-weight: 400; color: #8a6422; }
.cad-area-review-cell { display: grid; gap: 5px; min-width: 112px; text-align: left; }
.cad-area-review-cell > small { color: #526b80; }
.cad-area-review-cell label { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 5px; color: #20394f; font-size: 12px; }
.cad-area-review-cell input { min-width: 0; width: 100%; }
.cad-area-review-cell em { color: #b54708; font-size: 11px; font-style: normal; line-height: 1.35; }

/* v101 CAD ML closed-loop controls */
.cad-ml-center { margin-top: 10px; border: 1px solid #c9d8e7; border-radius: 10px; background: #f7fbff; }
.cad-ml-center > summary { padding: 10px 12px; cursor: pointer; font-weight: 700; color: #174b73; }
.cad-ml-center > .hint, .cad-ml-center > .success-text, .cad-ml-center > .error-text { margin: 8px 12px 12px; }
.cad-ml-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 0 12px 10px; }
.cad-ml-grid section { display: flex; flex-direction: column; gap: 6px; min-height: 132px; padding: 10px; border: 1px solid #dbe6ef; border-radius: 8px; background: #fff; }
.cad-ml-grid section b { color: #183d59; }
.cad-ml-grid section span { color: #5d6c78; font-size: 12px; line-height: 1.45; }
.cad-ml-grid section button { margin-top: auto; }
@media (max-width: 1100px) { .cad-ml-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .cad-ml-grid { grid-template-columns: 1fr; } }
.cad-ml-task { display: flex; align-items: center; gap: 6px; padding-top: 5px; border-top: 1px dashed #dbe6ef; }
.cad-ml-task small { flex: 1; }
.cad-ml-task button { margin-top: 0; padding: 3px 7px; font-size: 11px; }
.cad-ml-task em { font-size: 11px; color: #537085; }

/* v105 PDF/image calibration gate */
.cad-raster-calibration-guide { display: grid; grid-template-columns: auto 1fr 1fr 1fr auto; gap: 8px; align-items: center; margin: 0 12px 10px; padding: 10px 12px; border: 1px solid #f0a23a; border-radius: 9px; background: #fff7e8; color: #714600; }
.cad-raster-calibration-guide strong { color: #9a4f00; }
.cad-raster-calibration-guide span { font-size: 12px; line-height: 1.4; }
.cad-calibration-inline-ready { color: #17653b; font-weight: 700; }
@media (max-width: 1100px) { .cad-raster-calibration-guide { grid-template-columns: 1fr 1fr; } .cad-raster-calibration-guide strong { grid-column: 1 / -1; } }


/* v108: confirmed CAD/PDF room structure bridge */
.diagnosis-structure-card {
  border: 1px solid #bae6d3;
  background: linear-gradient(135deg, #f0fdfa 0%, #f8fafc 100%);
  border-radius: 12px;
  padding: 14px;
}
.diagnosis-structure-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.diagnosis-structure-head small {
  color: #0f766e;
  font-weight: 700;
}
.diagnosis-structure-head h4 {
  margin: 3px 0 0;
}
.diagnosis-structure-head > span {
  border-radius: 999px;
  padding: 5px 10px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 12px;
  font-weight: 700;
}
.diagnosis-structure-head > span.ready {
  background: #dcfce7;
  color: #166534;
}
.diagnosis-structure-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.diagnosis-structure-metrics span,
.diagnosis-structure-floors span {
  border: 1px solid #dbe5e1;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  padding: 9px;
}
.diagnosis-structure-metrics b,
.diagnosis-structure-floors b {
  display: block;
  color: #0f766e;
}
.diagnosis-structure-floors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.diagnosis-structure-warnings {
  color: #9a3412;
}

.customer-climate-hours,
.customer-proposal-costs,
.customer-proposal-comparison {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.customer-climate-hours {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.customer-climate-hours span {
  display: grid;
  gap: 3px;
  border: 1px solid #dce8f5;
  border-radius: 10px;
  background: #f8fbff;
  color: #516276;
  padding: 10px 12px;
}

.customer-climate-hours b {
  color: #123968;
}

.customer-structure-summary {
  display: grid;
  gap: 6px;
  margin: 12px 0;
  border-left: 4px solid #0f9f6e;
  background: #f0fdf7;
  color: #526176;
  padding: 12px 14px;
}

.customer-structure-summary strong {
  color: #087552;
  font-size: 18px;
}

.customer-house-intro {
  max-width: 900px;
  margin: -2px 0 6px;
  color: #52677d;
}

.customer-house-review-required {
  border-color: #f0c98a !important;
  background: #fff8e8 !important;
  color: #9a5a00 !important;
}

.customer-house-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr);
  gap: 16px;
  align-items: start;
}

.customer-house-plan-panel,
.customer-house-context {
  min-width: 0;
  border: 1px solid #d8e5ef;
  border-radius: 16px;
  background: #fff;
}

.customer-house-plan-panel {
  display: grid;
  gap: 12px;
  padding: 15px;
}

.customer-house-floor-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.customer-house-floor-tabs button {
  min-width: 72px;
  border-color: #cddcea;
  background: #f7fafc;
  color: #31536e;
}

.customer-house-floor-tabs button.active {
  border-color: #1775cf;
  background: #1775cf;
  color: #fff;
}

.customer-house-floor-summary {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.customer-house-floor-summary > div {
  display: grid;
  gap: 2px;
}

.customer-house-floor-summary > div:last-child {
  justify-items: end;
}

.customer-house-floor-summary small,
.customer-house-floor-summary span {
  color: #6b7f91;
  font-size: 12px;
}

.customer-house-floor-summary h3 {
  margin: 0;
  color: #173d61;
  font-size: 21px;
}

.customer-house-floor-summary strong {
  color: #0f766e;
  font-size: 22px;
}

.customer-house-plan-canvas {
  position: relative;
  overflow: hidden;
  border: 1px solid #cddce8;
  border-radius: 13px;
  background: #f3f7fa;
}

.customer-house-plan-canvas svg {
  display: block;
  width: 100%;
  max-height: min(62vh, 650px);
  background: #fff;
}

.customer-house-plan-zone-layer polygon {
  fill: #1976d2;
  fill-opacity: .14;
  stroke: #1976d2;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.customer-house-plan-zone-layer text {
  fill: #173d61;
  font-size: 11px;
  font-weight: 900;
  text-anchor: middle;
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 3px;
  stroke-linejoin: round;
}

.customer-house-plan-label {
  position: absolute;
  right: 10px;
  bottom: 10px;
  border: 1px solid rgba(15, 118, 110, .22);
  border-radius: 999px;
  background: rgba(240, 253, 250, .94);
  color: #0f766e;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 800;
}

.customer-house-fallback {
  display: grid;
  gap: 13px;
  min-height: 260px;
  border: 1px dashed #b9cfe0;
  border-radius: 13px;
  background: linear-gradient(145deg, #f7fbff, #f5faf8);
  padding: 16px;
}

.customer-house-fallback-title {
  display: grid;
  gap: 3px;
}

.customer-house-fallback-title span {
  color: #173d61;
  font-size: 15px;
  font-weight: 900;
}

.customer-house-fallback-title small {
  color: #728497;
}

.customer-house-room-bars {
  display: grid;
  gap: 10px;
  align-content: center;
}

.customer-house-room-bars article {
  display: grid;
  gap: 6px;
}

.customer-house-room-bars article > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #36526d;
}

.customer-house-room-bars strong {
  color: #0f766e;
}

.customer-house-room-bars i {
  width: var(--house-room-ratio, 30%);
  height: 9px;
  border-radius: 99px;
  background: linear-gradient(90deg, #2b83d5, #48b7ac);
}

.customer-house-room-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.customer-house-room-list span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid #e0e9f0;
  border-radius: 9px;
  background: #fafcfd;
  color: #597085;
  padding: 8px 9px;
  font-size: 12px;
}

.customer-house-room-list b {
  overflow: hidden;
  color: #284b69;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-house-context {
  display: grid;
  gap: 0;
  overflow: hidden;
}

.customer-house-context > div {
  display: grid;
  gap: 10px;
  padding: 15px;
}

.customer-house-context > div + div {
  border-top: 1px solid #e4ebf1;
}

.customer-house-context small {
  color: #17669f;
  font-weight: 900;
  letter-spacing: .04em;
}

.customer-house-context dl {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 7px 10px;
  margin: 0;
}

.customer-house-context dt {
  color: #718295;
  font-size: 12px;
}

.customer-house-context dd {
  margin: 0;
  color: #2c4863;
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.customer-house-context dd.emphasis {
  color: #0f766e;
}

.customer-house-context ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
}

.customer-house-context li {
  color: #536a80;
  line-height: 1.55;
}

.customer-house-need-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.customer-house-need-tags span {
  border: 1px solid #cae3df;
  border-radius: 999px;
  background: #f0faf8;
  color: #176c63;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 800;
}

.customer-house-empty {
  display: grid;
  gap: 5px;
  border: 1px dashed #d5b77d;
  border-radius: 12px;
  background: #fffaf0;
  color: #795b21;
  padding: 18px;
}

.customer-house-trace-note {
  margin: 0;
  color: #728293;
  font-size: 11px;
}

.customer-design-review-required {
  border-color: #efca91 !important;
  background: #fff8e9 !important;
  color: #925900 !important;
}

.customer-design-system-header {
  display: grid;
  grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr);
  gap: 18px;
  align-items: center;
  border: 1px solid #cfe0ee;
  border-radius: 15px;
  background: linear-gradient(135deg, #f5faff, #f1faf8);
  padding: 16px 18px;
}

.customer-design-system-header > div {
  display: grid;
  gap: 4px;
}

.customer-design-system-header small {
  color: #17679c;
  font-weight: 900;
}

.customer-design-system-header h3 {
  margin: 0;
  color: #153f65;
  font-size: 23px;
}

.customer-design-system-header p {
  margin: 0;
  color: #526a80;
  line-height: 1.7;
}

.customer-recommendation-reasons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.customer-recommendation-reasons article {
  border-left: 3px solid #1f9b70;
  background: #eef8f4;
  padding: 12px 15px;
}

.customer-recommendation-reasons small {
  display: block;
  margin-bottom: 4px;
  color: #167755;
  font-weight: 800;
}

.customer-recommendation-reasons p {
  margin: 0;
  color: #355f52;
  line-height: 1.65;
}

@media (max-width: 640px) {
  .customer-recommendation-reasons {
    grid-template-columns: 1fr;
  }
}

.customer-design-system-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.customer-design-system-grid article {
  display: grid;
  gap: 6px;
  min-width: 0;
  border: 1px solid #d8e4ee;
  border-radius: 13px;
  background: #fff;
  padding: 14px;
}

.customer-design-system-grid article.design-cooling {
  border-top: 4px solid #2581d8;
}

.customer-design-system-grid article.design-heating {
  border-top: 4px solid #ec844e;
}

.customer-design-system-grid article.design-air {
  border-top: 4px solid #31a47b;
}

.customer-design-system-grid small {
  color: #6c7f91;
  font-weight: 800;
}

.customer-design-system-grid h3 {
  min-height: 42px;
  margin: 0;
  color: #244963;
  font-size: 16px;
}

.customer-design-system-grid strong {
  color: #0f766e;
  font-size: 19px;
}

.customer-design-system-grid p {
  margin: 0;
  color: #5b7084;
  font-size: 13px;
  line-height: 1.6;
}

.customer-design-room-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 3px;
}

.customer-design-room-tabs button {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  border-color: #d4e0ea;
  background: #f9fbfd;
  color: #35566f;
  padding: 10px 11px;
  text-align: left;
}

.customer-design-room-tabs button b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-design-room-tabs button span {
  flex: 0 0 auto;
  color: #6a7f91;
  font-size: 12px;
}

.customer-design-room-tabs button.active {
  border-color: #1775cf;
  background: #1775cf;
  color: #fff;
  box-shadow: 0 8px 18px rgba(23, 117, 207, .18);
}

.customer-design-room-tabs button.active span {
  color: #e8f4ff;
}

.customer-design-room-tabs button.reviewing {
  border-style: dashed;
}

.customer-design-room-detail {
  display: grid;
  gap: 13px;
  border: 1px solid #d6e3ed;
  border-radius: 16px;
  background: #fff;
  padding: 17px;
  box-shadow: 0 10px 30px rgba(35, 65, 91, .06);
}

.customer-design-room-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.customer-design-room-heading > div {
  display: grid;
  gap: 3px;
}

.customer-design-room-heading small {
  color: #6b8194;
}

.customer-design-room-heading h3 {
  margin: 0;
  color: #173f62;
  font-size: 22px;
}

.customer-design-room-heading > strong {
  color: #0f766e;
  font-size: 24px;
}

.customer-design-demand {
  margin: -3px 0 0;
  border-left: 4px solid #3b8ed6;
  background: #f5faff;
  color: #526b81;
  padding: 9px 12px;
}

.customer-design-config-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.customer-design-config-grid > div {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  border: 1px solid #dce6ee;
  border-radius: 12px;
  background: #fbfdff;
  padding: 13px;
}

.customer-design-config-grid > div:nth-child(1) {
  background: #f4f9ff;
}

.customer-design-config-grid > div:nth-child(2) {
  background: #fff8f4;
}

.customer-design-config-grid > div:nth-child(3) {
  background: #f3fbf8;
}

.customer-design-config-grid > div:nth-child(4) {
  background: #fbf8ff;
}

.customer-design-config-grid > div.disabled {
  opacity: .68;
}

.customer-design-config-grid small,
.customer-design-explanation-grid small {
  color: #6f8092;
  font-weight: 900;
}

.customer-design-config-grid h4 {
  min-height: 38px;
  margin: 0;
  color: #274961;
  font-size: 15px;
  line-height: 1.3;
}

.customer-design-config-grid strong {
  color: #0f766e;
  font-size: 18px;
}

.customer-design-config-grid span {
  color: #617589;
  font-size: 12px;
  line-height: 1.45;
}

.customer-design-explanation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, .65fr);
  gap: 10px;
}

.customer-design-explanation-grid > div {
  display: grid;
  gap: 8px;
  border: 1px solid #e0e8ef;
  border-radius: 12px;
  background: #fafcfd;
  padding: 13px 14px;
}

.customer-design-explanation-grid ol,
.customer-design-explanation-grid ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 20px;
}

.customer-design-explanation-grid li {
  color: #526a7e;
  line-height: 1.55;
}

.customer-design-site-focus {
  display: grid;
  grid-template-columns: minmax(200px, .85fr) repeat(2, minmax(0, 1fr));
  gap: 8px;
  border-radius: 13px;
  background: #163d60;
  color: #fff;
  padding: 13px;
}

.customer-design-site-focus > div {
  display: grid;
  gap: 3px;
}

.customer-design-site-focus small {
  color: #abd5f5;
}

.customer-design-site-focus span {
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 9px;
  background: rgba(255, 255, 255, .07);
  padding: 9px 10px;
  font-size: 12px;
  line-height: 1.45;
}

.customer-design-source-note {
  margin: 0;
  color: #708092;
  font-size: 11px;
}

.customer-design-empty {
  display: grid;
  gap: 5px;
  border: 1px dashed #d9b77b;
  border-radius: 12px;
  background: #fff9ed;
  color: #76541a;
  padding: 18px;
}

.customer-proposal-comparison {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.customer-proposal-comparison article,
.customer-proposal-costs > div {
  display: grid;
  gap: 6px;
  border: 1px solid #dbe5ef;
  border-radius: 12px;
  background: #fff;
  padding: 14px;
}

.customer-proposal-comparison article.selected {
  border-color: #0f9f6e;
  background: #f0fdf7;
}

.customer-proposal-comparison h3 {
  margin: 0;
  color: #123968;
  font-size: 16px;
}

.customer-proposal-comparison span,
.customer-proposal-comparison small {
  color: #627087;
}

.customer-proposal-costs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.customer-proposal-costs strong {
  color: #087552;
  font-size: 21px;
}

.customer-proposal-costs span,
.customer-proposal-costs small {
  color: #627087;
}

@media (max-width: 980px) {
  .customer-proposal-comparison,
  .customer-proposal-costs,
  .customer-climate-hours {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .diagnosis-structure-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.cad-diagnosis-return-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
  padding: 11px 14px;
  border: 1px solid #86d7c1;
  border-radius: 10px;
  background: #effbf7;
  color: #126b5d;
}

.cad-diagnosis-return-notice span {
  color: #466779;
  font-size: 13px;
}
/* v110: single sales project workbench */
.project-workbench-head {
  margin-bottom: 12px;
}

.project-workbench-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 14px;
}

.project-workbench-summary span {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 7px 11px;
  border: 1px solid #dce7f2;
  border-radius: 999px;
  background: #fff;
  color: #53677a;
  font-size: 13px;
}

.project-workbench-summary b {
  color: #15324d;
  font-size: 16px;
}

.project-workbench-step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.project-workbench-step-grid > button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  min-height: 96px;
  padding: 12px;
  text-align: left;
  border: 1px solid #d7e2ee;
  border-radius: 12px;
  background: #fff;
}

.project-workbench-step-grid > button > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #eaf3ff;
  color: #1769c2;
  font-weight: 800;
}

.project-workbench-step-grid > button div {
  display: grid;
  gap: 5px;
}

.project-workbench-step-grid > button small {
  color: #65788b;
  line-height: 1.45;
}

.project-workbench-step-grid > button em {
  grid-column: 2;
  color: #1769c2;
  font-size: 12px;
  font-style: normal;
}

.project-workbench-step-grid > button.done {
  border-color: #8bd5bd;
  background: #f2fbf7;
}

.project-workbench-step-grid > button.done > span {
  background: #1b9d79;
  color: #fff;
}

.project-workbench-step-grid > button.done em {
  color: #15745d;
}

.project-customer-page-panel {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #b9d8f6;
  border-radius: 14px;
  background: linear-gradient(145deg, #f8fbff 0%, #f1f8ff 100%);
}

.customer-page-readiness {
  display: flex;
  align-items: baseline;
  gap: 5px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #fff;
  color: #53677a;
}

.customer-page-readiness strong {
  color: #1168bf;
  font-size: 24px;
}

.customer-page-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 14px 0;
}

.customer-page-check-grid article {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 11px;
  border: 1px solid #e0e7ef;
  border-radius: 10px;
  background: #fff;
}

.customer-page-check-grid article > span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #fff1e9;
  color: #bb5a1d;
  font-weight: 800;
}

.customer-page-check-grid article.ready > span {
  background: #e5f7f0;
  color: #15815f;
}

.customer-page-check-grid article div {
  display: grid;
  gap: 3px;
}

.customer-page-check-grid small,
.customer-page-check-grid em {
  color: #687b8e;
  font-size: 12px;
  font-style: normal;
}

.customer-page-check-grid article.shared em {
  color: #7054b5;
}

.project-customer-case-summary {
  display: grid;
  gap: 9px;
  margin: 12px 0;
  padding: 12px;
  border-radius: 10px;
  background: #fff;
}

.project-customer-case-summary > div:first-child {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.project-case-reference-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-case-reference-chips > span {
  display: grid;
  gap: 2px;
  padding: 7px 10px;
  border: 1px solid #dce7f2;
  border-radius: 9px;
  background: #f8fbff;
}

.project-case-reference-chips small {
  color: #6e8091;
}

.customer-page-actions {
  margin-top: 12px;
}

@media (max-width: 980px) {
  .project-workbench-step-grid,
  .customer-page-check-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .project-workbench-step-grid,
  .customer-page-check-grid {
    grid-template-columns: 1fr;
  }
  .project-customer-page-panel {
    padding: 13px;
  }
  .customer-page-check-grid article {
    grid-template-columns: 28px minmax(0, 1fr);
  }
  .customer-page-check-grid article em {
    grid-column: 2;
  }
  .project-customer-case-summary > div:first-child {
    display: grid;
  }
}
/* v111 customer share content */
.customer-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.customer-section-heading small {
  display: block;
  margin-bottom: 5px;
  color: #0b62b4;
  font-weight: 800;
}
.customer-section-heading > span {
  flex: 0 0 auto;
  border: 1px solid #cae0f5;
  border-radius: 999px;
  background: #f3f9ff;
  color: #175b96;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}
.customer-brand-store-section {
  overflow: hidden;
  background: linear-gradient(145deg, #ffffff 0%, #f3f9ff 100%);
}
.customer-brand-store-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 12px;
}
.customer-brand-card,
.customer-store-intro {
  border: 1px solid #dbe7f3;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  padding: 16px;
}
.customer-brand-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}
.customer-brand-card img {
  width: 88px;
  height: 88px;
  border-radius: 10px;
  object-fit: contain;
  background: #f7fafc;
}
.customer-store-facts {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}
.customer-store-facts span {
  color: #5e7185;
  font-size: 13px;
}
.customer-service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.customer-service-tags span {
  border-radius: 999px;
  background: #eaf5ff;
  color: #135c9b;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 700;
}
.customer-store-media-grid,
.customer-team-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.customer-personnel-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.customer-personnel-card-grid.factory-service { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.customer-personnel-card {
  display: grid;
  grid-template-columns: minmax(120px, 38%) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #d8e6f4;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(27, 72, 112, 0.07);
}
.customer-personnel-card figure {
  position: relative;
  min-height: 220px;
  margin: 0;
  background: linear-gradient(145deg, #eef4fa, #dfeaf4);
}
.customer-personnel-card figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.customer-personnel-card figure > span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #718399;
  font-size: 13px;
}
.customer-personnel-card figure em {
  position: absolute;
  top: 10px;
  left: 10px;
  border-radius: 999px;
  background: rgba(255, 247, 229, 0.94);
  color: #9a5c00;
  padding: 4px 9px;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}
.customer-personnel-card > div {
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 18px;
}
.customer-personnel-card h3,
.customer-personnel-card p { margin: 0; }
.customer-personnel-card h3 { color: #123a62; font-size: 21px; }
.customer-personnel-card b { color: #0b65aa; font-size: 14px; }
.customer-personnel-card p,
.customer-personnel-card small { color: #536b82; line-height: 1.65; }
.customer-store-media-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid #dde8f3;
  border-radius: 10px;
  background: #fff;
}
.customer-store-media-grid img,
.customer-team-photo-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.customer-store-media-grid figcaption {
  padding: 8px 10px;
  color: #53677a;
  font-size: 12px;
}
.customer-rich-media-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.customer-rich-media-row > div {
  border: 1px solid #dbe7f3;
  border-radius: 12px;
  background: #fff;
  padding: 14px;
}
.customer-rich-media-row video {
  width: 100%;
  max-height: 360px;
  border-radius: 9px;
  background: #10233f;
}
.customer-vr-card {
  display: grid;
  grid-template-rows: auto minmax(280px, 1fr);
  align-content: stretch;
  gap: 10px;
  min-height: 190px;
  background: linear-gradient(135deg, #0f4d82 0%, #1673bd 100%) !important;
  color: #fff;
}
.customer-vr-card small,
.customer-vr-card h3,
.customer-vr-card p {
  color: #fff;
}
.customer-vr-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.customer-vr-heading h3 { margin: 4px 0 0; }
.customer-vr-heading button {
  flex: 0 0 auto;
  border-radius: 6px;
  border: 0;
  background: #fff;
  color: #0f5d9e;
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
}
.customer-vr-card iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 10px;
  background: #081b2c;
}
.customer-vr-card.is-expanded {
  position: fixed;
  inset: 12px;
  z-index: 1000;
  min-height: 0;
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(3, 19, 34, .55);
}
.customer-vr-card.is-expanded iframe {
  min-height: 0;
}
.customer-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.customer-product-grid article {
  display: grid;
  gap: 6px;
  border: 1px solid #dae7f4;
  border-radius: 10px;
  background: #fbfdff;
  padding: 14px;
}
.customer-product-grid article small {
  color: #0b62b4;
  font-weight: 800;
}
.customer-product-grid article p {
  margin: 0;
}
.customer-product-grid article > span {
  color: #183e68;
  font-weight: 800;
}
.customer-case-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.customer-case-card-grid article {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #dbe7f3;
  border-radius: 12px;
  background: #fff;
}
.customer-case-card-grid article > img {
  width: 100%;
  height: 100%;
  min-height: 175px;
  object-fit: cover;
}
.customer-case-card-grid article > div {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 14px;
}
.customer-case-card-grid small,
.customer-case-card-grid em {
  color: #65798e;
  font-size: 12px;
  font-style: normal;
}
.customer-case-card-grid p {
  margin: 0;
}
.customer-team-section {
  background: linear-gradient(145deg, #fff 0%, #f5fbf8 100%);
}
.customer-fulfillment-card {
  display: grid;
  gap: 13px;
  border: 1px solid #b8dfcd;
  border-left: 4px solid #15865d;
  border-radius: 14px;
  background: #f4fbf7;
  padding: 17px;
}
.customer-fulfillment-card.paused {
  border-color: #efb4b4;
  border-left-color: #c43d3d;
  background: #fff6f6;
}
.customer-fulfillment-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.customer-fulfillment-head small,
.customer-fulfillment-facts small {
  color: #60798f;
}
.customer-fulfillment-head h3 {
  margin: 4px 0 0;
  color: #164f3b;
}
.customer-fulfillment-head > span {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #dff4e9;
  color: #126543;
  padding: 7px 11px;
  font-weight: 800;
}
.customer-fulfillment-card.paused .customer-fulfillment-head > span {
  background: #ffe4e4;
  color: #9c2f2f;
}
.customer-fulfillment-facts {
  display: grid;
  grid-template-columns: 0.8fr 1.6fr 1fr 1fr;
  gap: 9px;
}
.customer-fulfillment-facts > div {
  display: grid;
  gap: 5px;
  min-width: 0;
  border: 1px solid #d5e7de;
  border-radius: 10px;
  background: #fff;
  padding: 11px 12px;
}
.customer-fulfillment-facts b {
  overflow-wrap: anywhere;
  color: #203c34;
}
.customer-fulfillment-binding {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  margin: 0;
  color: #4f6d63;
  font-size: 13px;
}
.customer-fulfillment-binding em {
  color: #71887f;
  font-style: normal;
}
@media (max-width: 800px) {
  .customer-brand-store-grid,
  .customer-rich-media-row,
  .customer-case-card-grid,
  .customer-personnel-card-grid,
  .customer-personnel-card-grid.factory-service,
  .customer-personnel-editor-grid {
    grid-template-columns: 1fr;
  }
  .customer-store-media-grid,
  .customer-team-photo-grid,
  .customer-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .customer-fulfillment-head {
    display: grid;
  }
  .customer-fulfillment-head > span {
    justify-self: start;
  }
  .customer-fulfillment-facts {
    grid-template-columns: 1fr 1fr;
  }
  .customer-case-card-grid article {
    grid-template-columns: 120px minmax(0, 1fr);
  }
}
@media (max-width: 520px) {
  .customer-personnel-card {
    grid-template-columns: 104px minmax(0, 1fr);
  }
  .customer-personnel-card figure {
    min-height: 160px;
  }
  .customer-personnel-card > div {
    gap: 4px;
    padding: 12px;
  }
  .customer-personnel-card h3 {
    font-size: 18px;
  }
  .customer-personnel-card p,
  .customer-personnel-card small {
    font-size: 12px;
    line-height: 1.5;
  }
  .customer-fulfillment-facts {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .customer-section-heading {
    display: grid;
  }
  .customer-section-heading > span {
    justify-self: start;
  }
  .customer-brand-card,
  .customer-case-card-grid article {
    grid-template-columns: 1fr;
  }
  .customer-brand-card img {
    width: 100%;
    height: 130px;
  }
  .customer-store-media-grid,
  .customer-team-photo-grid,
  .customer-product-grid {
    grid-template-columns: 1fr;
  }
  .customer-case-card-grid article > img {
    max-height: 210px;
  }
}
/* v112 workspace consolidation */
.route-archive-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 1px solid #f2d9a8;
  border-radius: 12px;
  background: #fff9ed;
  color: #765115;
}
.route-archive-notice b {
  flex: 0 0 auto;
  color: #9a5a00;
}
.content-context-return {
  margin: -4px 0 16px;
  padding: 10px 14px;
  border-left: 4px solid #1f76d2;
  border-radius: 8px;
  background: #eef6ff;
  color: #315a83;
}
@media (max-width: 640px) {
  .route-archive-notice {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}
/* v113 project safety gates */
.project-safety-warning {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid #f0c778;
  border-left: 4px solid #d97706;
  border-radius: 10px;
  background: #fff8e8;
  color: #70430b;
}
.project-safety-warning > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.project-safety-warning span {
  color: #805a24;
}
.project-safety-warning ul {
  margin: 0;
  padding-left: 20px;
}
.project-missing-warning {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}
.project-missing-warning > div {
  display: grid;
  justify-content: initial;
}
.project-safe-state {
  display: grid;
  gap: 2px;
  text-align: center;
}
.project-safe-state small {
  color: #9a5a00;
  font-size: 10px;
  font-weight: 600;
}
.project-diagnosis-skip {
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px dashed #c9d6e5;
  border-radius: 10px;
  background: #f8fbff;
}
.project-diagnosis-skip summary {
  cursor: pointer;
}
.project-diagnosis-skip summary small {
  display: block;
  margin-top: 4px;
  color: #64748b;
}
.project-diagnosis-skip label {
  display: grid;
  gap: 6px;
  margin: 12px 0;
}
@media (max-width: 640px) {
  .project-safety-warning > div,
  .project-missing-warning {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}
/* v114 focused project workspace */
.project-list-compact {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.project-list-compact .project-center-card {
  min-height: 0;
  padding: 16px;
}
.project-list-next {
  display: grid;
  gap: 4px;
  min-height: 48px;
  margin: 12px 0 8px;
  color: #475569;
}
.project-list-next b {
  color: #0f5f7a;
  font-size: 12px;
}
.project-list-compact .project-center-actions button {
  width: 100%;
}
.project-card-more {
  min-width: 96px;
}
.project-card-more summary {
  padding: 9px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  background: #fff;
  color: #334155;
  cursor: pointer;
  font-weight: 700;
  text-align: center;
  list-style: none;
}
.project-card-more summary::-webkit-details-marker {
  display: none;
}
.project-card-more[open] summary {
  border-color: #94a3b8;
  background: #f8fafc;
}
.project-card-more > button {
  margin-top: 8px;
  width: 100%;
}
.project-workbench-toast {
  position: static;
  width: 100%;
  max-width: none;
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: none;
}
.project-workbench-toast.success {
  border: 1px solid #9ad7c2;
  background: #effcf7;
  color: #08634e;
}
.project-center-page button:disabled,
.customer-share-page button:disabled,
.project-customer-page-panel button:disabled {
  border-color: #cbd5e1 !important;
  background: #e8edf3 !important;
  color: #8492a6 !important;
  box-shadow: none !important;
  opacity: 1;
  cursor: not-allowed !important;
  transform: none !important;
}
.customer-quote-review-alert {
  margin: 12px 0;
  padding: 14px 16px;
  border: 1px solid #f3c589;
  border-left: 5px solid #e58b16;
  border-radius: 10px;
  background: #fff8eb;
  color: #8a4b08;
  font-weight: 700;
  line-height: 1.65;
}
.customer-quote-review-reasons {
  margin: 0 0 16px;
  padding-left: 24px;
  color: #8a4b08;
}
.project-mainline-focused {
  border-color: #b9d8e7;
  background: linear-gradient(180deg, #f8fcff 0%, #ffffff 100%);
}
.project-workbench-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.project-workbench-facts span {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid #d9e5ee;
  border-radius: 10px;
  background: #ffffff;
  color: #44576a;
}
.project-workbench-facts b {
  color: #0d5f79;
  font-size: 12px;
}
.project-workspace-fold {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid #d8e3ec;
  border-radius: 12px;
  background: #ffffff;
}
.project-workspace-fold > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  background: #f7fafc;
}
.project-workspace-fold > summary::-webkit-details-marker {
  display: none;
}
.project-workspace-fold > summary span {
  display: grid;
  gap: 3px;
}
.project-workspace-fold > summary small {
  color: #66788a;
  font-weight: 400;
}
.project-workspace-fold > summary em {
  flex: 0 0 auto;
  color: #16718d;
  font-style: normal;
  font-weight: 700;
}
.project-workspace-fold[open] > summary {
  border-bottom: 1px solid #d8e3ec;
}
.project-workspace-fold-body {
  padding: 16px;
}
.project-project-inline-status,
.project-quote-inline-status {
  position: static;
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 9px;
  box-shadow: none;
}
.project-quote-fold > summary {
  background: #f4f9fd;
}
.project-quote-fold[open] > summary {
  background: #eef7fb;
}
.project-quote-fold-body {
  display: grid;
  gap: 12px;
  padding: 12px;
}
.project-quote-workspace-content {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.project-customer-fold > .project-customer-page-panel {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.project-customer-check-details {
  margin-top: 12px;
  border-top: 1px solid #d8e3ec;
  padding-top: 10px;
}
.project-customer-check-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  cursor: pointer;
  color: #284c6d;
}
.project-customer-check-details > summary span {
  color: #66788a;
  font-size: 13px;
}
.project-history-fold .compact-list {
  margin: 0;
}
.project-deal-action {
  justify-content: flex-end;
  margin-top: 12px;
}
@media (max-width: 900px) {
  .project-workbench-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .project-workbench-facts {
    grid-template-columns: 1fr;
  }
  .project-workspace-fold > summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .project-home-next {
    grid-template-columns: 1fr;
  }
  .project-home-next-actions {
    justify-content: flex-start;
  }
}
/* v115 project list and intake */
.project-list-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) minmax(190px, 0.8fr) auto auto;
  align-items: end;
  gap: 12px;
  margin: 14px 0;
  padding: 14px 16px;
  border: 1px solid #d8e5ed;
  border-radius: 12px;
  background: #f8fbfd;
}
.project-list-toolbar label {
  display: grid;
  gap: 6px;
}
.project-list-toolbar label span {
  color: #486274;
  font-size: 12px;
  font-weight: 700;
}
.project-list-toolbar input,
.project-list-toolbar select {
  min-height: 40px;
}
.project-list-toolbar > b {
  align-self: center;
  color: #17657d;
  white-space: nowrap;
}
.project-create-required {
  margin-bottom: 12px;
}
.project-create-optional {
  margin: 12px 0;
  overflow: hidden;
  border: 1px solid #d7e2ea;
  border-radius: 10px;
  background: #f9fbfd;
}
.project-create-optional > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}
.project-create-optional > summary::-webkit-details-marker {
  display: none;
}
.project-create-optional > summary small {
  color: #66788a;
}
.project-create-optional[open] > summary {
  border-bottom: 1px solid #d7e2ea;
}
.project-create-optional > .dealer-form-grid {
  padding: 14px;
}
.project-list-empty {
  grid-column: 1 / -1;
  margin: 16px 0;
}
@media (max-width: 900px) {
  .project-list-toolbar {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .project-list-toolbar {
    grid-template-columns: 1fr;
  }
  .project-create-optional > summary {
    align-items: flex-start;
    flex-direction: column;
  }
}
/* V126: customer intent feedback closes the WeChat-to-sales follow-up loop. */
.customer-intent-feedback {
  background: linear-gradient(145deg, #f4fbff 0%, #f7fff9 100%);
  border-color: #b8dce8;
}

.customer-intent-feedback > p {
  color: #52657a;
}

.customer-intent-feedback-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.customer-intent-feedback-grid button {
  min-height: 132px;
  padding: 18px;
  border: 1px solid #cad9e7;
  border-radius: 16px;
  background: #fff;
  color: #17324d;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  box-shadow: 0 8px 22px rgba(27, 74, 112, 0.06);
}

.customer-intent-feedback-grid button:hover:not(:disabled) {
  border-color: #2f80d0;
  transform: translateY(-1px);
}

.customer-intent-feedback-grid button.selected {
  border-color: #15916f;
  background: #edfdf6;
  box-shadow: 0 0 0 2px rgba(21, 145, 111, 0.12);
}

.customer-intent-feedback-grid button b {
  font-size: 16px;
}

.customer-intent-feedback-grid button span {
  color: #65778b;
  line-height: 1.55;
}

.customer-intent-feedback-grid button em {
  margin-top: auto;
  color: #0d8061;
  font-style: normal;
  font-weight: 700;
}

@media (max-width: 760px) {
  .customer-intent-feedback-grid {
    grid-template-columns: 1fr;
  }

  .customer-intent-feedback-grid button {
    min-height: 0;
  }
}

/* V134: keep the WeChat customer page focused on decision, quote and conversation. */
.customer-share-page:not(.details-expanded) #customer-share-store,
.customer-share-page:not(.details-expanded) #customer-share-house,
.customer-share-page:not(.details-expanded) .customer-proposal-climate,
.customer-share-page:not(.details-expanded) .customer-proposal-structure,
.customer-share-page:not(.details-expanded) #customer-share-products,
.customer-share-page:not(.details-expanded) #customer-share-cases,
.customer-share-page:not(.details-expanded) .customer-team-section,
.customer-share-page:not(.details-expanded) .customer-share-privacy,
.customer-share-page:not(.details-expanded) .customer-share-final-contact {
  display: none;
}

.customer-share-details-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-color: #c9dbea !important;
  background: #f8fbfe !important;
  padding: 13px 16px !important;
  text-align: left;
}

.customer-share-details-toggle > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.customer-share-details-toggle b {
  color: #193f66;
}

.customer-share-details-toggle small {
  overflow: hidden;
  color: #64788b;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-share-details-toggle em {
  flex: 0 0 auto;
  color: #0b62b4;
  font-style: normal;
  font-weight: 800;
}

.project-quote-line-table.customer-facing article:nth-child(n + 5) {
  display: none;
}

.project-quote-line-table.customer-facing::after {
  content: "客户页仅展示前 4 项，完整明细以正式报价单为准";
  display: block;
  grid-column: 1 / -1;
  color: #64748b;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 720px) {
  .customer-share-page {
    padding: 8px 8px 88px;
  }

  .customer-share-shell {
    gap: 10px;
  }

  .customer-share-hero {
    gap: 10px;
    padding: 15px;
  }

  .customer-share-hero h1 {
    margin: 5px 0;
    font-size: 22px;
  }

  .customer-share-topline {
    display: -webkit-box;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .customer-share-status-row {
    gap: 5px;
    margin-top: 8px;
  }

  .customer-share-status-row span {
    padding: 4px 7px;
    font-size: 11px;
  }

  .customer-share-status-row span:nth-child(3) {
    display: none;
  }

  .customer-share-contact {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 10px 11px;
  }

  .customer-share-contact span {
    display: none;
  }

  .customer-share-contact button {
    padding: 8px 12px;
  }

  .customer-share-section {
    gap: 9px;
    padding: 12px;
  }

  .customer-share-section h2 {
    font-size: 18px;
  }

  .customer-share-decision-grid {
    gap: 7px;
  }

  .customer-share-decision-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 2px 9px;
    padding: 10px;
  }

  .customer-share-decision-card small {
    grid-row: 1 / 3;
    align-self: start;
    padding-top: 3px;
  }

  .customer-share-decision-card h3 {
    margin: 0;
    font-size: 15px;
  }

  .customer-share-decision-card p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .customer-share-primary-actions {
    display: none;
  }

  .customer-share-details-toggle {
    padding: 11px 12px !important;
  }

  .customer-selected-proposal .customer-share-columns {
    gap: 7px;
  }

  .customer-selected-proposal .customer-share-columns > div {
    padding: 10px;
  }

  .customer-intent-feedback-grid {
    gap: 8px;
    margin-top: 7px;
  }

  .customer-intent-feedback-grid button {
    gap: 4px;
    padding: 12px;
    border-radius: 10px;
  }

  .customer-intent-feedback-grid button span {
    font-size: 13px;
    line-height: 1.4;
  }

  .customer-share-fixed-cta {
    width: calc(100vw - 16px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* V165 late cascade overrides for legacy customer-page rules. */
#app > div.customer-share-page {
  height: 100vh;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.customer-share-page:not(.details-expanded) #customer-share-store,
.customer-share-page:not(.details-expanded) #customer-share-house,
.customer-share-page:not(.details-expanded) .customer-proposal-climate,
.customer-share-page:not(.details-expanded) .customer-proposal-structure,
.customer-share-page:not(.details-expanded) #customer-share-products,
.customer-share-page:not(.details-expanded) #customer-share-cases,
.customer-share-page:not(.details-expanded) .customer-team-section,
.customer-share-page:not(.details-expanded) .customer-share-privacy,
.customer-share-page:not(.details-expanded) .customer-share-final-contact {
  display: grid;
}

.customer-story-nav button {
  border: 0;
  background: transparent;
  padding: 9px 6px;
}

.customer-story-nav button.is-active {
  border-radius: 9px;
  background: #0b62b4;
  box-shadow: 0 5px 14px rgba(11, 98, 180, .25);
}
.customer-story-nav button.is-active b,
.customer-story-nav button.is-active span {
  color: #fff;
}

/* V170: the first screen is a decision summary, sourced only from valid public quote data. */
.customer-share-decision {
  gap: 16px;
  border-color: #b8d2ec;
  background: linear-gradient(145deg, #ffffff 0%, #f3f8fe 100%);
}

.customer-share-decision .customer-section-heading {
  align-items: flex-start;
}

.customer-share-decision .customer-section-heading > div > small {
  color: #0b62b4;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.customer-share-decision .customer-section-heading > span {
  border: 1px solid #b8dfcd;
  border-radius: 999px;
  background: #edf9f3;
  color: #17633d;
  padding: 6px 10px;
  font-weight: 700;
}

.customer-share-decision .customer-section-heading > span.customer-summary-reviewing {
  border-color: #ead7a7;
  background: #fff8e7;
  color: #78590c;
}

.customer-share-decision-grid {
  grid-template-columns: minmax(220px, 1.45fr) repeat(4, minmax(0, 1fr));
}

.customer-share-decision-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  border-color: #cfddeb;
  box-shadow: 0 8px 24px rgba(23, 47, 78, 0.06);
}

.customer-share-decision-card h3 {
  overflow-wrap: anywhere;
  margin: 0;
  color: #12385f;
  font-size: 24px;
  line-height: 1.22;
}

.customer-share-decision-card p {
  margin: 0;
  color: #60728a;
  font-size: 13px;
  line-height: 1.55;
}

.customer-share-decision-card.customer-summary-solution h3,
.customer-share-decision-card.customer-summary-equipment h3 {
  font-size: 18px;
}

.customer-summary-basis {
  margin: 0;
  color: #52677f;
  font-size: 13px;
}

.customer-share-decision .customer-share-primary-actions .primary {
  min-width: 280px;
}

.customer-share-decision .customer-share-primary-actions {
  display: none;
}

.customer-share-fixed-cta {
  grid-template-columns: 1.35fr 1fr;
}

.customer-share-fixed-cta.quote-only {
  grid-template-columns: 1fr;
}

@media (max-width: 980px) {
  .customer-share-decision-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-share-decision-card.customer-summary-solution {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .customer-share-decision {
    gap: 11px;
  }

  .customer-share-decision .customer-section-heading {
    display: grid;
    gap: 8px;
  }

  .customer-share-decision-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .customer-share-decision-card,
  .customer-share-decision-card.customer-summary-solution {
    display: flex;
    grid-template-columns: none;
    gap: 5px;
    padding: 10px;
  }

  .customer-share-decision-card.customer-summary-solution,
  .customer-share-decision-card.customer-summary-equipment {
    grid-column: 1 / -1;
  }

  .customer-share-decision-card small {
    grid-row: auto;
    padding-top: 0;
  }

  .customer-share-decision-card h3,
  .customer-share-decision-card.customer-summary-solution h3,
  .customer-share-decision-card.customer-summary-equipment h3 {
    font-size: 17px;
  }

  .customer-share-decision-card p {
    display: block;
    font-size: 12px;
    -webkit-line-clamp: initial;
  }

  .customer-share-fixed-cta {
    grid-template-columns: 1.25fr 1fr;
  }

  .customer-share-fixed-cta button {
    padding-inline: 8px;
    font-size: 13px;
  }
}

.customer-brand-story-section,
.customer-delivery-standard-section,
.customer-service-network-section {
  border-color: #c9dbea;
  background: linear-gradient(145deg, #ffffff 0%, #f7fbff 100%);
}

.customer-brand-product-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.customer-share-shell [id^="customer-share-"] {
  scroll-margin-top: 92px;
}

@media (max-width: 820px) {
  .customer-brand-product-columns {
    grid-template-columns: 1fr;
  }
}

/* V166: official source evidence and publish-readiness governance. */
.customer-official-sources {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) repeat(2, minmax(0, 1fr));
  gap: 9px;
  border-top: 1px solid #dce7f2;
  padding-top: 13px;
}

.customer-official-sources > div,
.customer-official-sources > a {
  display: grid;
  gap: 4px;
  border: 1px solid #dce7f2;
  border-radius: 9px;
  background: #ffffff;
  color: #2e4c68;
  padding: 11px;
  text-decoration: none;
}

.customer-official-sources > a:hover {
  border-color: #8ab8e8;
  background: #f5faff;
}

.customer-official-sources small,
.customer-official-sources a b {
  color: #0b62b4;
}

.customer-official-sources span {
  color: #60758a;
  font-size: 12px;
  line-height: 1.5;
}

.customer-content-readiness {
  border-color: #f1c8a0;
  background: #fffaf3;
}

.customer-content-readiness.ready {
  border-color: #b8dfcd;
  background: #f1faf6;
}

.customer-content-readiness > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  align-items: center;
}

.customer-content-readiness > div small,
.customer-content-readiness > div h3,
.customer-content-readiness > div h4 {
  grid-column: 1;
  margin: 0;
}

.customer-content-readiness > div strong {
  grid-column: 2;
  grid-row: 1 / 3;
  color: #b45309;
  font-size: 28px;
}

.customer-content-readiness.ready > div strong {
  color: #0d8061;
}

.customer-content-readiness ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.customer-content-readiness li {
  border: 1px solid #f0d5ba;
  border-radius: 7px;
  background: #ffffff;
  color: #87531f;
  padding: 8px 10px;
}

.dealer-verification-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dealer-verification-grid label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  border: 1px solid #dce7f2;
  border-radius: 8px;
  background: #fbfdff;
  padding: 11px;
}

.dealer-verification-grid label.wide {
  display: grid;
  grid-column: 1 / -1;
}

@media (max-width: 760px) {
  .customer-official-sources,
  .customer-content-readiness ul,
  .dealer-verification-grid {
    grid-template-columns: 1fr;
  }

  .customer-house-layout {
    grid-template-columns: 1fr;
  }

  .customer-house-plan-panel {
    padding: 11px;
  }

  .customer-house-room-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-house-fallback {
    min-height: 220px;
    padding: 13px;
  }

  .customer-house-plan-label {
    position: static;
    display: block;
    border-width: 1px 0 0;
    border-radius: 0;
    padding: 7px 9px;
    text-align: center;
  }

  .customer-design-system-header,
  .customer-design-explanation-grid {
    grid-template-columns: 1fr;
  }

  .customer-design-system-grid {
    grid-template-columns: 1fr;
  }

  .customer-design-system-grid article {
    grid-template-columns: minmax(80px, .35fr) minmax(0, 1fr);
  }

  .customer-design-system-grid article small,
  .customer-design-system-grid article strong {
    grid-column: 1;
  }

  .customer-design-system-grid article h3,
  .customer-design-system-grid article p {
    grid-column: 2;
    grid-row: span 1;
  }

  .customer-design-system-grid h3 {
    min-height: 0;
  }

  .customer-design-room-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-design-room-detail {
    padding: 12px;
  }

  .customer-design-config-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-design-site-focus {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .customer-house-floor-summary h3,
  .customer-house-floor-summary strong {
    font-size: 18px;
  }

  .customer-house-room-list {
    grid-template-columns: 1fr;
  }

  .customer-design-room-tabs,
  .customer-design-config-grid {
    grid-template-columns: 1fr;
  }
}

/* V173: one customer decision module for initial price and annual energy cost. */
.customer-value-decision-section {
  display: grid;
  gap: 16px;
  border-color: #b9d7c8;
  background:
    radial-gradient(circle at 92% 4%, rgba(34, 139, 94, 0.12), transparent 30%),
    linear-gradient(145deg, #ffffff 0%, #f5fbf8 100%);
}

.customer-value-decision-section.reviewing {
  border-color: #efc58f;
  background: #fffaf2;
}

.customer-value-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.customer-value-facts article {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  border: 1px solid #d7e7df;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  padding: 15px;
}

.customer-value-facts small,
.customer-value-basis small,
.customer-value-breakdowns > article > div small {
  color: #477163;
  font-weight: 700;
}

.customer-value-facts strong {
  color: #173b31;
  font-size: clamp(23px, 2.3vw, 34px);
  line-height: 1.15;
}

.customer-value-facts strong em {
  font-size: 14px;
  font-style: normal;
}

.customer-value-facts strong.customer-value-tariff {
  font-size: 17px;
  line-height: 1.45;
}

.customer-value-facts span {
  color: #657a73;
  font-size: 12px;
  line-height: 1.5;
}

.customer-value-breakdowns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.customer-value-breakdowns > article {
  display: grid;
  gap: 12px;
  border: 1px solid #d8e5df;
  border-radius: 12px;
  background: #ffffff;
  padding: 15px;
}

.customer-value-breakdowns > article > div {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
}

.customer-value-breakdowns > article > div b {
  color: #173b31;
  font-size: 20px;
}

.customer-value-breakdowns ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.customer-value-breakdowns li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: 4px 10px;
  align-items: center;
}

.customer-value-breakdowns li p {
  display: flex;
  grid-column: 1 / -1;
  gap: 8px;
  justify-content: space-between;
  margin: 0;
  color: #3c544c;
}

.customer-value-breakdowns li p b {
  color: #213f36;
}

.customer-value-breakdowns li i {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8f0ec;
}

.customer-value-breakdowns li i em {
  display: block;
  min-width: 5px;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #168b61, #54b894);
}

.customer-value-breakdowns > article:nth-child(2) li i em {
  background: linear-gradient(90deg, #1476b8, #65add8);
}

.customer-value-breakdowns li > small {
  color: #708179;
  text-align: right;
}

.customer-value-basis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.customer-value-basis > div {
  display: grid;
  gap: 4px;
  border-left: 3px solid #55aa85;
  background: #edf7f2;
  padding: 11px 12px;
}

.customer-value-basis b {
  color: #24473c;
}

.customer-value-basis span {
  color: #647a72;
  font-size: 12px;
}

.customer-value-boundaries {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.customer-value-boundaries > div {
  border: 1px solid #dce7e2;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  padding: 12px;
}

.customer-value-boundaries h3 {
  margin: 0 0 8px;
  color: #2b5044;
  font-size: 15px;
}

.customer-value-boundaries ul,
.customer-value-review ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: #536b63;
}

.customer-value-source-note {
  margin: 0;
  border-top: 1px solid #d9e7e0;
  color: #637970;
  padding-top: 11px;
  font-size: 12px;
  line-height: 1.65;
}

.customer-value-review {
  border: 1px solid #efcfaa;
  border-radius: 10px;
  background: #ffffff;
  color: #7b4b1f;
  padding: 15px;
}

.customer-value-review b {
  font-size: 17px;
}

@media (max-width: 900px) {
  .customer-value-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .customer-value-breakdowns,
  .customer-value-basis,
  .customer-value-boundaries {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 440px) {
  .customer-value-facts {
    grid-template-columns: 1fr;
  }
}

/* V174: published authorization, dealer capability and real-case evidence. */
.customer-dealer-story-section {
  display: grid;
  gap: 16px;
  border-color: #d2c6a5;
  background:
    radial-gradient(circle at 94% 2%, rgba(190, 150, 65, 0.13), transparent 30%),
    linear-gradient(145deg, #ffffff 0%, #fffaf0 100%);
}

.customer-trust-partial {
  border-color: #ebca91 !important;
  background: #fff7e7 !important;
  color: #8b5b12 !important;
}

.customer-trust-headline {
  margin: -4px 0 0;
  color: #5c5548;
  font-size: 15px;
  line-height: 1.7;
}

.customer-trust-status-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.customer-trust-status-grid article {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
  border: 1px solid #ead6ad;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  padding: 11px;
}

.customer-trust-status-grid article.ready {
  border-color: #b9dbc9;
  background: #f2faf6;
}

.customer-trust-status-grid article.pending {
  border-color: #efc998;
  background: #fff9ef;
}

.customer-trust-status-grid article > div {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  justify-content: space-between;
}

.customer-trust-status-grid b {
  color: #3f4e48;
  font-size: 13px;
}

.customer-trust-status-grid span {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #deeee6;
  color: #267253;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 800;
}

.customer-trust-status-grid .pending span {
  background: #f8e5c6;
  color: #95600d;
}

.customer-trust-status-grid p {
  margin: 0;
  color: #6f746f;
  font-size: 12px;
  line-height: 1.5;
}

.customer-trust-credentials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.customer-trust-credentials > article,
.customer-trust-company-full,
.customer-trust-experience {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  border: 1px solid #dfd6bf;
  border-radius: 12px;
  background: rgba(255, 255, 255, .94);
  padding: 15px;
}

.customer-trust-credentials > article.reviewing,
.customer-trust-company-full.reviewing,
.customer-trust-experience.reviewing {
  border-color: #efc998;
  background: #fffaf2;
}

.customer-trust-card-heading {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.customer-trust-card-heading small,
.customer-trust-experience > div > small,
.customer-trust-case-heading small {
  color: #8c681d;
  font-weight: 800;
  letter-spacing: .04em;
}

.customer-trust-card-heading span {
  border-radius: 999px;
  background: #f1ead9;
  color: #75581c;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
}

.customer-trust-authorization > a,
.customer-trust-business-license > a {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid #e1dccd;
  border-radius: 9px;
  background: #f8f7f4;
}

.customer-trust-authorization img,
.customer-trust-business-license img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}
.customer-trust-business-license > a.is-test-license {
  position: relative;
  display: block;
}
.customer-trust-business-license > a.is-test-license img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56.25%;
  height: auto;
  max-height: none;
  max-width: none;
  object-fit: contain;
  transform: translate(-50%, -50%) rotate(90deg);
  transform-origin: center;
}

.customer-trust-authorization h3,
.customer-trust-business-license h3,
.customer-trust-company h3,
.customer-trust-experience h3,
.customer-trust-case-heading h3 {
  margin: 0;
  color: #333e39;
}

.customer-trust-authorization p,
.customer-trust-company p,
.customer-trust-experience p,
.customer-trust-case-proof p {
  margin: 0;
  color: #626a65;
  line-height: 1.65;
}

.customer-trust-authorization > b {
  color: #795c22;
  font-size: 13px;
}

.customer-trust-authorization > small,
.customer-trust-company > span,
.customer-trust-experience em {
  color: #7c7f7c;
  font-size: 12px;
  font-style: normal;
  line-height: 1.55;
}

.customer-trust-placeholder {
  display: grid;
  min-height: 180px;
  place-items: center;
  border: 1px dashed #d8ba83;
  border-radius: 9px;
  background: #fff8ec;
  color: #8b6728;
}

.customer-trust-company strong {
  color: #75591f;
  font-size: 17px;
  line-height: 1.5;
}

.customer-trust-company-full {
  display: grid;
  align-content: start;
  gap: 12px;
}

.customer-trust-company-summary-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 0;
}

.customer-trust-company-summary-line h3 {
  margin: 0 22px 0 0;
  color: #243b34;
  font-size: 24px;
  line-height: 1.35;
}

.customer-trust-company-summary-line span {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  color: #665f50;
  white-space: nowrap;
}

.customer-trust-company-summary-line span + span::before {
  content: "·";
  margin: 0 15px;
  color: #c39b53;
  font-weight: 900;
}

.customer-trust-company-summary-line small {
  color: #817153;
  font-size: 12px;
}

.customer-trust-company-summary-line b {
  color: #3f4e48;
  font-size: 15px;
}

.customer-trust-company-timeline {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  border-top: 1px solid #eee7d7;
  padding-top: 12px;
}

.customer-trust-company-timeline small {
  color: #8c681d;
  font-size: 12px;
  font-weight: 800;
}

.customer-trust-company-timeline p {
  margin: 0;
  color: #4e5954;
  font-size: 14px;
  line-height: 1.75;
  white-space: pre-line;
}

.customer-trust-experience {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.customer-trust-experience > div:first-child {
  display: grid;
  gap: 7px;
}

.customer-trust-experience-numbers {
  display: flex;
  gap: 8px;
}

.customer-trust-experience-numbers span {
  display: grid;
  min-width: 116px;
  border-radius: 10px;
  background: #f5efe0;
  padding: 12px;
  text-align: center;
}

.customer-trust-experience-numbers b {
  color: #6d511c;
  font-size: 27px;
}

.customer-trust-experience-numbers small {
  color: #746a58;
}

.customer-trust-experience > .customer-service-tags {
  grid-column: 1 / -1;
}

.customer-trust-media-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.customer-trust-media-grid img {
  max-height: 300px;
}

.customer-trust-case-proof {
  display: grid;
  gap: 12px;
  border: 1px solid #c9dccc;
  border-radius: 12px;
  background: #f5faf7;
  padding: 15px;
}

.customer-trust-case-proof.pending {
  border-color: #e7c690;
  background: #fff9ee;
}

.customer-trust-case-heading {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.customer-trust-case-heading > div {
  display: grid;
  gap: 5px;
}

.customer-trust-case-heading > span {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #e4efe8;
  color: #326c50;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

.customer-trust-case-proof.pending .customer-trust-case-heading > span {
  background: #f4e3c4;
  color: #8c5d10;
}

.customer-trust-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.customer-trust-case-grid article {
  overflow: hidden;
  border: 1px solid #d9e5dc;
  border-radius: 9px;
  background: #ffffff;
}

.customer-trust-case-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.customer-trust-case-grid article > div {
  display: grid;
  gap: 6px;
  padding: 11px;
}

.customer-trust-case-grid h4 {
  margin: 0;
  color: #34493e;
}

.customer-trust-case-grid small,
.customer-trust-case-grid span {
  color: #718078;
  font-size: 12px;
}

.customer-trust-case-grid b {
  color: #42624f;
  font-size: 13px;
}

.customer-trust-case-empty {
  display: grid;
  gap: 6px;
  border: 1px dashed #d9b97f;
  border-radius: 9px;
  background: #ffffff;
  color: #76551d;
  padding: 13px;
}

.customer-trust-case-empty span {
  color: #7e7566;
  font-size: 12px;
}

.customer-trust-case-map-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid #d4e4d9;
  border-radius: 11px;
  background: #fff;
  padding: 14px 16px;
}

.customer-trust-case-map-summary strong {
  flex: 0 0 auto;
  color: #176ca8;
  font-size: 34px;
  line-height: 1;
}

.customer-trust-case-map-summary div {
  display: grid;
  gap: 4px;
}

.customer-trust-case-map-summary b {
  color: #34493e;
}

.customer-trust-case-map-embed {
  overflow: hidden;
  border: 1px solid #ccddd2;
  border-radius: 12px;
  background: #fff;
}

.customer-trust-case-map-embed iframe {
  display: block;
  width: 100%;
  height: 560px;
  border: 0;
}

.customer-trust-case-map-embed small {
  display: block;
  border-top: 1px solid #e1ebe4;
  color: #707a74;
  padding: 8px 12px;
  line-height: 1.5;
}

.customer-trust-case-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.customer-trust-case-actions small {
  grid-column: 1 / -1;
  color: #777b77;
  line-height: 1.5;
}

.admin-full-case-test-trigger {
  border-color: #e3a86d !important;
  background: #fff6ed !important;
  color: #a45317 !important;
  font-weight: 800;
}

.admin-full-case-warning {
  margin: 0 0 10px;
  border: 1px solid #efbd86;
  border-radius: 9px;
  background: #fff7ed;
  color: #8b4c18;
  padding: 10px;
  font-size: 12px;
  line-height: 1.55;
}

.admin-full-case-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.admin-full-case-actions button {
  width: 100%;
}

.admin-full-case-list li.has-media {
  border-color: #de9b55;
  background: #fff8ef;
  box-shadow: 0 0 0 2px rgba(222, 155, 85, .12);
}

.public-safe-case-list li {
  gap: 4px;
  border-color: #cfe0f5;
  background: #fbfdff;
}

.public-safe-case-list .case-row b {
  color: #173e6d;
}

.public-safe-case-list .case-row span {
  border-radius: 999px;
  background: #e7f2ff;
  color: #1764a7;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 800;
}

.public-safe-case-list li.active {
  border-color: #1477ea;
  box-shadow: 0 0 0 2px rgba(20, 119, 234, .12);
  background: #f2f8ff;
}

.admin-media-count {
  border-radius: 999px;
  background: #d96d21;
  color: #fff;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 800;
}

.admin-full-case-info .case-info-lines {
  max-height: 260px;
  overflow: auto;
}

.public-case-detail-info {
  width: min(360px, 80vw);
  max-width: min(360px, 80vw);
}

.public-case-point-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #dce7f3;
  padding-bottom: 7px;
}

.public-case-point-head b {
  color: #123b6c;
  font-size: 15px;
  line-height: 1.4;
}

.public-case-point-head span {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #e7f2ff;
  color: #1764a7;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 800;
}

.public-case-detail-scroll {
  max-height: min(540px, 66vh);
  overflow: auto;
  padding-right: 3px;
}

.public-case-detail-card {
  padding-top: 9px;
}

.public-case-detail-card .case-info-head {
  margin-bottom: 3px;
}

.public-case-detail-card .info-photo-empty {
  margin: 2px 0 5px;
}

.public-case-detail-card .case-info-lines {
  display: grid;
  gap: 1px;
  color: #23364e;
}

.info-video-poster {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info-video-button > .info-video-poster-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  padding: 0 8px 22px;
  color: #fff;
  background: linear-gradient(180deg, rgba(16, 34, 56, 0.08), rgba(16, 34, 56, 0.48));
  font-size: 24px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.info-video-button > .info-video-poster-play small {
  position: static;
  padding: 0;
  color: #fff;
  background: transparent;
  font-size: 11px;
  line-height: 1.3;
}

.case-media-expand {
  width: 100%;
  margin: 7px 0 2px;
  border: 1px solid #bfd5ec;
  border-radius: 7px;
  background: #f3f8fd;
  color: #145b98;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.case-media-deferred[hidden] {
  display: none;
}

.public-case-detail-divider {
  margin: 3px 0 8px;
  border-top: 1px dashed #cbd9e8;
  color: #708195;
  padding-top: 8px;
  font-size: 11px;
}

.customer-trust-source-note {
  margin: 0;
  border-top: 1px solid #e4d9be;
  color: #77736a;
  padding-top: 10px;
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 980px) {
  .customer-trust-status-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .public-case-detail-info {
    width: min(300px, 72vw);
    max-width: min(300px, 72vw);
  }

  .public-case-detail-scroll {
    max-height: 58vh;
  }

  .customer-trust-credentials,
  .customer-trust-experience,
  .customer-trust-case-grid {
    grid-template-columns: 1fr;
  }

  .customer-trust-company-summary-line {
    align-items: flex-start;
    gap: 8px 14px;
  }

  .customer-trust-company-summary-line h3 {
    flex: 1 0 100%;
    margin-right: 0;
    font-size: 21px;
  }

  .customer-trust-company-summary-line span + span::before {
    display: none;
  }

  .customer-trust-company-timeline {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .customer-trust-experience-numbers {
    justify-content: stretch;
  }

  .customer-trust-experience-numbers span {
    flex: 1 1 0;
    min-width: 0;
  }
}

@media (max-width: 540px) {
  .customer-trust-status-grid {
    grid-template-columns: 1fr;
  }

  .customer-trust-card-heading,
  .customer-trust-case-heading,
  .customer-trust-case-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .customer-trust-card-heading span,
  .customer-trust-case-heading > span {
    justify-self: start;
  }

  .customer-trust-case-map-summary {
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
  }

  .customer-trust-case-map-summary strong {
    font-size: 28px;
  }

  .customer-trust-case-map-embed iframe {
    height: 460px;
  }
}

/* V175: customer-facing configuration, selection and quote summary book. */
.customer-config-quote-section {
  display: grid;
  gap: 16px;
  background:
    linear-gradient(135deg, rgba(35, 105, 171, 0.05), transparent 34%),
    #fff;
}

/* V176: uploaded-plan-first demand analysis, full system education and unabridged quote book. */
.customer-house-upload-layout {
  grid-template-columns: minmax(0, 1.7fr) minmax(250px, .62fr);
}

.customer-uploaded-plan-list {
  display: grid;
  gap: 18px;
}

.customer-uploaded-plan-card {
  overflow: hidden;
  margin: 0;
  border: 1px solid #ccddeb;
  border-radius: 13px;
  background: #fff;
}

.customer-uploaded-plan-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #dce6ef;
  background: #f5f9fc;
  padding: 12px 15px;
}

.customer-uploaded-plan-heading > div {
  display: grid;
  gap: 3px;
}

.customer-uploaded-plan-heading small,
.customer-uploaded-plan-heading span {
  color: #54718d;
  font-size: 12px;
}

.customer-uploaded-plan-heading h3 {
  margin: 0;
  color: #183d5e;
}

.customer-uploaded-plan-card > img {
  display: block;
  width: 100%;
  max-height: 920px;
  background: #f4f6f8;
  object-fit: contain;
}

.customer-uploaded-plan-card figcaption {
  border-top: 1px solid #e1e8ee;
  background: #f8fafb;
  color: #687986;
  padding: 9px 13px;
  font-size: 12px;
  line-height: 1.55;
}

.customer-uploaded-plan-loading {
  display: grid;
  min-height: 240px;
  place-items: center;
  background: #f5f7f9;
  color: #687986;
  padding: 20px;
  text-align: center;
}

.customer-house-upload-empty {
  min-height: 230px;
}

.customer-market-systems-section,
.customer-climate-demand-section {
  display: grid;
  gap: 15px;
}

.customer-market-systems-section {
  border-color: #b9cfee;
  background:
    radial-gradient(circle at 95% 2%, rgba(33, 104, 190, .09), transparent 28%),
    #fff;
}

.customer-market-systems-section > p {
  margin: 0;
  color: #566b81;
}

.customer-market-system-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #c8d9ec;
  border-radius: 13px;
}

.customer-market-system-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
  color: #273d58;
  font-size: 13px;
}

.customer-market-system-table th,
.customer-market-system-table td {
  border-right: 1px solid #cbd9e8;
  border-bottom: 1px solid #d4e0ec;
  padding: 12px 13px;
  text-align: left;
  vertical-align: top;
}

.customer-market-system-table th:last-child,
.customer-market-system-table td:last-child {
  border-right: 0;
}

.customer-market-system-table th {
  background: #123c8b;
  color: #fff;
  text-align: center;
  font-size: 14px;
}

.customer-market-system-table td:first-child {
  width: 200px;
  color: #164a9a;
  font-size: 15px;
}

.customer-market-system-table td:nth-child(2),
.customer-market-system-table td:nth-child(3) {
  width: 235px;
}

.customer-market-system-table td:nth-child(4) {
  width: 150px;
  text-align: center;
}

.customer-market-system-table td:nth-child(5) {
  width: 220px;
}

.customer-market-system-table ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 18px;
}

.customer-market-system-table tr.selected td {
  background: #eef8f2;
  box-shadow: inset 0 2px #19885c, inset 0 -2px #19885c;
}

.customer-market-system-table tr.selected td:first-child {
  box-shadow: inset 3px 0 #19885c, inset 0 2px #19885c, inset 0 -2px #19885c;
}

.customer-market-system-table td:first-child span {
  display: block;
  width: fit-content;
  margin-top: 7px;
  border-radius: 999px;
  background: #19885c;
  color: #fff;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
}

.customer-climate-demand-section {
  border-color: #b6d5ec;
  background: #f8fbfe;
}

.customer-climate-demand-image {
  display: block;
  width: 100%;
  max-height: 1100px;
  border: 1px solid #cbddeb;
  border-radius: 12px;
  background: #fff;
  object-fit: contain;
}

.customer-climate-demand-facts,
.customer-design-selection-evidence {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.customer-climate-demand-facts span,
.customer-design-selection-evidence span {
  border-left: 3px solid #277fbd;
  background: #edf6fc;
  color: #38566d;
  padding: 10px 12px;
  line-height: 1.55;
}

.customer-design-selection-evidence span {
  border-left-color: #2d936d;
  background: #eef8f4;
  color: #355d4e;
}

.customer-config-overview-table {
  min-width: 1740px !important;
}

.customer-config-wide-table {
  min-width: 1540px !important;
}

.customer-config-detail-table {
  min-width: 1320px !important;
}

.customer-config-detail-table th:nth-child(1) { width: 76px; }
.customer-config-detail-table th:nth-child(2) { width: 210px; }
.customer-config-detail-table th:nth-child(3) { width: 130px; }
.customer-config-detail-table th:nth-child(4) { width: 190px; }
.customer-config-detail-table th:nth-child(5) { width: 60px; }
.customer-config-detail-table th:nth-child(6) { width: 72px; }
.customer-config-detail-table th:nth-child(7),
.customer-config-detail-table th:nth-child(8) { width: 115px; }
.customer-config-detail-table th:nth-child(9) { width: 320px; }

.customer-config-detail-table td:nth-child(2),
.customer-config-detail-table td:nth-child(4),
.customer-config-detail-table td:nth-child(9) {
  text-align: left;
}

@media (max-width: 900px) {
  .customer-house-upload-layout {
    grid-template-columns: 1fr;
  }

  .customer-climate-demand-facts,
  .customer-design-selection-evidence {
    grid-template-columns: 1fr;
  }
}

.customer-config-quote-section.reviewing {
  border-color: #efc98a;
}

/* V184: floor-scoped source plans and floor -> service-layer proposal story. */
.customer-house-floor-story-list {
  display: grid;
  gap: 22px;
}

.customer-functional-area-source-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid #c8dcea;
  border-radius: 12px;
  background: #f6faff;
  color: #49677d;
}
.customer-functional-area-source-summary b { flex: 0 0 auto; color: #155e91; }
.customer-functional-area-source-summary.mode-drawing_partial { border-color: #dfc989; background: #fffaf0; }
.customer-functional-area-source-summary.mode-drawing_partial b { color: #8a5a05; }
.customer-functional-area-source-summary.mode-manual_only { border-color: #a9d6bf; background: #f4fbf7; }
.customer-functional-area-source-summary.mode-manual_only b { color: #18724c; }

.customer-house-floor-story {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(280px, .68fr);
  gap: 16px;
  align-items: stretch;
}

.customer-floor-plan-card {
  min-width: 0;
}

.customer-manual-floor-card {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
  padding: 20px;
  border: 1px solid #bcd8c9;
  border-radius: 15px;
  background: linear-gradient(180deg, #f4fbf7, #fff);
}
.customer-manual-floor-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 13px; border-bottom: 1px solid #d7e8de; }
.customer-manual-floor-heading > div { display: grid; gap: 3px; }
.customer-manual-floor-heading small { color: #38805f; font-weight: 800; }
.customer-manual-floor-heading h3 { margin: 0; color: #174d38; font-size: 24px; }
.customer-manual-floor-heading > span { padding: 5px 9px; border-radius: 999px; background: #e5f5eb; color: #1d704d; font-size: 12px; font-weight: 800; }
.customer-manual-floor-card > p { margin: 0; color: #61766b; line-height: 1.7; }
.customer-manual-room-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.customer-manual-room-grid article { display: grid; gap: 7px; padding: 12px; border: 1px solid #d7e7dd; border-radius: 10px; background: #fff; }
.customer-manual-room-grid article > div { display: flex; justify-content: space-between; gap: 8px; }
.customer-manual-room-grid b { color: #254f3b; }
.customer-manual-room-grid em { color: #0c7960; font-style: normal; font-weight: 900; }
.customer-manual-room-grid span { color: #687b71; font-size: 12px; line-height: 1.5; }

.customer-unmapped-room-notice { display: grid; gap: 9px; padding: 12px; border: 1px solid #e4cf92; border-radius: 11px; background: #fffaf0; }
.customer-unmapped-room-notice > div { display: flex; justify-content: space-between; gap: 10px; color: #855a0b; }
.customer-unmapped-room-notice ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.customer-unmapped-room-notice li { display: grid; grid-template-columns: minmax(90px, 1fr) auto; gap: 2px 8px; padding-top: 7px; border-top: 1px solid #eee0b8; }
.customer-unmapped-room-notice li:first-child { padding-top: 0; border-top: 0; }
.customer-unmapped-room-notice li span { color: #5f4b24; font-weight: 800; }
.customer-unmapped-room-notice li em { color: #a06000; font-style: normal; font-weight: 800; }
.customer-unmapped-room-notice li small { grid-column: 1 / -1; color: #817154; }

.customer-floor-original-plan {
  display: grid;
  min-height: 420px;
  place-items: center;
  overflow: hidden;
  background: #fff;
}

.customer-floor-original-plan svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 760px;
  background: #fff;
}

.customer-floor-plan-labels {
  pointer-events: none;
}

.customer-floor-plan-labels rect {
  fill: rgba(255, 255, 255, .94);
  stroke: #1573b6;
  stroke-width: 1.15;
  vector-effect: non-scaling-stroke;
}

.customer-floor-plan-labels text {
  fill: #0f527f;
  font-size: 10.5px;
  font-weight: 900;
  text-anchor: middle;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, .96);
  stroke-width: 1.2px;
  stroke-linejoin: round;
}

.customer-floor-plan-analysis {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
  padding: 20px;
  border: 1px solid #cfe0ed;
  border-radius: 15px;
  background: linear-gradient(180deg, #f8fbfd, #fff);
}

.customer-floor-analysis-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid #dbe7ef;
}

.customer-floor-analysis-heading small,
.customer-floor-analysis-heading h3 { grid-column: 1; }
.customer-floor-analysis-heading strong,
.customer-floor-analysis-heading span { grid-column: 2; text-align: right; }
.customer-floor-analysis-heading small { color: #1f6fae; font-weight: 800; }
.customer-floor-analysis-heading h3 { margin: 0; color: #173e61; font-size: 22px; }
.customer-floor-analysis-heading strong { grid-row: 1 / span 2; align-self: center; color: #0c7b6f; font-size: 22px; }
.customer-floor-analysis-heading span { color: #6d8193; font-size: 12px; }
.customer-floor-plan-analysis ul { display: grid; gap: 9px; margin: 0; padding-left: 20px; color: #4f667a; line-height: 1.65; }

.customer-floor-room-list {
  display: grid;
  gap: 7px;
}

.customer-floor-room-list span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #d9e5ed;
  border-radius: 8px;
  background: #fff;
  color: #294e69;
}

.customer-floor-room-list em { color: #0d7b70; font-style: normal; font-weight: 800; }

.customer-floor-layer-story,
.customer-system-layer-group {
  display: grid;
  gap: 18px;
}

.customer-manual-system-story { display: grid; gap: 18px; margin-top: 20px; }
.customer-manual-system-floor-list { display: grid; gap: 12px; }
.customer-manual-system-floor-list > article { overflow: hidden; border: 1px solid color-mix(in srgb, var(--cad-layer-color) 25%, #d8e3ea); border-radius: 11px; background: #fff; }
.customer-manual-system-floor-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 13px; background: color-mix(in srgb, var(--cad-layer-color) 7%, #fff); }
.customer-manual-system-floor-heading b { color: #204861; }
.customer-manual-system-floor-heading span { color: #62788a; font-size: 12px; }
.customer-manual-system-floor-list ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.customer-manual-system-floor-list li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 13px; border-top: 1px solid #e6edf1; }
.customer-manual-system-floor-list li > div { display: grid; gap: 3px; }
.customer-manual-system-floor-list li b { color: #274b62; }
.customer-manual-system-floor-list li span { color: #6b7e8c; font-size: 12px; }
.customer-manual-system-floor-list li em { flex: 0 0 auto; color: var(--cad-layer-color); font-style: normal; font-weight: 900; }

.customer-floor-layer-overview,
.customer-system-layer-heading,
.customer-floor-layer-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.customer-floor-layer-overview {
  padding: 4px 2px 0;
}

.customer-floor-layer-overview > div {
  display: grid;
  gap: 3px;
}

.customer-floor-layer-overview small { color: #47708d; }
.customer-floor-layer-overview h3 { margin: 0; color: #173e61; font-size: 22px; }
.customer-floor-layer-overview > span { color: #0b7a70; font-weight: 800; }

.customer-system-layer-group {
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--cad-layer-color) 32%, #cddfeb);
  border-top: 5px solid var(--cad-layer-color);
  border-radius: 16px;
  background: #f8fbfd;
}

.customer-system-layer-heading {
  padding-bottom: 14px;
  border-bottom: 1px solid color-mix(in srgb, var(--cad-layer-color) 24%, #dbe7ef);
}

.customer-system-layer-heading > div { display: flex; align-items: center; gap: 9px; }
.customer-system-layer-heading i { width: 13px; height: 13px; border-radius: 4px; background: var(--cad-layer-color); }
.customer-system-layer-heading h3 { margin: 0; color: #173e61; font-size: 22px; }
.customer-system-layer-heading > span { color: #567085; font-weight: 700; }
.customer-system-floor-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }

.customer-floor-layer-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--cad-layer-color) 32%, #d5e1e9);
  border-radius: 14px;
  background: #fff;
}

.customer-floor-layer-card-heading {
  padding: 11px 14px;
  background: color-mix(in srgb, var(--cad-layer-color) 8%, white);
}

.customer-floor-layer-card-heading > div { display: flex; align-items: center; gap: 8px; }
.customer-floor-layer-card-heading i { width: 11px; height: 11px; border-radius: 3px; background: var(--cad-layer-color); }
.customer-floor-layer-card-heading b { color: #183e5e; font-size: 17px; }
.customer-floor-layer-card-heading span { color: #567085; font-size: 12px; }
.customer-floor-layer-canvas { display: grid; min-height: 360px; place-items: center; overflow: hidden; background: #fff; }
.customer-floor-layer-canvas svg { display: block; width: 100%; height: auto; max-height: 900px; background: #fff; }
.customer-floor-layer-canvas .customer-cad-zone-layer polygon { fill-opacity: .13; stroke-width: 1.15; }
.customer-floor-layer-card > p { margin: 0; padding: 10px 14px; border-top: 1px solid #e0e8ee; color: #657886; font-size: 12px; line-height: 1.6; }
.customer-floor-layer-equipment g g .equipment-body { fill: rgba(255, 241, 232, .96); stroke: #f04b23; stroke-width: 1.15; vector-effect: non-scaling-stroke; }
.customer-floor-layer-equipment g g circle:not(.equipment-body),
.customer-floor-layer-equipment g g rect:not(.equipment-body),
.customer-floor-layer-equipment g g line,
.customer-floor-layer-equipment g g path { fill: none; stroke: #f04b23; stroke-width: .9; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.customer-floor-layer-equipment > g > text { fill: #bd3d1c; font-size: 4.5px; font-weight: 900; text-anchor: middle; paint-order: stroke; stroke: #fff; stroke-width: 1px; stroke-linejoin: round; }

@media (max-width: 900px) {
  .customer-house-floor-story { grid-template-columns: 1fr; }
  .customer-functional-area-source-summary { align-items: flex-start; flex-direction: column; }
  .customer-manual-room-grid { grid-template-columns: 1fr; }
  .customer-floor-original-plan { min-height: 280px; }
  .customer-floor-layer-canvas { min-height: 320px; }
  .customer-system-floor-grid { grid-template-columns: 1fr; }
  .customer-floor-layer-overview,
  .customer-system-layer-heading,
  .customer-floor-layer-card-heading { align-items: flex-start; flex-direction: column; }
}

.customer-config-quote-intro,
.customer-trust-number-notice {
  margin: 0;
  color: #5d6d82;
  line-height: 1.75;
}

.customer-trust-number-notice {
  grid-column: 1 / -1;
  padding: 10px 12px;
  border: 1px solid #ead5a8;
  border-radius: 10px;
  background: #fffaf0;
  color: #805f24;
}

.customer-config-sheet {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d7e2ed;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(28, 57, 88, 0.05);
}

.customer-config-sheet-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #dbe5ef;
  background: #f7fafc;
}

.customer-config-sheet-heading > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.customer-config-sheet-heading small {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  background: #2369ab;
  color: #fff;
  font-weight: 800;
}

.customer-config-sheet-heading h3 {
  margin: 0;
  color: #1a2b42;
  font-size: 18px;
}
.customer-config-quote-summary .customer-config-sheet-heading h3 { font-size: 22px; }
.customer-config-quote-summary .customer-config-sheet-heading small {
  width: 36px;
  height: 36px;
  font-size: 17px;
}
.customer-config-quote-summary .customer-config-sheet-heading > span { font-size: 15px; }
.customer-config-quote-summary .customer-config-table-scroll table { font-size: 16px; }
.customer-config-quote-summary .customer-config-table-scroll th,
.customer-config-quote-summary .customer-config-table-scroll td {
  padding: 13px 12px;
  line-height: 1.45;
}
.customer-config-quote-summary .customer-config-total-row td { font-size: 17px; }

.customer-config-sheet-heading > span {
  color: #315b7d;
  font-size: 13px;
  font-weight: 700;
}

.customer-config-table-scroll {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.customer-config-table-scroll table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  color: #24364d;
  font-size: 13px;
}

.customer-config-quote-summary .customer-config-table-scroll table {
  min-width: 520px;
}

.customer-config-table-scroll th,
.customer-config-table-scroll td {
  padding: 11px 12px;
  border-right: 1px solid #dce4ec;
  border-bottom: 1px solid #dce4ec;
  text-align: center;
  vertical-align: middle;
  white-space: normal;
}

.customer-config-table-scroll th:last-child,
.customer-config-table-scroll td:last-child {
  border-right: 0;
}

.customer-config-table-scroll tbody tr:last-child td {
  border-bottom: 0;
}

.customer-config-table-scroll th {
  background: #e8eef4;
  color: #20354c;
  font-weight: 800;
}

.customer-config-table-scroll th.cooling { background: #cfe5f7; }
.customer-config-table-scroll th.heating { background: #f7d9c1; }
.customer-config-table-scroll th.air { background: #d7eac9; }
.customer-config-table-scroll th.humidity { background: #f8e7a9; }

.customer-config-table-scroll tbody tr:nth-child(even) td {
  background: #fafbfd;
}

.customer-config-total-row td {
  background: #edf4fa !important;
  color: #173b5c;
  font-weight: 900;
}

.customer-config-sheet-total,
.customer-config-quote-summary > p {
  margin: 0;
  padding: 10px 16px;
  border-top: 1px solid #dbe5ef;
  background: #f8fbfd;
  color: #556a80;
  font-size: 13px;
}

.customer-case-map-maintenance {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 11px;
  border: 1px solid #ead5a8;
  border-radius: 999px;
  background: #fffaf0;
  color: #805f24;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 760px) {
  .customer-long-image-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 6px;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    touch-action: pan-x pan-y;
  }

  .customer-long-image-scroll::before {
    content: "左右滑动查看图片文字";
    position: sticky;
    left: 0;
    z-index: 2;
    display: block;
    width: fit-content;
    margin: 0 0 8px;
    border: 1px solid #c9dced;
    border-radius: 999px;
    background: #f4f9fd;
    color: #315b7d;
    padding: 6px 9px;
    font-size: 11px;
    font-weight: 700;
  }

  .customer-brand-image-scroll .customer-brand-introduction-image,
  .customer-product-image-scroll > img {
    width: 640px;
    min-width: 640px;
    max-width: none;
  }

  .customer-market-image-scroll .customer-market-system-image {
    width: 720px;
    min-width: 720px;
    max-width: none;
  }

  .customer-climate-image-scroll .customer-climate-demand-image {
    width: 900px;
    min-width: 900px;
    max-width: none;
  }

  .customer-config-sheet-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .customer-config-table-scroll table {
    min-width: 760px;
    font-size: 12px;
  }

  .customer-config-quote-summary .customer-config-table-scroll table {
    min-width: 480px;
    font-size: 14px;
  }

  .customer-config-table-scroll th,
  .customer-config-table-scroll td {
    padding: 10px 9px;
  }
}

/* Keep V177 fit-to-page rules last so legacy mobile minimum widths cannot re-enable scrolling. */
.customer-config-quote-section .customer-config-table-scroll,
.customer-config-quote-section .customer-config-table-scroll table,
.customer-config-quote-section .customer-config-quote-summary .customer-config-table-scroll table {
  min-width: 0 !important;
  max-width: 100%;
}

.customer-config-quote-section .customer-config-table-scroll {
  overflow-x: visible !important;
}

.customer-config-quote-section .customer-config-table-scroll table {
  width: 100%;
  table-layout: fixed;
}

@media (max-width: 760px) {
  .customer-config-quote-section .customer-config-table-scroll table {
    min-width: 0 !important;
    font-size: 7px;
  }

  .customer-config-quote-section .customer-config-table-scroll th,
  .customer-config-quote-section .customer-config-table-scroll td {
    padding: 3px 2px;
  }
}

/* V229 case-location deduplication and review workspace. */
.case-location-maintenance-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.case-location-panel-head,
.case-location-editor-head,
.case-location-actions,
.case-location-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.case-location-panel-head h2,
.case-location-editor-head h3,
.case-location-members h3 { margin: 0; }

.case-location-panel-head p,
.case-location-editor-head small { margin: 3px 0 0; color: #64748b; }

.case-location-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.case-location-summary-grid span {
  display: grid;
  gap: 2px;
  padding: 9px;
  border: 1px solid #d7e4f3;
  border-radius: 10px;
  background: #f7fbff;
}

.case-location-summary-grid b { font-size: 20px; color: #0b4f91; }
.case-location-summary-grid small { color: #64748b; }
.case-location-summary-grid .pending { border-color: #f1c27d; background: #fff8ed; }
.case-location-summary-grid .pending b { color: #a85b00; }
.case-location-summary-grid .locked { border-color: #9fd8c2; background: #effaf5; }
.case-location-summary-grid .locked b { color: #087653; }

.case-location-publication-rule {
  margin: 0;
  padding: 9px 11px;
  border-left: 3px solid #1477ea;
  background: #f1f7ff;
  color: #36536f;
  font-size: 13px;
}

.case-location-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.case-location-filters input { grid-column: 1 / -1; }
.case-location-legend { justify-content: flex-start; flex-wrap: wrap; font-size: 12px; }
.case-location-legend span { padding: 4px 8px; border-radius: 999px; background: #edf2f7; }
.case-location-legend .auto { color: #0b5db4; }
.case-location-legend .pending { color: #a85b00; }
.case-location-legend .locked { color: #087653; }
.case-location-list { max-height: 360px; min-height: 160px; }

.case-location-editor {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #b8cee6;
  border-radius: 12px;
  background: #fbfdff;
}

.case-location-editor label,
.case-location-merge label { display: grid; gap: 5px; color: #334e68; font-size: 13px; }

.case-location-editor input,
.case-location-editor select,
.case-location-editor textarea,
.case-location-filters input,
.case-location-filters select,
.case-location-merge select { width: 100%; box-sizing: border-box; }

.case-location-coordinate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.case-location-merge {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
  padding: 10px;
  border: 1px dashed #e4a044;
  border-radius: 10px;
  background: #fff9f0;
}

.case-location-members { display: grid; gap: 7px; }
.case-location-members article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 8px;
  padding: 8px;
  border: 1px solid #e1e9f2;
  border-radius: 8px;
  background: #fff;
}
.case-location-members article span,
.case-location-members article small { grid-column: 1 / -1; overflow-wrap: anywhere; }
.case-location-maintenance-info .case-info-lines { max-height: 280px; overflow: auto; }

@media (max-width: 760px) {
  .case-location-summary-grid,
  .case-location-coordinate-grid,
  .case-location-filters,
  .case-location-merge { grid-template-columns: 1fr; }
  .case-location-filters input { grid-column: auto; }
}

/* v240: normalized public-case consent ledger */
.case-consent-ledger {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid #bdd8ef;
  border-radius: 14px;
  background: #f7fbff;
}

.case-consent-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.case-consent-head h3,
.case-consent-head p { margin: 0; }
.case-consent-head p { margin-top: 5px; color: #5e7489; line-height: 1.55; }
.case-consent-head > span { flex: 0 0 auto; color: #0b5cad; font-weight: 700; }
.case-consent-form textarea { width: 100%; box-sizing: border-box; }

.case-consent-scopes {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 14px;
}

.case-consent-scopes label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.case-consent-history {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.case-consent-history article {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 1px solid #d5e2ed;
  border-radius: 10px;
  background: #fff;
}

.case-consent-history article > div { display: grid; gap: 4px; min-width: 0; }
.case-consent-history span,
.case-consent-history small,
.case-consent-history p { color: #60758a; overflow-wrap: anywhere; }
.case-consent-history p { margin: 2px 0 0; }
.case-consent-history em { color: #9a5b00; font-style: normal; font-weight: 700; }
.case-consent-history article.granted { border-color: #a9d8c0; background: #f5fcf8; }

@media (max-width: 760px) {
  .case-consent-head,
  .case-consent-history article { flex-direction: column; }
  .case-consent-history article button { width: 100%; }
}

/* v246: on-demand VR, explicit map configuration failures and WeChat landscape help. */
html.customer-vr-fullscreen-open,
html.customer-vr-fullscreen-open body {
  overflow: hidden;
}

.customer-vr-card:not(.is-loaded) {
  grid-template-rows: auto minmax(220px, 1fr);
}

.customer-vr-launch {
  width: 100%;
  min-height: 220px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 10px;
  background: rgba(3, 27, 50, .28);
  color: #fff;
}

.customer-vr-launch b {
  font-size: 18px;
}

.customer-vr-frame-wrap {
  position: relative;
  min-height: 360px;
}

.customer-vr-frame-wrap iframe {
  position: relative;
  z-index: 1;
}

.customer-vr-loading {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #0b3558;
  color: #fff;
  font-weight: 800;
}

.customer-vr-card.is-expanded .customer-vr-frame-wrap {
  min-height: 0;
}

.customer-rich-media-row > :only-child {
  grid-column: 1 / -1;
}

.cases-embed-mode .case-map-stage .mobile-map-message {
  position: absolute;
  z-index: 900;
  top: 50%;
  left: 50%;
  display: block;
  width: min(560px, calc(100% - 32px));
  box-sizing: border-box;
  margin: 0;
  transform: translate(-50%, -50%);
  border: 1px solid #e7bd72;
  border-radius: 12px;
  background: rgba(255, 251, 240, .97);
  box-shadow: 0 12px 34px rgba(35, 54, 76, .16);
  color: #7a5200;
  padding: 15px 18px;
  text-align: center;
  line-height: 1.6;
}

.customer-landscape-trigger {
  display: none;
}

.customer-landscape-mask {
  z-index: 1300;
}

.customer-landscape-dialog {
  width: min(420px, calc(100vw - 32px));
  box-sizing: border-box;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 56px rgba(12, 39, 66, .28);
  padding: 20px;
}

.customer-landscape-dialog h3,
.customer-landscape-dialog p {
  margin: 0 0 10px;
}

.customer-landscape-dialog ol {
  margin: 0 0 16px;
  color: #536b82;
  padding-left: 22px;
  line-height: 1.75;
}

.customer-landscape-dialog button {
  width: 100%;
}

@media (max-width: 820px) {
  .customer-landscape-trigger {
    display: block;
    min-width: 82px;
  }

  .customer-share-fixed-cta.quote-only {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .customer-share-fixed-cta:not(.quote-only) {
    grid-template-columns: 1.15fr .9fr auto;
  }

  .customer-vr-card {
    min-height: 0;
  }

  .customer-vr-launch {
    min-height: 150px;
  }

  .customer-vr-frame-wrap,
  .customer-vr-card iframe {
    min-height: 300px;
  }
}

@media (max-width: 920px) and (orientation: landscape) {
  #app > div.customer-share-page {
    padding-bottom: max(72px, env(safe-area-inset-bottom));
  }

  .customer-share-shell {
    width: min(100%, 1440px);
    max-width: none;
  }

  .customer-share-fixed-cta {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(8px, env(safe-area-inset-bottom));
    left: auto;
    width: auto;
    transform: none;
  }
}

/* v317: official proposal logo, quote template defaults and consultant WeChat QR editor. */
.customer-authorization-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.customer-authorization-logos {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.customer-authorization-logos img {
  display: block;
  width: 108px;
  max-width: 108px;
  height: auto;
  max-height: 52px;
  object-fit: contain;
}

.quote-module-default-grid {
  display: grid;
  gap: 12px;
}

.quote-module-default-row {
  display: grid;
  grid-template-columns: minmax(160px, 0.65fr) minmax(190px, 0.9fr) minmax(260px, 1.45fr);
  align-items: start;
  gap: 12px;
  padding: 14px;
  border: 1px solid #cbdceb;
  border-radius: 12px;
  background: #fbfdff;
}

.dealer-profile-edit-grid .quote-module-default-row {
  grid-template-columns: minmax(130px, 0.55fr) minmax(170px, 0.8fr) minmax(170px, 0.8fr) minmax(240px, 1.4fr);
}

.quote-module-default-title,
.quote-module-manufacturer-default {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.quote-module-default-title small,
.quote-module-manufacturer-default small {
  color: #687b91;
}

.quote-module-manufacturer-default {
  padding: 10px 12px;
  border: 1px dashed #b8cde2;
  border-radius: 9px;
  background: #f3f8fd;
}

.quote-module-manufacturer-default span {
  color: #526a82;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.quote-module-default-row label {
  display: grid;
  gap: 6px;
}

.dealer-wechat-qr-field {
  display: grid;
  gap: 8px;
  align-content: start;
}

.dealer-wechat-qr-url {
  display: grid;
  gap: 6px;
}

.dealer-wechat-upload-button {
  width: fit-content;
  margin-top: 2px;
  border-color: #9fc5ee;
  color: #0b5cad;
  font-weight: 700;
  background: #f7fbff;
}

.dealer-wechat-upload-button:hover {
  border-color: #4c92d1;
  background: #eef7ff;
}

.dealer-wechat-upload-button:has(input:disabled) {
  opacity: 0.55;
  cursor: wait;
}

.dealer-wechat-qr-field > img {
  display: block;
  width: 180px;
  max-width: 100%;
  aspect-ratio: 1;
  margin-top: 10px;
  padding: 8px;
  border: 1px solid #d3ddd8;
  border-radius: 12px;
  background: #fff;
  object-fit: contain;
}

.dealer-wechat-qr-field > button {
  width: fit-content;
  margin-top: 8px;
}

@media (max-width: 900px) {
  .quote-module-default-row,
  .dealer-profile-edit-grid .quote-module-default-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .customer-authorization-logos img {
    width: 92px;
    max-width: 92px;
    max-height: 44px;
  }
}
