.brand-wordmark small b {
  color: #547079;
  font-size: .76em;
  font-weight: 750;
  letter-spacing: .05em;
}

.brand-wordmark small {
  font-size: 10px;
  letter-spacing: .2em;
  white-space: nowrap;
}

.company-return {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: .45rem .8rem;
  border: 1px solid rgba(28, 56, 66, .14);
  border-radius: 999px;
  color: #31525c;
  text-decoration: none;
  font-size: .72rem;
  font-weight: 800;
}

.service-switcher .tab.active {
  color: #fff;
}

.service-switcher .tab.active .tab-copy small {
  color: rgba(239, 248, 245, .7);
}

.service-switcher .tab.active .tab-arrow {
  color: #8fd0c0;
}

.profile-form-card,
.chat-workspace {
  font-family: "Avenir Next", "Segoe UI Variable Text", "Segoe UI", "PingFang SC", "Microsoft YaHei UI", sans-serif;
}

.profile-form-card,
.proposal-form-card {
  gap: 17px;
}

.panel-description {
  font-size: 16px;
}

.stage-guidance h3,
.proposal-guide h3 {
  font-size: 25px;
}

.stage-guidance > p:last-of-type,
.proposal-guide-note {
  font-size: 15px;
}

.guidance-points li,
.proposal-guide li strong {
  font-size: 14px;
}

.proposal-guide li small {
  font-size: 13px;
}

.form-section-heading strong {
  font-size: 17px;
}

.form-section-heading small {
  font-size: 13px;
}

.explore-skip-button {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 18px;
  min-height: 74px;
  padding: 14px 18px;
  text-align: left;
  border-color: rgba(201, 139, 43, .28);
  background: #fbf6e9;
}

.explore-skip-button strong {
  color: var(--product-ink);
  font-size: 16px;
  font-weight: 750;
}

.explore-skip-button small {
  color: #7b7464;
  font-size: 12px;
  line-height: 1.45;
}

.explore-skip-button > span {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--toc-gold);
  font-size: 24px;
}

.explore-skip-button:hover {
  border-color: rgba(201, 139, 43, .55);
  background: #fff9ed;
}

.mode-divider {
  margin-block: 2px;
  font-size: 12px;
  letter-spacing: .035em;
  text-transform: none;
}

.profile-form-card label > span,
.proposal-form-card label > span {
  font-size: 14px;
  font-weight: 680;
}

.profile-form-card input,
.profile-form-card select,
.proposal-form-card input,
.proposal-form-card select {
  height: 52px;
  padding-inline: 14px;
  font-size: 16px;
}

.proposal-form-card textarea {
  padding: 13px 14px;
  font-size: 16px;
  line-height: 1.55;
}

.profile-form-card .optional-fields summary,
.profile-form-card .consent span,
.proposal-form-card .optional-fields summary,
.proposal-form-card .consent span {
  font-size: 14px;
}

.profile-form-card .primary-button,
.proposal-form-card .primary-button {
  min-height: 54px;
  font-size: 15px;
}

.assistant-avatar {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  font-size: 19px;
}

.assistant-identity strong {
  font-size: 17px;
}

.assistant-identity > div > span,
.chat-workspace-header > p {
  font-size: 13.5px;
}

.chat-mode-badge {
  font-size: 10.5px;
}

.conversation-label > span {
  font-size: 16px;
}

.conversation-label small {
  font-size: 13px;
}

.message {
  width: min(84%, 620px);
  padding: 17px 20px;
  border-color: rgba(22, 51, 48, .1);
  border-radius: 7px 19px 19px 19px;
  background: rgba(255, 255, 253, .98);
  box-shadow: 0 8px 24px rgba(22, 51, 48, .065);
}

.message.user {
  margin-inline-start: auto;
  margin-inline-end: 0;
  border-color: rgba(7, 91, 83, .13);
  border-radius: 19px 7px 19px 19px;
  background: #dceee8;
  box-shadow: 0 8px 22px rgba(7, 91, 83, .075);
}

.message span {
  font-size: 12.5px;
}

.message p {
  margin-top: 8px;
  color: #203d38;
  font-size: 18px;
  line-height: 1.72;
  letter-spacing: -.006em;
}

.prompt-starter > span {
  font-size: 12px;
}

.prompt-chips button {
  min-height: 50px;
  padding: 11px 14px;
  border-radius: 13px;
  font-size: 15px;
  text-align: start;
}

.chat-compose {
  padding: 9px 9px 9px 13px;
  border-color: rgba(22, 51, 48, .17);
  border-radius: 19px;
  box-shadow: 0 12px 34px rgba(22, 51, 48, .085);
}

.chat-compose textarea {
  min-height: 66px;
  padding: 12px;
  font-size: 17px;
  line-height: 1.58;
}

.chat-compose button {
  min-width: 106px;
  height: 58px;
  border-radius: 14px;
  font-size: 15px;
}

.conversation-warning,
.status-message {
  font-size: 12.5px;
}

.brief-pane-heading h3 {
  font-size: 23px;
}

.live-indicator {
  font-size: 11px;
}

.brief-empty-state strong,
.intake-chip strong,
.handoff-card strong {
  font-size: 15px;
}

.brief-empty-state p,
.intake-working-brief,
.intake-review-section p,
.handoff-card p {
  font-size: 13px;
}

.intake-chip span,
.intake-review-label,
.intake-missing-list span {
  font-size: 11px;
}

.handoff-card .followup-submit {
  min-height: 46px;
  font-size: 13px;
}

.chat-workspace {
  border-color: rgba(22, 51, 48, .12);
  border-radius: 26px;
  box-shadow: 0 24px 70px rgba(20, 46, 43, .09);
}

.chat-workspace-header {
  background: linear-gradient(135deg, #fffefa, #f4f8f5);
}

.conversation-pane {
  background: #fffefa;
}

.chat-log {
  border: 1px solid rgba(22, 51, 48, .065);
  background:
    radial-gradient(circle at 12% 0%, rgba(201, 139, 43, .07), transparent 16rem),
    linear-gradient(180deg, #f7f5ef, #f2f5f1);
  background-size: auto;
}

.conversation-label > span {
  font-size: 17px;
}

.conversation-label small {
  max-width: 46ch;
  font-size: 13.5px;
  line-height: 1.45;
}

.prompt-starter > span {
  font-size: 12.5px;
}

.chat-workspace:not(.submission-preview-open) .chat-grid {
  display: block;
}

.chat-workspace:not(.submission-preview-open) .conversation-pane {
  border-right: 0;
}

.submission-prompt {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(10, 106, 97, .16);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(231, 242, 238, .92), rgba(255, 253, 248, .96));
}

.submission-prompt > div {
  display: grid;
  gap: 4px;
}

.submission-prompt strong {
  color: var(--product-ink);
  font-size: 15px;
}

.submission-prompt p {
  max-width: 58ch;
  margin: 0;
  color: var(--product-muted);
  font-size: 13px;
  line-height: 1.55;
}

.submission-prompt button {
  flex: none;
  min-height: 44px;
  padding-inline: 17px;
}

.submission-preview-pane {
  gap: 18px;
  background: linear-gradient(180deg, #f7f8f5, #f2f5f1);
}

.preview-editable-label {
  padding: 5px 9px;
  border: 1px solid rgba(10, 106, 97, .18);
  border-radius: 999px;
  color: var(--product-teal-deep);
  background: rgba(231, 242, 238, .88);
  font-size: 11px;
  font-weight: 700;
}

.submission-preview-copy,
.submission-brief-hint {
  margin: 0;
  color: var(--product-muted);
  font-size: 13px;
  line-height: 1.65;
}

.submission-preview-field {
  display: grid;
  gap: 8px;
}

.submission-preview-field > span {
  color: var(--product-ink);
  font-size: 13px;
  font-weight: 700;
}

.submission-preview-field textarea {
  min-height: 250px;
  resize: vertical;
  border-color: rgba(22, 51, 48, .18);
  border-radius: 14px;
  color: #29443f;
  background: #fffefa;
  font-size: 15px;
  line-height: 1.65;
}

.submission-preview-field textarea:focus {
  border-color: var(--product-teal);
  box-shadow: 0 0 0 3px rgba(10, 106, 97, .1);
}

.submission-preview-field textarea:disabled {
  color: #52645f;
  background: #edf1ed;
  opacity: 1;
}

.submission-brief-hint {
  padding: 11px 12px;
  border-left: 3px solid rgba(10, 106, 97, .34);
  background: rgba(255, 255, 255, .62);
  font-size: 12px;
}

.submission-preview-actions {
  display: grid;
  grid-template-columns: auto minmax(170px, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: auto;
}

.submission-preview-actions .text-button {
  min-height: 44px;
  padding-inline: 8px;
}

.submission-preview-actions .followup-submit {
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--product-teal);
  font-size: 13px;
  font-weight: 700;
}

.submission-preview-actions .followup-submit:hover {
  background: var(--product-teal-deep);
}

.submission-preview-actions .followup-submit:disabled {
  color: var(--product-teal-deep);
  background: #cfdfda;
}

html[dir="rtl"] body {
  font-family: Tahoma, "Segoe UI", "Noto Sans Arabic", Arial, sans-serif;
}

html[dir="rtl"] .brand,
html[dir="rtl"] .footer-product,
html[dir="rtl"] .footer-company,
html[dir="rtl"] .tracking-code,
html[dir="rtl"] .ai-tracking-area,
html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[name="contact_value"],
html[dir="rtl"] input[name="tracking_access"] {
  direction: ltr;
}

html[dir="rtl"] .desk-close {
  right: auto;
  left: 16px;
}

html[dir="rtl"] .service-switcher {
  padding-right: 24px;
  padding-left: 72px;
}

html[dir="rtl"] .tab-arrow,
html[dir="rtl"] .hero-primary > span[aria-hidden="true"],
html[dir="rtl"] .explore-skip-button > span {
  transform: rotate(180deg);
}

html[dir="rtl"] .chat-workspace-header > p,
html[dir="rtl"] .conversation-label small {
  text-align: left;
}

html[dir="rtl"] .conversation-pane {
  border-right: 0;
  border-left: 1px solid var(--product-line);
}

html[dir="rtl"] .chat-workspace.explore-mode .conversation-pane {
  border-left: 0;
}

html[dir="rtl"] .chat-workspace:not(.submission-preview-open) .conversation-pane {
  border-left: 0;
}

html[dir="rtl"] .message {
  border-radius: 19px 7px 19px 19px;
}

html[dir="rtl"] .message.user {
  margin-left: 0;
  border-radius: 7px 19px 19px 19px;
}

html[dir="rtl"] .submission-brief-hint {
  border-right: 3px solid rgba(10, 106, 97, .34);
  border-left: 0;
}

html[dir="rtl"] .explore-skip-button,
html[dir="rtl"] .prompt-chips button,
html[dir="rtl"] input,
html[dir="rtl"] select,
html[dir="rtl"] textarea {
  text-align: right;
}

html[dir="rtl"] input[name="contact_value"],
html[dir="rtl"] input[name="tracking_access"] {
  text-align: left;
}

/* Chinese needs its own rhythm: the English display scale creates orphaned
   characters and overly airy labels when applied unchanged to CJK copy. */
html[lang="zh-CN"] .toc-hero h1,
html[lang="zh-CN"] .toc-hero .intro-main h1 {
  max-width: 9.4em;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: clamp(58px, 4.9vw, 72px);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -.025em;
  line-break: strict;
  text-wrap: balance;
}

html[lang="zh-CN"] .toc-hero .eyebrow {
  letter-spacing: .08em;
}

html[lang="zh-CN"] .toc-hero .intro-copy {
  max-width: 38em;
  line-height: 1.72;
  text-wrap: pretty;
}

html[lang="zh-CN"] .home-tracking-card::before {
  content: "安全项目查询";
  letter-spacing: .1em;
}

html[lang="zh-CN"] .home-tracking-card h2 {
  font-family: var(--product-display-font);
  font-weight: 720;
  letter-spacing: -.015em;
}

html[lang="zh-CN"] .tab-copy strong,
html[lang="zh-CN"] .panel-heading-rich h2,
html[lang="zh-CN"] .stage-guidance h3,
html[lang="zh-CN"] .proposal-guide h3 {
  letter-spacing: -.015em;
}

html[lang="zh-CN"] .tab-copy small,
html[lang="zh-CN"] .panel-description,
html[lang="zh-CN"] .stage-guidance > p,
html[lang="zh-CN"] .proposal-guide-note {
  line-height: 1.65;
}

/* Desktop refinement for the merged SupplyLand surface. The original Amana
   flow, guidance columns and mobile layout stay owned by the core styles. */
@media (min-width: 1021px) {
  .site-header,
  .page-shell {
    width: min(1180px, calc(100% - 72px));
  }

  .site-header {
    height: 88px;
  }

  .company-return {
    min-height: 40px;
    padding-inline: 1rem;
    background: rgba(255, 253, 248, .58);
  }

  .page-shell {
    height: calc(100svh - 88px);
    min-height: 690px;
  }

  .toc-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.32fr) minmax(360px, .68fr);
    grid-template-rows: 1fr auto;
    column-gap: clamp(64px, 8vw, 124px);
    align-items: center;
    padding: clamp(46px, 7vh, 76px) 0 28px;
  }

  .toc-hero .intro-main {
    align-self: center;
  }

  .toc-hero .eyebrow {
    margin-bottom: 28px;
  }

  .toc-hero h1,
  .toc-hero .intro-main h1 {
    max-width: 720px;
    font-size: clamp(64px, 5.8vw, 88px);
  }

  .toc-hero .intro-copy {
    max-width: 650px;
    margin-top: 28px;
    font-size: 20px;
  }

  .hero-actions {
    max-width: 620px;
    margin-top: 36px;
  }

  .hero-primary {
    min-height: 64px;
  }

  .toc-hero .trust-list {
    max-width: 620px;
    justify-content: start;
    margin-top: 26px;
  }

  .toc-hero .trust-list li {
    padding-inline: 19px;
  }

  .toc-hero .trust-list li:first-child {
    padding-left: 0;
  }

  .home-tracking-card {
    align-self: center;
    margin: 0;
    padding: 32px;
    border-radius: 22px;
    background: rgba(255, 253, 248, .9);
    box-shadow: 0 24px 70px rgba(7, 63, 55, .08);
  }

  .home-tracking-card::before {
    content: "SECURE PROJECT ACCESS";
    display: block;
    margin-bottom: 14px;
    color: var(--toc-gold);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .15em;
  }

  .home-tracking-card h2 {
    margin-bottom: 22px;
    font-family: var(--toc-serif);
    font-size: 30px;
    font-weight: 500;
    letter-spacing: -.025em;
  }

  .home-tracking-form {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tracking-card-action {
    color: #fff;
    background: var(--toc-green);
  }

  .tracking-card-action:hover {
    border-color: var(--toc-green-deep);
    background: var(--toc-green-deep);
  }

  .hero-footnote {
    grid-column: 1 / -1;
    margin: 0;
    padding-top: 18px;
    border-top: 1px solid var(--toc-line);
  }

  .desk {
    padding-bottom: 48px;
  }

  .service-switcher {
    grid-template-columns: repeat(2, minmax(0, 430px));
    justify-content: center;
    gap: 10px;
    min-height: 92px;
    padding: 10px 84px 10px 24px;
    background: rgba(247, 249, 247, .94);
    backdrop-filter: blur(18px);
  }

  .service-switcher .tab {
    min-height: 70px;
    padding: 10px 14px;
  }

  .panel {
    width: min(1180px, calc(100% - 72px));
    margin: 28px auto 0;
    padding: 38px 0 48px;
  }

  .panel-heading-rich {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
  }

  .panel-heading-rich > div:first-child {
    flex: 1 1 auto;
    min-width: 0;
  }

  .panel-heading-rich h2 {
    font-size: 36px;
  }

  .intake-start-layout,
  .proposal-layout {
    grid-template-columns: minmax(300px, .68fr) minmax(0, 1.45fr);
    gap: 22px;
  }

  .stage-guidance,
  .proposal-guide {
    padding: 36px;
  }

  .profile-form-card,
  .proposal-form-card {
    padding: 32px 34px;
  }

  .chat-workspace-header {
    min-height: 98px;
    padding: 22px 28px;
  }

  .chat-grid {
    grid-template-columns: minmax(0, 1.42fr) minmax(370px, .78fr);
  }

  .conversation-pane,
  .brief-pane {
    padding: 30px;
  }

  .chat-log {
    height: 490px;
    min-height: 410px;
    padding: 30px 26px;
  }

  .chat-workspace.explore-mode .chat-log {
    height: 520px;
  }

  .chat-workspace:not(.submission-preview-open) .chat-log {
    height: 520px;
  }

  html[dir="rtl"] .service-switcher {
    padding: 10px 24px 10px 84px;
  }
}

@media (max-width: 560px) {
  .brand-wordmark strong {
    font-size: 15px;
    letter-spacing: .17em;
  }

  .brand-wordmark small {
    font-size: 7.5px;
    letter-spacing: .16em;
  }

  .brand-wordmark small b {
    display: block;
    margin-top: .16rem;
    font-size: .82em;
    letter-spacing: .045em;
  }

  .company-return {
    display: none;
  }

  .explore-skip-button {
    min-height: 70px;
    padding: 12px 14px;
  }

  .explore-skip-button strong {
    font-size: 15px;
  }

  .explore-skip-button small {
    font-size: 11px;
  }

  .message p {
    font-size: 17px;
    line-height: 1.68;
  }

  .message {
    width: 94%;
    padding: 15px 16px;
  }

  .chat-workspace {
    margin-inline: 0;
    border-radius: 20px;
  }

  .chat-workspace-header {
    gap: 12px;
    padding: 15px 14px;
  }

  .assistant-avatar {
    width: 46px;
    height: 46px;
  }

  .assistant-identity strong {
    font-size: 16px;
  }

  .chat-log {
    height: min(49dvh, 440px);
    min-height: 350px;
    padding: 18px 13px;
  }

  .prompt-chips button {
    min-height: 48px;
    font-size: 14.5px;
  }

  .chat-compose {
    padding: 7px 7px 7px 10px;
  }

  .chat-compose textarea {
    min-height: 60px;
    padding: 10px 8px;
    font-size: 16.5px;
  }

  .chat-compose button {
    min-width: 72px;
    height: 54px;
    padding-inline: 13px;
    font-size: 14px;
  }

  .conversation-label small {
    font-size: 12px;
  }

  .submission-prompt {
    display: grid;
    gap: 13px;
    padding: 15px;
  }

  .submission-prompt button {
    width: 100%;
  }

  .submission-preview-actions {
    grid-template-columns: 1fr;
  }

  .submission-preview-actions .text-button {
    order: 2;
  }

  .submission-preview-field textarea {
    min-height: 220px;
    font-size: 16px;
  }

  html[dir="rtl"] .service-switcher {
    padding-right: 0;
    padding-left: 62px;
  }

  html[lang="zh-CN"] .toc-hero h1,
  html[lang="zh-CN"] .toc-hero .intro-main h1 {
    max-width: 9.2em;
    font-size: clamp(39px, 10.8vw, 46px);
    line-height: 1.18;
  }

  html[lang="zh-CN"] .toc-hero .intro-copy {
    line-height: 1.68;
  }
}
