@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Source+Sans+3:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Noto+Sans+SC:wght@400;500;600;700&display=swap');

:root {
  --navy-950: #041225;
  --navy-900: #06182f;
  --navy-800: #0a2240;
  --navy-700: #102b4e;
  --navy-600: #1c3a60;
  --gold-700: #a8842f;
  --gold-600: #c9a24b;
  --gold-500: #d4b266;
  --gold-200: #ead9ae;
  --gold-100: #f6eedb;
  --white: #ffffff;
  --gray-25: #fbfcfd;
  --gray-50: #f7f8fa;
  --gray-100: #f1f2f5;
  --gray-200: #e4e6ec;
  --gray-300: #cdd2dc;
  --gray-500: #6a7488;
  --gray-600: #4c566b;
  --ink: #14233f;
  --body: #2a3447;
  --success: #167454;
  --success-soft: #e8f5ef;
  --warning: #9a6216;
  --warning-soft: #fff5df;
  --danger: #a73e47;
  --danger-soft: #fff0f1;
  --mint: #67d6bf;
  --mint-soft: #e9faf6;
  --shadow-lg: 0 30px 80px rgba(5, 24, 47, 0.18);
  --shadow-md: 0 14px 36px rgba(5, 24, 47, 0.12);
  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Source Sans 3', 'Noto Sans SC', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-cjk: 'Noto Sans SC', 'Source Sans 3', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--navy-950);
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: var(--font-body);
  color: var(--body);
  background:
    radial-gradient(circle at 11% 14%, rgba(201, 162, 75, 0.18), transparent 27rem),
    radial-gradient(circle at 46% 84%, rgba(103, 214, 191, 0.11), transparent 25rem),
    linear-gradient(90deg, var(--navy-950) 0%, var(--navy-800) 53%, #eef2f7 53%, #f8f9fb 100%);
  -webkit-font-smoothing: antialiased;
}

html[lang='zh-Hans'] body,
html[lang='zh-Hans'] button,
html[lang='zh-Hans'] input,
html[lang='zh-Hans'] textarea {
  font-family: var(--font-cjk);
}

button,
textarea,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

a {
  color: var(--navy-700);
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--white);
  background: var(--navy-900);
  border-radius: 6px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.prototype-bar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #e8edf5;
  background: rgba(4, 18, 37, 0.96);
}

.prototype-bar__inner {
  width: min(1440px, calc(100% - 48px));
  min-height: 42px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.prototype-bar p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.prototype-bar strong {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-500);
}

html[lang='zh-Hans'] .prototype-bar strong {
  font-family: var(--font-cjk);
}

.prototype-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 0 4px rgba(212, 178, 102, 0.14);
}

.language-control {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}

.language-button {
  min-width: 42px;
  padding: 4px 10px;
  border: 0;
  border-radius: 5px;
  color: #b9c5d5;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}

.language-button.is-active {
  color: var(--navy-950);
  background: var(--gold-500);
}

.page-shell {
  width: min(1440px, calc(100% - 48px));
  min-height: calc(100vh - 42px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(470px, 0.78fr);
  gap: clamp(44px, 6vw, 104px);
  align-items: center;
  padding: 46px 0;
}

.context-panel {
  position: relative;
  color: #ecf1f8;
  max-width: 680px;
}

.context-panel::after {
  content: '';
  position: absolute;
  top: 92px;
  right: 2%;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(103, 214, 191, 0.25);
  border-radius: 50%;
  box-shadow: 22px -34px 0 -16px rgba(212, 178, 102, 0.22);
  pointer-events: none;
}

.brand {
  width: fit-content;
  margin-bottom: clamp(42px, 7vh, 76px);
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--white);
  text-decoration: none;
}

.brand img {
  width: 46px;
  height: 46px;
}

.brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.05;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand small {
  font-family: var(--font-cjk);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--gold-500);
}

.eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-500);
}

html[lang='zh-Hans'] .eyebrow {
  font-family: var(--font-cjk);
  letter-spacing: 0.12em;
}

.context-panel h1 {
  max-width: 640px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(46px, 5vw, 70px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: none;
  color: var(--white);
}

html[lang='zh-Hans'] .context-panel h1 {
  font-family: var(--font-cjk);
  font-size: clamp(40px, 4.5vw, 62px);
  line-height: 1.14;
  letter-spacing: 0.05em;
}

.lead {
  max-width: 620px;
  margin: 22px 0 16px;
  font-size: 19px;
  line-height: 1.62;
  color: #bac7d8;
}

.friendly-tagline {
  width: fit-content;
  margin: 0 0 30px;
  padding: 8px 13px;
  border: 1px solid rgba(103, 214, 191, 0.28);
  border-radius: 999px;
  color: #dffbf5;
  background: rgba(103, 214, 191, 0.09);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.capability-grid article {
  min-height: 156px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(10px);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.capability-grid article:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.075);
}

.capability-icon {
  width: 38px;
  height: 32px;
  margin-bottom: 14px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy-950);
  background: var(--gold-500);
}

.capability-grid article:nth-child(2) .capability-icon {
  background: var(--mint);
}

.capability-grid article:nth-child(3) .capability-icon {
  color: var(--white);
  background: #4d76a8;
}

.capability-grid h2,
.safety-card h2 {
  margin: 0 0 7px;
  font-size: 15px;
  line-height: 1.25;
  color: var(--white);
}

.capability-grid p,
.safety-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: #aebdd0;
}

.safety-card {
  margin-top: 16px;
  padding: 17px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid rgba(212, 178, 102, 0.3);
  border-radius: 12px;
  background: rgba(201, 162, 75, 0.09);
}

.safety-card__icon {
  flex: 0 0 auto;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(212, 178, 102, 0.7);
  border-radius: 50%;
  color: var(--gold-500);
  font-weight: 700;
}

.prototype-scope {
  margin: 14px 2px 0;
  font-size: 12.5px;
  color: #90a1b8;
}

.chat-shell {
  width: min(100%, 650px);
  height: min(780px, calc(100vh - 90px));
  min-height: 650px;
  justify-self: end;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-top: 4px solid var(--gold-500);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.chat-header {
  min-height: 78px;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--gray-200);
  background: var(--white);
}

.assistant-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.assistant-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 2px solid var(--gold-200);
  border-radius: 50%;
  background: linear-gradient(145deg, var(--navy-700), var(--navy-950));
  box-shadow: 0 5px 14px rgba(10, 34, 64, 0.2);
}

.assistant-mark img {
  width: 27px;
  height: 27px;
  object-fit: contain;
}

.assistant-identity h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
}

html[lang='zh-Hans'] .assistant-identity h2 {
  font-family: var(--font-cjk);
  letter-spacing: 0.08em;
}

.assistant-identity p {
  margin: 3px 0 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--gray-500);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  animation: rocky-status-pulse 2.8s ease-in-out infinite;
}

.icon-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gray-200);
  border-radius: 9px;
  color: var(--gray-600);
  background: var(--white);
  font-size: 22px;
  line-height: 1;
}

.icon-button:hover {
  color: var(--navy-800);
  border-color: var(--gray-300);
  background: var(--gray-50);
}

.privacy-strip {
  min-height: 46px;
  padding: 9px 18px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid #f0e3c5;
  color: #725220;
  background: var(--gold-100);
}

.privacy-strip > span {
  color: var(--gold-700);
  font-size: 9px;
}

.privacy-strip p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.35;
}

.chat-log {
  min-height: 0;
  padding: 24px 18px 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    linear-gradient(rgba(247, 248, 250, 0.92), rgba(247, 248, 250, 0.92)),
    radial-gradient(circle at top left, rgba(201, 162, 75, 0.11), transparent 18rem);
  scrollbar-color: var(--gray-300) transparent;
  scrollbar-width: thin;
}

.message {
  margin-bottom: 18px;
  display: flex;
  align-items: flex-end;
  gap: 9px;
  animation: message-in 0.2s ease-out;
}

.message--user {
  justify-content: flex-end;
}

.message-avatar {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: var(--navy-800);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
}

.message-bubble {
  max-width: min(86%, 500px);
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 7px 16px 16px 16px;
  color: var(--body);
  background: var(--white);
  box-shadow: 0 4px 14px rgba(10, 34, 64, 0.06);
}

.message--user .message-bubble {
  border-color: var(--navy-800);
  border-radius: 16px 7px 16px 16px;
  color: var(--white);
  background: var(--navy-800);
}

.message-bubble p {
  margin: 0 0 9px;
  font-size: 14.5px;
  line-height: 1.48;
}

.message-bubble p:last-child {
  margin-bottom: 0;
}

.message-bubble strong {
  color: var(--ink);
}

.message--user .message-bubble strong {
  color: var(--white);
}

.message-meta {
  margin-top: 6px;
  font-size: 10.5px;
  color: var(--gray-500);
}

.message--user .message-meta {
  text-align: right;
  color: #c3d0df;
}

.message--typing .message-bubble {
  width: fit-content;
  min-width: 92px;
  padding-block: 10px;
}

.message--typing .message-bubble p {
  color: var(--gray-500);
  font-size: 13px;
  animation: typing-pulse 1.2s ease-in-out infinite;
}

@keyframes typing-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.action-group {
  margin: -8px 0 20px 37px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  animation: message-in 0.2s ease-out;
}

.action-button {
  min-height: 38px;
  padding: 8px 13px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #c9d2df;
  border-radius: 9px;
  color: var(--navy-700);
  background: var(--white);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(10, 34, 64, 0.04);
}

.action-button:hover,
.action-button:focus-visible {
  border-color: var(--gold-600);
  color: var(--navy-900);
  background: #fffcf6;
}

.action-button--primary {
  color: var(--navy-950);
  border-color: var(--gold-600);
  background: var(--gold-500);
}

.action-button--primary:hover,
.action-button--primary:focus-visible {
  color: var(--white);
  border-color: var(--gold-700);
  background: var(--gold-700);
}

.action-button--disabled {
  color: var(--gray-500);
  border-style: dashed;
  background: var(--gray-50);
}

.service-grid,
.resource-list {
  width: calc(100% - 37px);
  margin: -8px 0 20px 37px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  animation: message-in 0.2s ease-out;
}

.service-button,
.resource-card {
  min-height: 82px;
  padding: 12px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  color: var(--body);
  background: var(--white);
  text-align: left;
  box-shadow: 0 4px 12px rgba(10, 34, 64, 0.05);
}

.service-button:hover,
.service-button:focus-visible,
.resource-card:hover,
.resource-card:focus-visible {
  border-color: var(--gold-600);
  box-shadow: 0 6px 18px rgba(10, 34, 64, 0.09);
  transform: translateY(-1px);
}

.service-button strong,
.resource-card strong {
  display: block;
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.3;
}

.service-button span,
.resource-card span {
  display: block;
  margin-top: 5px;
  color: var(--gray-500);
  font-size: 11.5px;
  line-height: 1.35;
}

.service-grid .service-button:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.resource-card {
  text-decoration: none;
}

.inline-notice {
  width: calc(100% - 37px);
  margin: -8px 0 20px 37px;
  padding: 12px 14px;
  border: 1px solid #f0d6a1;
  border-radius: 10px;
  color: #6d4d18;
  background: var(--warning-soft);
  font-size: 13px;
  line-height: 1.45;
}

.inline-notice--danger {
  color: #7f2c34;
  border-color: #f2c7cb;
  background: var(--danger-soft);
}

.field-card {
  width: calc(100% - 37px);
  margin: -8px 0 20px 37px;
  padding: 14px;
  border: 1px solid var(--gray-200);
  border-radius: 11px;
  background: var(--white);
  box-shadow: 0 4px 12px rgba(10, 34, 64, 0.05);
}

.field-card label,
.field-card legend {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.field-card fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.field-card input,
.field-card textarea,
.field-card select {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  color: var(--body);
  background: var(--white);
  font-size: 14px;
}

.field-card textarea {
  min-height: 86px;
  resize: vertical;
}

.field-help {
  margin: 7px 0 0;
  color: var(--gray-500);
  font-size: 11.5px;
  line-height: 1.4;
}

.field-error {
  margin: 7px 0 0;
  color: var(--danger);
  font-size: 12px;
  font-weight: 600;
}

.field-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.field-submit {
  min-height: 36px;
  padding: 8px 14px;
  border: 0;
  border-radius: 8px;
  color: var(--white);
  background: var(--navy-800);
  font-size: 13px;
  font-weight: 700;
}

.field-submit:hover {
  background: var(--navy-600);
}

.field-skip {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  color: var(--gray-600);
  background: var(--white);
  font-size: 13px;
  font-weight: 600;
}

.quote-card {
  max-width: 100%;
  padding: 16px;
}

.quote-step-card {
  max-width: 520px;
  padding: 12px;
}

.quote-choice-grid {
  display: grid;
  gap: 8px;
}

.quote-choice-button {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--gray-300);
  border-radius: 9px;
  color: var(--navy-800);
  background: var(--white);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  text-align: left;
}

.quote-choice-button:hover,
.quote-choice-button:focus-visible,
.quote-choice-button--selected {
  border-color: var(--gold-600);
  background: #fffcf6;
  box-shadow: 0 3px 10px rgba(10, 34, 64, 0.07);
}

.quote-step-form {
  display: grid;
  gap: 9px;
}

.quote-step-grid {
  max-height: min(42vh, 390px);
  display: grid;
  gap: 7px;
  overflow-y: auto;
}

.field-card .quote-step-option {
  min-height: 42px;
  margin: 0;
  padding: 8px 9px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) minmax(82px, auto);
  align-items: center;
  gap: 8px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  background: var(--gray-25);
  font-weight: 500;
  cursor: pointer;
}

.field-card .quote-step-option:has(input[type='checkbox']:checked) {
  border-color: var(--gold-600);
  background: #fffcf6;
}

.field-card .quote-step-option > input[type='checkbox'] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--navy-800);
}

.quote-step-option__label {
  color: var(--body);
  font-size: 12.5px;
  line-height: 1.35;
}

.quote-step-option__quantity-wrap {
  display: grid;
  gap: 3px;
  justify-items: stretch;
}

.quote-step-option__quantity-label {
  color: var(--gray-600);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.field-card .quote-step-option__quantity {
  width: 100%;
  min-width: 0;
  padding: 7px 5px;
  text-align: center;
}

.quote-step-cancel {
  margin-top: 9px;
}

.field-actions .quote-step-cancel {
  margin-top: 0;
}

.quote-card__title {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.3;
}

.quote-card__intro {
  margin: 7px 0 14px;
  color: var(--gray-600);
  font-size: 12px;
  line-height: 1.45;
}

.quote-section {
  margin: 0;
  padding: 14px 0;
  border: 0;
  border-top: 1px solid var(--gray-200);
}

.quote-section legend {
  width: 100%;
  margin: 0 0 10px;
  padding: 0;
  color: var(--navy-800);
  font-size: 14px;
  font-weight: 700;
}

.quote-field {
  margin-bottom: 10px;
}

.quote-field__label {
  display: block;
  margin-bottom: 6px;
}

.quote-field-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.quote-service-grid {
  margin-top: 10px;
  display: grid;
  gap: 7px;
}

.quote-service {
  min-height: 44px;
  margin: 0;
  padding: 8px 9px;
  display: grid !important;
  grid-template-columns: 18px minmax(0, 1fr) 62px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  background: var(--gray-25);
  cursor: pointer;
}

.quote-service:has(input[type='checkbox']:checked) {
  border-color: var(--gold-600);
  background: #fffcf6;
}

.quote-service input[type='checkbox'],
.quote-check input[type='checkbox'] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--navy-800);
}

.quote-service__name {
  color: var(--body);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
}

.quote-service__quantity input {
  min-width: 0;
  padding: 7px 6px;
  text-align: center;
}

.quote-check {
  margin: 8px 0 0 !important;
  display: grid !important;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  color: var(--body);
  font-size: 12.5px !important;
  font-weight: 500 !important;
  line-height: 1.35;
}

.quote-card__error,
.quote-card__status {
  margin-bottom: 8px;
}

.quote-result {
  width: calc(100% - 37px);
  margin: -8px 0 20px 37px;
  padding: 16px;
  border: 1px solid var(--gold-200);
  border-radius: 11px;
  background: #fffcf6;
  box-shadow: 0 4px 14px rgba(10, 34, 64, 0.06);
}

.quote-result__amount {
  margin: 0 0 5px;
  color: var(--navy-800);
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
}

html[lang='zh-Hans'] .quote-result__amount {
  font-family: var(--font-cjk);
}

.quote-result__message,
.quote-result__validity {
  margin: 0;
  color: var(--body);
  font-size: 12.5px;
  line-height: 1.45;
}

.quote-result__details {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--gold-200);
  color: var(--gray-600);
  font-size: 12px;
  line-height: 1.45;
}

.quote-result__details ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

.composer {
  padding: 12px 14px 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 9px;
  border-top: 1px solid var(--gray-200);
  background: var(--white);
}

.composer textarea {
  max-height: 110px;
  padding: 11px 13px;
  resize: none;
  border: 1px solid var(--gray-300);
  border-radius: 10px;
  outline: 0;
  color: var(--body);
  background: var(--gray-25);
  font-size: 14px;
  line-height: 1.4;
}

.composer textarea:focus {
  border-color: var(--gold-600);
  box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.16);
}

.composer textarea:disabled {
  color: var(--gray-500);
  background: var(--gray-100);
}

.composer--ready-cue textarea:not(:focus):placeholder-shown:not(:disabled) {
  animation: composer-ready-cue 1.8s ease-out 0.45s 2;
}

.send-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  color: var(--navy-950);
  background: var(--gold-500);
}

.send-button:hover {
  color: var(--white);
  background: var(--gold-700);
}

.send-button:disabled {
  color: #9ba5b5;
  background: var(--gray-200);
}

.send-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.composer-note {
  margin: 0;
  padding: 0 16px 11px;
  color: var(--gray-500);
  background: var(--white);
  font-size: 10.5px;
  text-align: center;
}

.summary-dialog {
  width: min(620px, calc(100% - 28px));
  max-height: min(780px, calc(100vh - 32px));
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 16px;
  color: var(--body);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.summary-dialog::backdrop {
  background: rgba(4, 18, 37, 0.72);
  backdrop-filter: blur(3px);
}

.summary-dialog form {
  margin: 0;
}

.dialog-header {
  padding: 22px 24px 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--gray-200);
}

.dialog-header .eyebrow {
  color: var(--gold-700);
}

.dialog-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--ink);
}

html[lang='zh-Hans'] .dialog-header h2 {
  font-family: var(--font-cjk);
}

.summary-content {
  padding: 22px 24px 8px;
}

.summary-list {
  margin: 0;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  column-gap: 18px;
  row-gap: 12px;
}

.summary-list dt {
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.summary-list dd {
  margin: 0;
  color: var(--body);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.summary-list dd.summary-description {
  white-space: pre-wrap;
}

.summary-disclaimer {
  margin: 16px 0 0;
  padding: 11px 12px;
  border-radius: 8px;
  color: #6d4d18;
  background: var(--warning-soft);
  font-size: 12px;
  line-height: 1.45;
}

.consent-row {
  margin: 12px 24px 16px;
  padding: 14px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.45;
}

.consent-row input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--navy-800);
}

.prototype-warning {
  margin: 0 24px 18px;
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-radius: 9px;
  color: #6d4d18;
  background: var(--warning-soft);
  font-size: 12.5px;
}

.honeypot-field {
  position: fixed;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.turnstile-region {
  min-height: 65px;
  margin: 0 24px 14px;
  display: flex;
  justify-content: center;
}

.turnstile-region[hidden] {
  display: none;
}

.chat-turnstile-region {
  padding: 12px 18px;
  border-top: 1px solid var(--gray-200);
  background: #f8fafc;
  text-align: center;
}

.chat-turnstile-region[hidden] {
  display: none;
}

.chat-turnstile-region p {
  margin: 0 0 8px;
  color: var(--gray-600);
  font-size: 12.5px;
}

#turnstile-container-chat {
  display: flex;
  justify-content: center;
  min-height: 65px;
}

.submission-status {
  min-height: 20px;
  margin: 0 24px 12px;
  color: var(--gray-600);
  font-size: 12.5px;
  line-height: 1.45;
}

.submission-status--error {
  color: var(--danger);
  font-weight: 650;
}

.dialog-actions {
  padding: 16px 24px 22px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--gray-200);
}

.button {
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
}

.button-primary {
  border: 0;
  color: var(--white);
  background: var(--navy-800);
}

.button-primary:hover {
  background: var(--navy-600);
}

.button-primary:disabled {
  color: #a1abb9;
  background: var(--gray-200);
}

.button-secondary {
  border: 1px solid var(--gray-300);
  color: var(--gray-600);
  background: var(--white);
}

.slot-grid {
  width: min(calc(100% - 40px), 640px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-left: 40px;
  animation: message-in 0.24s ease both;
}

.slot-button {
  min-height: 58px;
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  border: 1px solid var(--gray-300);
  border-radius: 9px;
  color: var(--navy-800);
  background: var(--white);
  text-align: left;
  line-height: 1.3;
}

.slot-button:hover,
.slot-button:focus-visible {
  border-color: var(--gold-500);
  background: var(--gold-100);
}

.slot-button strong {
  font-size: 13.5px;
}

.slot-button span {
  color: var(--gray-500);
  font-size: 11.5px;
}

.slot-button:disabled {
  opacity: 0.58;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 120;
  max-width: min(390px, calc(100% - 32px));
  padding: 13px 16px;
  border-radius: 10px;
  color: var(--white);
  background: var(--navy-800);
  box-shadow: var(--shadow-md);
  font-size: 13.5px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.noscript-message {
  position: fixed;
  inset: auto 20px 20px;
  z-index: 200;
  padding: 16px;
  color: var(--white);
  background: var(--danger);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid rgba(201, 162, 75, 0.5);
  outline-offset: 2px;
}

@keyframes message-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes composer-ready-cue {
  0%,
  100% {
    border-color: var(--gray-300);
    box-shadow: 0 0 0 0 rgba(201, 162, 75, 0);
  }
  45% {
    border-color: var(--gold-500);
    box-shadow: 0 0 0 4px rgba(201, 162, 75, 0.14);
  }
}

@media (max-width: 1120px) {
  body {
    background:
      radial-gradient(circle at 8% 12%, rgba(201, 162, 75, 0.14), transparent 26rem),
      linear-gradient(180deg, var(--navy-950) 0, var(--navy-800) 43%, #f5f7fa 43%, #f5f7fa 100%);
  }

  .page-shell {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 42px 0 60px;
  }

  .context-panel {
    max-width: none;
  }

  .brand {
    margin-bottom: 44px;
  }

  .context-panel h1 {
    max-width: 820px;
  }

  .lead {
    max-width: 760px;
  }

  .chat-shell {
    width: min(100%, 760px);
    height: 760px;
    justify-self: center;
  }
}

@media (max-width: 700px) {
  body {
    background: var(--gray-50);
  }

  .slot-grid {
    width: 100%;
    grid-template-columns: 1fr;
    margin-left: 0;
  }

  .prototype-bar__inner,
  .page-shell {
    width: 100%;
  }

  .prototype-bar__inner {
    padding: 6px 14px;
  }

  .prototype-bar p span:last-child {
    display: none;
  }

  .page-shell {
    min-height: auto;
    padding: 0;
    gap: 0;
  }

  .context-panel {
    order: 2;
    padding: 34px 20px 30px;
    background:
      radial-gradient(circle at 10% 10%, rgba(201, 162, 75, 0.14), transparent 20rem),
      var(--navy-900);
  }

  .brand {
    margin-bottom: 34px;
  }

  .context-panel h1 {
    font-size: 42px;
  }

  html[lang='zh-Hans'] .context-panel h1 {
    font-size: 37px;
  }

  .lead {
    font-size: 17px;
  }

  .capability-grid {
    grid-template-columns: 1fr;
  }

  .capability-grid article {
    min-height: auto;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 12px;
  }

  .capability-icon {
    grid-row: 1 / 3;
    margin-bottom: 0;
  }

  .chat-shell {
    order: 1;
    width: 100%;
    height: calc(100dvh - 42px);
    min-height: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .service-grid,
  .resource-list {
    grid-template-columns: 1fr;
  }

  .summary-list {
    grid-template-columns: 1fr;
    row-gap: 4px;
  }

  .summary-list dd {
    margin-bottom: 10px;
  }

  .quote-field-pair {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-height: 760px) and (min-width: 1121px) {
  .page-shell {
    align-items: start;
    padding-top: 26px;
    padding-bottom: 26px;
  }

  .brand {
    margin-bottom: 30px;
  }

  .context-panel h1 {
    font-size: 50px;
  }

  .lead {
    margin: 16px 0 20px;
    font-size: 17px;
  }

  .chat-shell {
    height: calc(100vh - 94px);
    min-height: 620px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Rocky's friendly public and embedded presentation. */
.page-shell {
  min-height: 100vh;
}

.brand {
  margin-bottom: clamp(42px, 7vh, 72px);
}

.rocky-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(170px, 15vw, 230px);
  grid-template-areas: 'copy image';
  align-items: end;
  gap: clamp(24px, 4vw, 48px);
}

.rocky-hero__image {
  grid-area: image;
  width: min(100%, 230px);
  height: auto;
  justify-self: end;
  filter: drop-shadow(0 22px 25px rgba(0, 0, 0, 0.2));
  transform-origin: 50% 88%;
  animation: rocky-hero-idle 5.4s ease-in-out 400ms infinite;
}

.rocky-hero__copy {
  grid-area: copy;
  min-width: 0;
  max-width: 520px;
}

.rocky-hero__copy::before {
  content: '';
  width: 48px;
  height: 3px;
  margin-bottom: 22px;
  display: block;
  border-radius: 999px;
  background: var(--gold-500);
}

.context-panel h1 {
  max-width: 520px;
  font-size: clamp(48px, 4.4vw, 66px);
  line-height: 1.02;
}

.lead {
  max-width: 510px;
  margin: 22px 0 0;
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.5;
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.start-chat-button {
  width: fit-content;
  min-height: 46px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold-500);
  border-radius: 10px;
  color: var(--navy-950);
  background: var(--gold-500);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  font-weight: 700;
  text-decoration: none;
}

.start-chat-button:hover {
  color: var(--navy-950);
  background: #e4c578;
}

.context-panel::after {
  display: none;
}

.chat-controls {
  display: flex;
  align-items: center;
  gap: 7px;
}

.chat-language {
  border-color: var(--gray-200);
  background: var(--gray-50);
}

.chat-language .language-button {
  min-width: 37px;
  padding: 5px 7px;
  color: var(--gray-600);
}

.chat-language .language-button.is-active {
  color: var(--white);
  background: var(--navy-800);
}

.assistant-mark {
  width: 52px;
  height: 52px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform-origin: 50% 70%;
  animation: rocky-avatar-idle 5.8s ease-in-out 900ms infinite;
}

.assistant-mark img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  transform: none;
  filter: drop-shadow(0 5px 7px rgba(10, 34, 64, 0.18));
}

.privacy-details {
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-600);
  background: #fffaf0;
}

.privacy-details summary {
  width: fit-content;
  min-height: 36px;
  margin: 0 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #73541e;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.privacy-details summary::before {
  content: 'ⓘ';
  font-size: 13px;
}

.privacy-details summary::-webkit-details-marker {
  display: none;
}

.privacy-details p {
  margin: -1px 16px 10px;
  font-size: 12px;
  line-height: 1.45;
}

.message-avatar {
  overflow: hidden;
  width: 32px;
  height: 32px;
  border: 1px solid var(--gold-200);
  border-radius: 50%;
  background: #fffaf0;
  transform-origin: 50% 75%;
  animation: rocky-avatar-arrive 360ms cubic-bezier(0.2, 0.85, 0.3, 1.2) both;
}

@keyframes rocky-hero-idle {
  0%, 100% { transform: translateY(0) rotate(-0.35deg); }
  50% { transform: translateY(-9px) rotate(0.35deg); }
}

@keyframes rocky-avatar-idle {
  0%, 70%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  78% { transform: translateY(-2px) rotate(-1.5deg) scale(1.025); }
  86% { transform: translateY(-2px) rotate(1.5deg) scale(1.025); }
  94% { transform: translateY(0) rotate(0deg) scale(1); }
}

@keyframes rocky-avatar-arrive {
  from { opacity: 0; transform: translateY(4px) scale(0.88); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes rocky-status-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22, 128, 91, 0); }
  50% { box-shadow: 0 0 0 4px rgba(22, 128, 91, 0.13); }
}

.message-avatar img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  transform: scale(1.32) translateY(2px);
}

.composer-note {
  line-height: 1.35;
}

.privacy-link {
  margin-left: 3px;
  padding: 1px 2px;
  border: 0;
  color: var(--navy-700);
  background: transparent;
  font-size: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.embed-close {
  display: none;
}

html.is-embedded,
html.is-embedded body {
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  background: var(--white);
}

html.is-embedded .skip-link {
  z-index: 1000;
}

html.is-embedded .context-panel {
  display: none;
}

html.is-embedded .page-shell {
  width: 100%;
  min-height: 100%;
  padding: 0;
  display: block;
}

html.is-embedded .chat-shell {
  width: 100%;
  height: 100dvh;
  min-height: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

html.is-embedded .embed-close {
  display: grid;
}

@media (max-width: 1120px) {
  .rocky-hero {
    grid-template-columns: minmax(0, 1fr) 210px;
  }

  .rocky-hero__image {
    width: min(100%, 210px);
  }
}

@media (max-width: 700px) {
  .chat-shell {
    height: 100dvh;
  }

  .rocky-hero {
    grid-template-columns: minmax(0, 1fr) 150px;
  }

  .rocky-hero__image {
    width: 150px;
  }

  .context-panel h1,
  html[lang='zh-Hans'] .context-panel h1 {
    font-size: 36px;
  }
}

@media (max-width: 480px) {
  .chat-header {
    min-height: 70px;
    padding: 11px 12px;
  }

  .assistant-identity {
    gap: 8px;
  }

  .assistant-mark {
    width: 44px;
    height: 44px;
  }

  .assistant-mark img {
    width: 44px;
    height: 44px;
  }

  .assistant-identity h2 {
    max-width: 118px;
    overflow: hidden;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .assistant-identity p {
    display: none;
  }

  .chat-controls {
    gap: 4px;
  }

  .chat-language .language-button {
    min-width: 32px;
    padding: 5px 4px;
    font-size: 11px;
  }

  .icon-button {
    width: 36px;
    height: 36px;
  }

  .rocky-hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      'copy'
      'image';
    text-align: center;
  }

  .rocky-hero__image {
    width: 160px;
  }

  .rocky-hero__copy::before,
  .start-chat-button {
    margin-inline: auto;
  }

  .hero-actions {
    align-items: center;
  }
}
