.page-assistant main {
  padding-top: 92px;
  height: 100vh;
  overflow: hidden;
  box-sizing: border-box;
}

.site-has-announcement.page-assistant main {
  padding-top: 147px;
}

.assistant-page {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) minmax(300px, 360px);
  height: calc(100vh - 92px);
  min-height: 0;
  overflow: hidden;
  background: #fff;
}

.assistant-page > * {
  min-height: 0;
}

.site-has-announcement .assistant-page {
  height: calc(100vh - 147px);
}

.assistant-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 14px;
  border-right: 1px solid #ececec;
  background: #f7f7f8;
}

.assistant-sidebar.is-collapsed {
  width: 56px;
  padding-inline: 10px;
}

.assistant-sidebar.is-collapsed .assistant-sidebar__action span:last-child,
.assistant-sidebar.is-collapsed .assistant-sidebar__section,
.assistant-sidebar.is-collapsed .assistant-sidebar__hint {
  display: none;
}

.assistant-sidebar__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.assistant-sidebar__action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #1c1c1c;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}

a.assistant-sidebar__action {
  box-sizing: border-box;
}

.assistant-sidebar__action:hover {
  background: #ececec;
}

.assistant-sidebar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #ddd;
  font-size: 16px;
  line-height: 1;
}

.assistant-sidebar__toggle {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #666;
  cursor: pointer;
}

.assistant-sidebar__toggle:hover {
  background: #ececec;
}

.assistant-sidebar__section {
  margin: 8px 0 0;
  padding: 0 8px;
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #888;
}

.assistant-sidebar__hint {
  margin: 0;
  padding: 0 8px;
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  line-height: 1.45;
  color: #999;
}

.assistant-main {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: #fff;
}

.assistant-main__messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 24px 32px 16px;
}

.assistant-message {
  display: flex;
  margin-bottom: 16px;
}

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

.assistant-message--assistant {
  justify-content: flex-start;
  flex-direction: column;
  align-items: flex-start;
}

.assistant-message__thinking {
  max-width: min(100%, 680px);
  margin-bottom: 8px;
  border-radius: 12px;
  background: #ececef;
  border: 1px dashed #c8c8d0;
  overflow: hidden;
}

.assistant-message__thinking[hidden] {
  display: none;
}

.assistant-message__thinking-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.assistant-message__thinking-toggle::-webkit-details-marker {
  display: none;
}

.assistant-message__thinking-toggle::marker {
  content: "";
}

.assistant-message__thinking-label {
  font-family: "Roboto", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b6b76;
}

.assistant-message__thinking-chevron {
  flex-shrink: 0;
  font-size: 12px;
  line-height: 1;
  color: #6b6b76;
  transition: transform 0.2s ease;
}

.assistant-message__thinking[open] .assistant-message__thinking-chevron {
  transform: rotate(180deg);
}

.assistant-message__thinking-scroll {
  max-height: 160px;
  margin: 0 12px 12px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.assistant-message__thinking:not([open]) .assistant-message__thinking-scroll {
  display: none;
}

.assistant-message__thinking-body {
  padding-right: 4px;
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: #5a5a66;
  word-break: break-word;
}

.assistant-message__thinking-body.markdown-body > :first-child {
  margin-top: 0;
}

.assistant-message__thinking-body.markdown-body > :last-child {
  margin-bottom: 0;
}

.assistant-message__thinking-body.markdown-body p {
  margin: 0 0 8px;
}

.assistant-message__thinking-body.markdown-body ul,
.assistant-message__thinking-body.markdown-body ol {
  margin: 0 0 8px;
  padding-left: 1.4em;
}

.assistant-message__thinking-body.markdown-body li + li {
  margin-top: 4px;
}

.assistant-message__thinking-body.markdown-body strong {
  font-weight: 600;
}

.assistant-message__thinking-body.markdown-body code {
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.06);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92em;
}

.assistant-message__thinking-body.markdown-body pre {
  margin: 0 0 8px;
  padding: 10px;
  overflow-x: auto;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.06);
}

.assistant-message__thinking-body.markdown-body pre code {
  padding: 0;
  background: transparent;
}

.assistant-message__thinking-body.markdown-body a {
  color: #4a4a56;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.assistant-message__thinking--pending .assistant-message__thinking-body {
  color: #7a7a86;
  font-style: italic;
}

.assistant-message__bubble {
  max-width: min(100%, 680px);
  padding: 14px 16px;
  border-radius: 18px;
  font-family: "Roboto", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.assistant-message--user .assistant-message__bubble {
  background: #1c1c1c;
  color: #fff;
  border-bottom-right-radius: 6px;
}

.assistant-message--assistant .assistant-message__bubble {
  background: #f4f4f5;
  color: #1c1c1c;
  border-bottom-left-radius: 6px;
}

.assistant-message__bubble--pending {
  color: #6b6b76;
  font-style: italic;
}

.assistant-message--assistant .assistant-message__bubble a {
  color: #1c1c1c;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.assistant-message--assistant .assistant-message__bubble a:hover {
  color: #555;
}

.assistant-message__bubble.markdown-body {
  font-size: 15px;
  line-height: 1.65;
}

.assistant-message__bubble.markdown-body > :first-child {
  margin-top: 0;
}

.assistant-message__bubble.markdown-body > :last-child {
  margin-bottom: 0;
}

.assistant-message__bubble.markdown-body p {
  margin: 0 0 12px;
}

.assistant-message__bubble.markdown-body ul,
.assistant-message__bubble.markdown-body ol {
  margin: 0 0 12px;
  padding-left: 1.4em;
}

.assistant-message__bubble.markdown-body li + li {
  margin-top: 4px;
}

.assistant-message__bubble.markdown-body h1,
.assistant-message__bubble.markdown-body h2,
.assistant-message__bubble.markdown-body h3,
.assistant-message__bubble.markdown-body h4 {
  margin: 16px 0 8px;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: #1c1c1c;
}

.assistant-message__bubble.markdown-body h1:first-child,
.assistant-message__bubble.markdown-body h2:first-child,
.assistant-message__bubble.markdown-body h3:first-child,
.assistant-message__bubble.markdown-body h4:first-child {
  margin-top: 0;
}

.assistant-message__bubble.markdown-body strong {
  font-weight: 600;
}

.assistant-message__bubble.markdown-body code {
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.06);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92em;
}

.assistant-message__bubble.markdown-body pre {
  margin: 0 0 12px;
  padding: 12px;
  overflow-x: auto;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.06);
}

.assistant-message__bubble.markdown-body pre code {
  padding: 0;
  background: transparent;
}

.assistant-message__bubble.markdown-body blockquote {
  margin: 0 0 12px;
  padding-left: 12px;
  border-left: 3px solid #d8d8dc;
  color: #555;
}

.assistant-message__bubble.markdown-body table {
  width: 100%;
  margin: 0 0 12px;
  border-collapse: collapse;
  font-size: 14px;
}

.assistant-message__bubble.markdown-body th,
.assistant-message__bubble.markdown-body td {
  padding: 6px 8px;
  border: 1px solid #e4e4e7;
  text-align: left;
}

.assistant-message__bubble.markdown-body hr {
  margin: 12px 0;
  border: none;
  border-top: 1px solid #e4e4e7;
}

.assistant-composer {
  flex-shrink: 0;
  padding: 16px 24px 24px;
  background: #fff;
  border-top: 1px solid #f0f0f0;
}

.assistant-composer__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.assistant-composer__inner {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  max-width: 820px;
  margin: 0 auto;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.assistant-composer__input {
  flex: 1;
  min-height: 24px;
  max-height: 160px;
  padding: 6px 4px;
  border: none;
  resize: none;
  background: transparent;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

.assistant-composer__input:focus {
  outline: none;
}

.assistant-composer__send {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #1c1c1c;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.assistant-composer__send:disabled {
  opacity: 0.45;
  cursor: wait;
}

.assistant-products {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-left: 1px solid #ececec;
  background: #fafafa;
}

.assistant-products__header {
  flex-shrink: 0;
  padding: 18px 18px 10px;
}

.assistant-products__search {
  flex-shrink: 0;
  margin: 0 18px 12px;
  width: calc(100% - 36px);
  height: 38px;
  padding: 0 12px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background: #fff;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
}

.assistant-products__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0 18px 18px;
}

.assistant-products__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
}

.assistant-products__footer {
  display: flex;
  justify-content: center;
  padding: 16px 0 4px;
}

.assistant-products__load-more {
  min-width: 140px;
  height: 40px;
  padding: 0 18px;
  border: 1px solid #ddd;
  border-radius: 999px;
  background: #fff;
  color: #1c1c1c;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.assistant-products__load-more:hover:not(:disabled) {
  background: #f4f4f5;
}

.assistant-products__load-more:disabled {
  opacity: 0.6;
  cursor: wait;
}

.assistant-products__search:disabled {
  opacity: 0.65;
  cursor: wait;
}

.assistant-products__empty {
  grid-column: 1 / -1;
  margin: 24px 0;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  color: #777;
}

.assistant-products__title {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #1c1c1c;
}

.assistant-products__count {
  margin: 4px 0 0;
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  color: #777;
}

.assistant-products__search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.assistant-product-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

.assistant-product-card__image {
  display: block;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: #eee;
}

.assistant-product-card__image img,
.assistant-product-card__image .image-skeleton {
  width: 100%;
  height: 100%;
}

.assistant-product-card__image img {
  object-fit: cover;
}

.assistant-product-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  color: #888;
}

.assistant-product-card__name {
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: #1c1c1c;
}

.site-header__nav-item--assistant .site-header__nav-link {
  padding: 8px 14px;
  border-radius: 999px;
  background: #1c1c1c;
  color: #fff !important;
}

.site-header__nav-item--assistant .site-header__nav-link::after {
  display: none !important;
}

@media (max-width: 1100px) {
  .assistant-page {
    grid-template-columns: 56px minmax(0, 1fr) minmax(260px, 320px);
  }

  .assistant-sidebar {
    width: 56px;
    padding-inline: 10px;
  }

  .assistant-sidebar .assistant-sidebar__action span:last-child,
  .assistant-sidebar .assistant-sidebar__section,
  .assistant-sidebar .assistant-sidebar__hint {
    display: none;
  }
}

@media (max-width: 900px) {
  .assistant-page {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .assistant-sidebar {
    display: none;
  }

  .assistant-products {
    display: none;
  }
}

@media (max-width: 1280px) {
  .page-assistant main {
    padding-top: 64px;
  }

  .site-has-announcement.page-assistant main {
    padding-top: 119px;
  }

  .assistant-page {
    height: calc(100vh - 64px);
  }

  .site-has-announcement .assistant-page {
    height: calc(100vh - 119px);
  }
}

.page-assistant-landing main {
  padding-top: 92px;
  background: linear-gradient(180deg, #f7f5f1 0%, #ffffff 420px);
}

.site-has-announcement.page-assistant-landing main {
  padding-top: 147px;
}

.assistant-landing {
  --assistant-brand: #1c1c1c;
  --assistant-accent: #d3b574;
  --assistant-accent-soft: rgba(211, 181, 116, 0.22);
  --assistant-accent-muted: #9a8555;
  --assistant-surface: #ffffff;
  --assistant-border: #e8e4dc;
  --assistant-muted: #6f6f78;
  --assistant-shadow: 0 22px 60px rgba(28, 28, 28, 0.08);

  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 24px 88px;
}

.assistant-landing__hero {
  text-align: center;
}

.assistant-landing__title {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(36px, 5.5vw, 56px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--assistant-brand);
}

.assistant-landing__subtitle {
  max-width: 720px;
  margin: 18px auto 0;
  font-family: "Roboto", sans-serif;
  font-size: clamp(16px, 2.2vw, 19px);
  line-height: 1.65;
  color: var(--assistant-muted);
}

.assistant-landing__form {
  margin-top: 42px;
}

.assistant-landing__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.assistant-landing__composer {
  max-width: 860px;
  margin: 0 auto;
  padding: 22px 22px 16px;
  border: 1px solid var(--assistant-border);
  border-radius: 28px;
  background: var(--assistant-surface);
  box-shadow: var(--assistant-shadow);
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.25s ease;
}

.assistant-landing__field {
  position: relative;
  text-align: left;
  --assistant-input-font-size: clamp(20px, 2.4vw, 24px);
  --assistant-input-line-height: 1.5;
}

.assistant-landing__input-surface {
  margin: 0;
  padding: 0;
  border: none;
  font-family: "Roboto", sans-serif;
  font-size: var(--assistant-input-font-size);
  font-weight: 400;
  line-height: var(--assistant-input-line-height);
  letter-spacing: normal;
  text-align: left;
  text-indent: 0;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: break-word;
  box-sizing: border-box;
}

.assistant-landing__input {
  display: block;
  width: 100%;
  min-height: 108px;
  max-height: 260px;
  resize: vertical;
  background: transparent;
  color: var(--assistant-brand);
  vertical-align: top;
  -webkit-appearance: none;
  appearance: none;
}

.assistant-landing__input:focus {
  outline: none;
}

.assistant-landing__input--typewriter {
  color: #9a9690;
  caret-color: transparent;
}

.assistant-landing__typewriter-cursor {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 2px;
  margin: 0;
  background: var(--assistant-accent-muted);
  pointer-events: none;
  animation: assistant-typewriter-blink 1s step-end infinite;
}

.assistant-landing__typewriter-cursor[hidden] {
  display: none;
}

@keyframes assistant-typewriter-blink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.assistant-landing__composer.is-focused {
  border-color: rgba(211, 181, 116, 0.65);
  box-shadow:
    0 26px 70px rgba(28, 28, 28, 0.1),
    0 0 0 4px var(--assistant-accent-soft);
}

.assistant-landing__suggestions {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  border-top: 1px solid transparent;
  pointer-events: none;
  transition: max-height 0.28s ease, opacity 0.2s ease, margin-top 0.28s ease, border-color 0.2s ease;
}

.assistant-landing__suggestions.is-open {
  max-height: 320px;
  opacity: 1;
  margin-top: 16px;
  padding-top: 4px;
  border-top-color: var(--assistant-border);
  pointer-events: auto;
}

.assistant-landing__suggestions-label {
  margin: 10px 0 6px;
  font-family: "Roboto", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--assistant-accent-muted);
}

.assistant-landing__suggestions-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.assistant-landing__suggestion {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: 14px;
  background: transparent;
  color: var(--assistant-brand);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.assistant-landing__suggestion:hover,
.assistant-landing__suggestion:focus-visible {
  background: #f8f6f2;
  outline: none;
  transform: translateX(2px);
}

.assistant-landing__suggestion-title {
  font-family: "Roboto", sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--assistant-brand);
}

.assistant-landing__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 14px;
}

.assistant-landing__send {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--assistant-brand);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.assistant-landing__send:hover {
  background: #2f2f2f;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(211, 181, 116, 0.35);
}

.assistant-landing__featured {
  margin-top: 88px;
  padding-top: 12px;
}

.assistant-landing__featured-header {
  text-align: center;
  margin-bottom: 32px;
}

.assistant-landing__featured-title {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--assistant-brand);
}

.assistant-landing__featured-subtitle {
  max-width: 680px;
  margin: 12px auto 0;
  font-family: "Roboto", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--assistant-muted);
}

.assistant-landing__featured-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 28px);
}

.assistant-landing-product {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.assistant-landing-product__image {
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  overflow: hidden;
  background: #ece8e1;
  box-shadow: 0 10px 28px rgba(28, 28, 28, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.assistant-landing-product:hover .assistant-landing-product__image {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(28, 28, 28, 0.14);
}

.assistant-landing-product__image img,
.assistant-landing-product__image .image-skeleton {
  width: 100%;
  height: 100%;
}

.assistant-landing-product__image img {
  object-fit: cover;
  transition: transform 0.35s ease;
}

.assistant-landing-product:hover .assistant-landing-product__image img {
  transform: scale(1.03);
}

.assistant-landing-product__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  color: #888;
}

.assistant-landing-product__name {
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--assistant-brand);
  padding: 0 2px;
}

@media (max-width: 900px) {
  .assistant-landing {
    padding-top: 36px;
    padding-bottom: 64px;
  }

  .assistant-landing__featured {
    margin-top: 64px;
  }

  .assistant-landing__featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 1280px) {
  .page-assistant-landing main {
    padding-top: 64px;
  }

  .site-has-announcement.page-assistant-landing main {
    padding-top: 119px;
  }
}
