body[data-view="customer-solutions"] {
  background: #f6f8fb;
}

body[data-view="customer-solutions"] .site-header,
body[data-view="customer-solutions"] .site-footer {
  display: none;
}

body[data-view="customer-solutions"] .ai-navigation,
body[data-view="customer-solutions"] .connect-tabs {
  top: calc(var(--cs-viewport-top, 0px) + var(--cs-viewport-height, 100dvh) - var(--tab-space, 78px));
  bottom: auto;
}

body[data-view="customer-solutions"] .ai-navigation .connect-tabs { position: static; inset: auto; }
body[data-view="customer-solutions"] .ai-navigation .nav-item--ai { color: var(--ai-nav-blue); }
body[data-view="customer-solutions"] .nav-item--ai .nav-item__icon { background: #e0ecff; }

.customer-solutions[hidden],
.customer-solutions [hidden] {
  display: none !important;
}

.customer-solutions {
  position: fixed;
  top: var(--cs-viewport-top, 0px);
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  width: min(100%, 1000px);
  height: calc(var(--cs-viewport-height, 100dvh) - var(--tab-space, 78px) - 6px);
  min-height: 0;
  margin: 0 auto;
  color: #202a3c;
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.cs-header {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: calc(65px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) max(19px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
  border-bottom: 1px solid #edf0f4;
  background: #fff;
}
.cs-header h1 { flex: 1; min-width: 0; margin: 0; color: #202a3c; font-size: 18px; font-weight: 650; line-height: 1.3; letter-spacing: -.3px; }
.cs-back { display: grid; width: 29px; height: 44px; flex: none; place-items: center; color: #536176; }
.cs-back .connect-icon { width: 21px; height: 21px; font-size: 21px; transform: rotate(180deg); }
.cs-header-actions { display: flex; align-items: center; gap: 8px; }
.cs-header-actions button { min-height: 42px; padding: 6px 7px; border: 0; border-radius: 8px; background: transparent; color: #2b60c2; font: inherit; font-size: 13px; cursor: pointer; }
.cs-header-actions button:hover { background: #f0f5fc; }
.cs-header-actions .cs-history-trigger { display: grid; min-width: 38px; place-items: center; color: #536176; }
.cs-history-trigger svg { width: 21px; height: 21px; }

.cs-workspace { position: relative; display: flex; min-width: 0; min-height: 0; flex-direction: column; }
.cs-status, .cs-error { flex: none; padding: 9px 18px; color: #5b4b20; background: #fff6de; font-size: 13px; line-height: 1.5; }
.cs-error { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff0ee; color: #8a3830; }
.cs-error button { flex: none; min-height: 36px; padding: 4px 6px; border: 0; background: transparent; color: #91372f; text-decoration: underline; text-underline-offset: 3px; font: inherit; cursor: pointer; }
.cs-conversation { flex: 1; min-width: 0; min-height: 0; padding: 27px max(22px, calc((100% - 720px) / 2)) 18px; overflow: auto; overscroll-behavior: contain; overflow-anchor: none; scrollbar-width: thin; scrollbar-color: #c3ccd9 #f7f9fc; }
.cs-conversation:focus-visible { outline: 2px solid #8babdf; outline-offset: -2px; }
.cs-welcome { max-width: 560px; margin: clamp(20px, 8dvh, 72px) auto 30px; }
.cs-welcome h2 { margin: 0 0 12px; color: #253a59; font-size: clamp(22px, 5vw, 30px); line-height: 1.4; }
.cs-welcome p { margin: 0; color: #536176; font-size: 15px; line-height: 1.8; }
.cs-example { display: inline-flex; align-items: center; min-height: 42px; margin-top: 22px; padding: 8px 13px; border: 1px solid #d8e3f2; border-radius: 10px; color: #2b60b5; background: #f5f8fe; font: inherit; font-size: 14px; cursor: pointer; }
.cs-example:hover { background: #edf3fd; }
.cs-message { margin: 0 0 30px; }
.cs-message-content { min-width: 0; }
.cs-message-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 15px; }
.cs-message-heading strong { color: #37465d; font-size: 13px; font-weight: 600; }
.cs-message-heading small { color: #657185; font-size: 12px; line-height: 1.5; }
.cs-message-user { margin-left: 37px; }
.cs-message-user .cs-message-heading { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cs-user-text { padding: 15px 17px; border-radius: 16px 16px 4px 16px; background: #eff4fc; color: #2e405c; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.8; }
.cs-assistant-mark { display: grid; width: 27px; height: 27px; flex: none; place-items: center; border-radius: 9px; background: #edf3ff; color: #2563eb; }
.cs-assistant-mark svg { width: 17px; height: 17px; }
.cs-prior-questions { margin: -15px 0 28px 37px; color: #667489; font-size: 12px; }
.cs-prior-questions > summary { display: flex; align-items: center; justify-content: flex-end; gap: 7px; min-height: 36px; padding: 4px 2px; list-style: none; cursor: pointer; }
.cs-prior-questions > summary::-webkit-details-marker { display: none; }
.cs-prior-questions > summary::after { content: ""; width: 5px; height: 5px; margin: 0 4px 3px 1px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); }
.cs-prior-questions[open] > summary::after { transform: rotate(225deg); margin-top: 5px; }
.cs-prior-questions[open] > .cs-message-content { padding: 13px 0 0; }
.cs-prior-questions .cs-markdown { font-size: 14px; }
.cs-generation-intro { margin: 0 0 19px; color: #39465b; font-size: 15px; line-height: 1.85; }
.cs-markdown { color: #39465b; overflow-wrap: anywhere; font-size: 15px; line-height: 1.85; }
.cs-markdown:empty { display: none; }
.cs-markdown p { margin: 0 0 10px; }
.cs-markdown h3 { margin: 24px 0 14px; color: #202a3c; font-size: 20px; font-weight: 650; line-height: 1.5; letter-spacing: -.3px; }
.cs-markdown h3:first-child { margin-top: 0; }
.cs-markdown h4 { margin: 20px 0 8px; color: #27384e; font-size: 16px; font-weight: 650; line-height: 1.6; }
.cs-markdown :is(ul,ol) { margin: 6px 0 14px; padding-left: 23px; }
.cs-markdown li + li { margin-top: 7px; }
.cs-markdown code { padding: 1px 4px; border-radius: 4px; background: #f0f3f7; color: #3b506e; font-size: .94em; }
.cs-markdown a { color: #215cb6; text-underline-offset: 3px; }
.cs-placeholder { color: #657185; }
.cs-table-scroll { width: 100%; max-width: 100%; margin: 12px 0 20px; overflow-x: auto; border: 1px solid #e0e6ee; border-radius: 10px; scrollbar-width: thin; scrollbar-color: #c3ccd9 #f7f9fc; }
.cs-table-scroll table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 14px; line-height: 1.7; }
.cs-table-scroll :is(th,td) { padding: 10px 12px; border-bottom: 1px solid #e6ebf2; border-right: 1px solid #e6ebf2; text-align: left; vertical-align: top; }
.cs-table-scroll th { background: #f2f6fc; color: #344a69; font-weight: 650; }
.cs-table-scroll :is(th,td):last-child { border-right: 0; }
.cs-table-scroll tr:last-child td { border-bottom: 0; }
.cs-message-actions { display: flex; flex-wrap: wrap; gap: 7px 14px; margin-top: 15px; }
.cs-message-actions button { min-height: 36px; padding: 3px 0; border: 0; background: transparent; color: #2b60b5; font: inherit; font-size: 13px; cursor: pointer; }
.cs-message-actions button:hover { text-decoration: underline; text-underline-offset: 3px; }
.cs-sources { margin-top: 17px; padding-top: 12px; border-top: 1px solid #edf0f4; }
.cs-sources > summary { color: #536176; font-size: 13px; cursor: pointer; }
.cs-source { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: #f6f8fb; font-size: 13px; }
.cs-source > :is(strong,a) { color: #344f73; }
.cs-source > small { display: block; margin-top: 4px; color: #657185; }
.cs-source-excerpt { margin-top: 6px; color: #536176; }
.cs-source-excerpt summary { cursor: pointer; }
.cs-source-excerpt p { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; }
.cs-source-empty { margin: 14px 0 0; color: #657185; font-size: 13px; line-height: 1.7; }

.cs-progress { margin: 0 0 22px; padding: 11px 0 13px; border-top: 1px solid #edf0f4; border-bottom: 1px solid #edf0f4; background: transparent; color: #314565; }
.cs-progress-main { display: flex; align-items: center; gap: 9px; min-height: 29px; }
.cs-progress-main > strong { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; line-height: 1.6; }
.cs-progress #csStop { flex: none; min-height: 42px; margin: -6px 0; padding: 10px 0 10px 14px; border: 0; border-radius: 4px; color: #667286; background: transparent; font: inherit; font-size: 12px; line-height: 20px; cursor: pointer; }
.cs-progress #csStop:hover { color: #263e66; }
.cs-progress-copy { margin: 3px 0 0 27px; color: #657185; font-size: 12px; line-height: 1.65; }
.cs-activity { display: flex; position: relative; align-items: center; justify-content: center; gap: 2.5px; width: 18px; height: 18px; flex: none; color: #2563eb; }
.cs-activity i { width: 3.5px; height: 3.5px; flex: none; border-radius: 50%; background: currentColor; opacity: .45; }
.cs-progress[data-status="running"] .cs-activity i { animation: cs-activity-pulse 1.1s ease-in-out infinite; }
.cs-progress[data-status="running"] .cs-activity i:nth-child(2) { animation-delay: 120ms; }
.cs-progress[data-status="running"] .cs-activity i:nth-child(3) { animation-delay: 240ms; }
.cs-progress-check { display: none; width: 16px; height: 16px; }
.cs-progress-check, .cs-send-icon svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cs-progress[data-status="completed"] .cs-activity i { display: none; }
.cs-progress[data-status="completed"] .cs-progress-check { display: block; color: #416855; }
.cs-progress[data-status="completed"] .cs-progress-main > strong { color: #416855; }
.cs-progress[data-status="stopped"] .cs-activity,
.cs-progress[data-status="interrupted"] .cs-activity,
.cs-progress[data-status="failed"] .cs-activity { color: #667286; }
.cs-progress-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 11px 0 0 27px; padding: 0; color: #667286; font-size: 11px; line-height: 1.6; list-style: none; }
.cs-progress-steps li { display: inline-flex; align-items: center; gap: 4px; }
.cs-progress-steps li:not(:last-child)::after { content: ""; height: 3px; width: 3px; margin-left: 3px; border-top: 1px solid #8a96a7; border-right: 1px solid #8a96a7; transform: rotate(45deg); }
.cs-progress-steps [data-state="current"] { color: #2b61be; }
.cs-progress-steps [data-state="done"]::before { content: ""; width: 6px; height: 3px; margin-right: 1px; border-left: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-1px) rotate(-45deg); }
.cs-stream-block-enter { animation: cs-block-enter 180ms cubic-bezier(.16,1,.3,1) both; }
@keyframes cs-activity-pulse { 0%, 100% { opacity: .35; transform: translateY(0); } 45% { opacity: 1; transform: translateY(-1.5px); } }
@keyframes cs-block-enter { from { opacity: .55; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
body:not([data-view="customer-solutions"]) .cs-activity i,
body:not([data-view="customer-solutions"]) .cs-stream-block-enter { animation-play-state: paused; }
.customer-solutions[data-paused="true"] .cs-activity i,
.customer-solutions[data-paused="true"] .cs-stream-block-enter { animation-play-state: paused; }

/* The navigation's tab-space already includes the bottom safe area. */
.cs-composer { flex: none; width: min(100%, 764px); margin: 0 auto; padding: 13px max(18px, env(safe-area-inset-right)) 6px max(18px, env(safe-area-inset-left)); background: #fff; }
.cs-input-row { display: flex; align-items: flex-end; gap: 8px; min-height: 51px; padding: 9px 10px 9px 16px; border: 1px solid #e2e8f0; border-radius: 15px; background: #fafbfd; }
.cs-input-row:has(> .cs-compose-actions:not([hidden])) { display: grid; grid-template-columns: minmax(0, 1fr) 31px; gap: 4px 8px; }
.cs-input-row:has(> .cs-compose-actions:not([hidden])) textarea { grid-column: 1 / -1; }
.cs-input-row:focus-within { border-color: #6c8fc5; outline: none; }
.cs-composer textarea { display: block; flex: 1; width: 100%; min-width: 0; min-height: 31px; max-height: 140px; padding: 3px 0; border: 0; border-radius: 0; outline: 0; background: transparent; color: #3d4a60; resize: none; caret-color: #2563eb; font: inherit; font-size: 16px; line-height: 25px; scrollbar-width: thin; scrollbar-color: #c3ccd9 transparent; }
.cs-composer textarea::placeholder { color: #667286; }
.cs-composer textarea:focus,
.cs-composer textarea:focus-visible { outline: none; box-shadow: none; }
.cs-composer[data-mode="initial"] textarea { min-height: 80px; }
.cs-composer[data-mode="clarification"] textarea { min-height: 76px; }
.cs-send-icon { display: grid; width: 31px; height: 31px; flex: none; place-items: center; padding: 0; border: 0; border-radius: 10px; background: #2563eb; color: #fff; cursor: pointer; }
.cs-send-icon svg { width: 17px; height: 17px; }
.cs-send-icon:disabled { background: #edf1f7; color: #6d7e96; }
.cs-optional { margin: 9px 0 0; color: #657185; font-size: 12px; line-height: 1.6; }
.cs-compose-actions { display: flex; min-width: 0; justify-content: flex-start; align-items: center; }
.cs-compose-actions:has(> [hidden]:only-child) { display: none; }
.cs-button { min-height: 36px; padding: 4px 0; border: 0; border-radius: 5px; color: #2b60b5; background: transparent; font: inherit; font-size: 12px; line-height: 1.5; text-align: left; cursor: pointer; }
.cs-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.cs-compose-hint { margin: 9px 0 0; color: #667286; font-size: 10px; line-height: 1.5; text-align: center; }
.cs-disclaimer { margin: 6px 4px 0; color: #536480; font-size: 10.5px; line-height: 1.4; text-align: center; white-space: nowrap; }
.customer-solutions button:disabled { cursor: default; }
.customer-solutions :is(a,button,input,summary):focus-visible { outline: 2px solid #437fd4; outline-offset: 2px; }
.cs-toast { position: absolute; z-index: 5; left: 50%; bottom: 115px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 30px); padding: 9px 14px; border-radius: 9px; background: #344761; color: #fff; font-size: 13px; box-shadow: 0 5px 15px #1b355726; }
.cs-history { width: min(94vw, 520px); max-height: 84dvh; padding: 18px; border: 1px solid #d7e3f3; border-radius: 17px; background: #fcfdff; color: #273b57; overscroll-behavior: contain; }
.cs-history::backdrop { background: #102c5266; }
.cs-history > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.cs-history h2 { margin: 0; font-size: 20px; }
.cs-history header form { margin: 0; }
.cs-history header button { width: 36px; height: 36px; border: 0; border-radius: 50%; color: #405d82; background: #eaf1fa; font: 24px/1 sans-serif; cursor: pointer; }
.cs-history input { width: 100%; min-height: 42px; margin: 15px 0 8px; padding: 8px 11px; border: 1px solid #c4d5ec; border-radius: 9px; font: inherit; font-size: 15px; color: #1b3b64; background: #fff; }
.cs-history-list { min-height: 100px; }
.cs-history-item { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid #e1e9f5; }
.cs-history-open { display: grid; flex: 1; min-width: 0; gap: 5px; padding: 12px 6px; border: 0; background: transparent; color: #264e7e; font: inherit; text-align: left; cursor: pointer; }
.cs-history-open strong { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.cs-history-open small { color: #586e8a; font-size: 12px; }
.cs-history-open[aria-current] { color: #0754d0; }
.cs-history-delete { width: 34px; height: 36px; flex: none; border: 0; border-radius: 8px; color: #667286; background: transparent; font: 22px/1 sans-serif; cursor: pointer; }
.cs-history-delete:hover { background: #fff0ef; color: #a54139; }
.cs-history-pages { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 15px; }
.cs-history-pages span { color: #586e8a; font-size: 12px; text-align: center; }
.cs-history-pages button { min-height: 36px; padding: 3px 8px; border: 0; color: #2b5f9e; background: transparent; font: inherit; font-size: 13px; cursor: pointer; }
.cs-empty-history { padding: 20px 5px; color: #586e8a; font-size: 14px; }
.customer-solutions ::selection { color: #193658; background: #dbe8ff; }

@media (max-width: 359px) {
  .cs-header { gap: 6px; padding-inline: 12px; }
  .cs-header h1 { font-size: 17px; }
  .cs-header-actions { gap: 2px; }
  .cs-conversation { padding-inline: 18px; }
  .cs-message-user { margin-left: 26px; }
  .cs-prior-questions { margin-left: 26px; }
  .cs-progress-main { gap: 7px; }
  .cs-progress-main > strong { font-size: 13px; }
  .cs-progress-steps { gap: 4px; font-size: 10px; }
  html:lang(en) .cs-header h1 { font-size: 15px; }
  html:lang(en) .cs-header-actions button { max-width: 64px; line-height: 1.3; }
}

@media (prefers-reduced-motion: reduce) {
  .cs-progress[data-status="running"] .cs-activity i,
  .cs-stream-block-enter { animation: none; transform: none; opacity: 1; }
}
