.testing-support-card {
  --testing-support-border: color-mix(in srgb, var(--fg, #111) 9%, transparent);
  --testing-support-surface:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 198, 86, 0.18), transparent 55%),
    linear-gradient(180deg, color-mix(in srgb, var(--card, #fff) 95%, var(--bg, #f8f4ea)), var(--card, #fff));
  margin: 2em 0;
  padding: 16px;
  border: 1px solid var(--testing-support-border);
  border-radius: 18px;
  background: var(--testing-support-surface);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  scroll-margin-top: 12px;
}

.theme-dark .testing-support-card {
  --testing-support-border: color-mix(in srgb, var(--fg, #f5f5f5) 14%, transparent);
  --testing-support-surface:
    radial-gradient(120% 160% at 100% 0%, rgba(246, 173, 54, 0.06), transparent 55%),
    linear-gradient(180deg, rgba(32, 34, 37, 0.96), rgba(20, 22, 25, 0.98));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

.testing-support-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.testing-support-card__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, #111 66%, #666);
  color: color-mix(in srgb, var(--fg, #111) 66%, var(--sub, var(--muted, #666)));
}

.testing-support-card__title {
  margin: 6px 0 6px;
  font-size: 1.04rem;
  line-height: 1.25;
}

.testing-support-card__sub {
  margin: 0;
  
  color: #666;
  color: var(--sub, var(--muted, #666));
  font-size: 0.94rem;
}

.testing-support-card__toolbar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.testing-support-card__shop,
.testing-support-card__mode {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  border: 0;
  padding: 10px 12px;
  border-radius: 999px;
  color: #111;
  color: var(--fg, #111);
  font-size: 0.92rem;
  font-weight: 600;
  font: inherit;
  cursor: pointer;
}

.testing-support-card__shop {
  background: color-mix(in srgb, #111 8%, transparent);
  background: color-mix(in srgb, var(--fg, #111) 8%, transparent);
}

.testing-support-card__mode {
  background: color-mix(in srgb, #111 8%, transparent);
  background: color-mix(in srgb, var(--fg, #111) 8%, transparent);
  opacity: 0.4;
  transition: opacity 140ms ease, box-shadow 140ms ease, transform 140ms ease, background-color 140ms ease, color 140ms ease;
}

.testing-support-card__mode.is-active {
  opacity: 1;
  
  background:
    linear-gradient(135deg, color-mix(in srgb, #2f6fed 24%, transparent), rgba(255, 255, 255, 0.25)),
    color-mix(in srgb, #111 10%, transparent);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent, #2f6fed) 24%, transparent), rgba(255, 255, 255, 0.25)),
    color-mix(in srgb, var(--fg, #111) 10%, transparent);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, #2f6fed 42%, transparent),
    0 6px 14px color-mix(in srgb, #2f6fed 22%, transparent);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--accent, #2f6fed) 42%, transparent),
    0 6px 14px color-mix(in srgb, var(--accent, #2f6fed) 22%, transparent);
  transform: translateY(-1px) scale(1.01);
}

.theme-dark .testing-support-card__mode.is-active {
  color: color-mix(in srgb, #82a8ff 42%, #f5f5f5 58%);
  color: color-mix(in srgb, var(--accent, #82a8ff) 42%, var(--fg, #f5f5f5) 58%);
}


.testing-support-thread {
  min-height: 170px;
  max-height: 380px;
  overflow: auto;
  padding: 6px 2px 6px 0;
}

.testing-support-faq,
.testing-support-log {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.testing-support-faq__item,
.testing-support-msg__bubble {
  border: 1px solid color-mix(in srgb, #111 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--fg, #111) 8%, transparent);
  border-radius: 16px;
  padding: 12px 13px;
  background: color-mix(in srgb, #fff 92%, transparent);
  background: color-mix(in srgb, var(--card, #fff) 92%, transparent);
}

.theme-dark .testing-support-faq__item,
.theme-dark .testing-support-msg__bubble {
  background: rgba(255, 255, 255, 0.04);
}

.testing-support-faq__q {
  margin: 0 0 6px;
  font-size: 0.94rem;
}

.testing-support-faq__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.testing-support-faq__toggle .testing-support-faq__q {
  margin: 0;
}

.testing-support-faq__a {
  margin: 0;
  color: #666;
  color: var(--sub, var(--muted, #666));
  font-size: 0.92rem;
  line-height: 1.45;
}

.testing-support-human-intro {
  align-self: flex-start;
  max-width: 86%;
  margin: 2px 0 -4px 4px;
  color: #666;
  color: var(--sub, var(--muted, #666));
  font-size: 0.74rem;
  font-style: italic;
  letter-spacing: 0.01em;
  opacity: 0.55;
}

.testing-support-msg {
  display: flex;
}

.testing-support-msg.outgoing {
  justify-content: flex-end;
}

.testing-support-msg.incoming {
  justify-content: flex-start;
}

.testing-support-msg.outgoing .testing-support-msg__bubble {
  max-width: 82%;
  background:
    linear-gradient(135deg, rgba(255, 193, 79, 0.2), rgba(255, 150, 83, 0.08)),
    color-mix(in srgb, #fff 92%, transparent);
  background:
    linear-gradient(135deg, rgba(255, 193, 79, 0.2), rgba(255, 150, 83, 0.08)),
    color-mix(in srgb, var(--card, #fff) 92%, transparent);
}

.testing-support-msg.is-voice-draft .testing-support-msg__bubble {
  border-color: color-mix(in srgb, #2f6fed 32%, transparent);
  border-color: color-mix(in srgb, var(--accent, #2f6fed) 32%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, #2f6fed 18%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent, #2f6fed) 18%, transparent);
}

.testing-support-msg.incoming .testing-support-msg__bubble {
  max-width: 86%;
}

.testing-support-msg__bubble p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.testing-support-ai-rich {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.testing-support-ai-rich__section {
  display: grid;
  grid-gap: 4px;
  gap: 4px;
}

.testing-support-ai-rich__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  font-weight: 700;
  line-height: 1.3;
}

.testing-support-ai-rich__refs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #666;
  color: var(--sub, var(--muted, #666));
}

.testing-support-ai-rich__line {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.testing-support-ai-rich__list {
  margin: 0;
  padding-left: 1.15rem;
}

.testing-support-ai-rich__item {
  margin: 0 0 3px;
  overflow-wrap: anywhere;
}

.testing-support-ai-rich__item:last-child {
  margin-bottom: 0;
}

.testing-support-ai-rich__bibliography {
  margin: 0;
  padding: 2px 0 0 1.25rem;
  border-top: 1px solid color-mix(in srgb, #111 7%, transparent);
  border-top: 1px solid color-mix(in srgb, var(--fg, #111) 7%, transparent);
}

.testing-support-ai-rich__bib-item {
  margin: 0 0 2px;
  font-size: 0.78rem;
  line-height: 1.35;
}

.testing-support-faq__a a,
.testing-support-msg__bubble a {
  color: color-mix(in srgb, #2f6fed 82%, #111 18%);
  color: color-mix(in srgb, var(--accent, #2f6fed) 82%, var(--fg, #111) 18%);
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}

.testing-support-faq__a a:hover,
.testing-support-msg__bubble a:hover {
  opacity: 0.88;
}

.testing-support-msg__meta {
  display: block;
  margin-top: 7px;
  color: #666;
  color: var(--sub, var(--muted, #666));
  font-size: 0.76rem;
}

.testing-support-msg__typing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 18px;
}

.testing-support-msg__typing span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: color-mix(in srgb, #666 76%, transparent);
  background: color-mix(in srgb, var(--sub, var(--muted, #666)) 76%, transparent);
  animation: testing-support-dot 1s ease-in-out infinite;
}

.testing-support-msg__typing span:nth-child(2) {
  animation-delay: 0.16s;
}

.testing-support-msg__typing span:nth-child(3) {
  animation-delay: 0.32s;
}

.testing-support-empty {
  display: grid;
  place-items: center;
  grid-gap: 8px;
  gap: 8px;
  min-height: 160px;
  color: #666;
  color: var(--sub, var(--muted, #666));
  text-align: center;
}

.testing-support-empty .mdi {
  font-size: 24px;
}

.testing-support-empty__note {
  max-width: 34ch;
  margin: 0 auto;
  font-size: 0.82rem;
  line-height: 1.35;
}

.testing-support-suggestions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.testing-support-suggestions--inline {
  justify-content: flex-start;
  padding: 10px 0 2px;
}

.testing-support-suggestions--thread-switch {
  justify-content: center;
  padding: 10px 0 2px;
}

.testing-support-suggestions__lead {
  flex-basis: 100%;
  margin: 2px 0 2px;
  color: #666;
  color: var(--sub, var(--muted, #666));
  font-size: 0.8rem;
  line-height: 1.3;
  text-align: center;
}

.testing-support-suggestions--inline .testing-support-suggestions__lead {
  text-align: left;
}

.testing-support-suggestions__chip {
  border: 1px solid color-mix(in srgb, #111 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--fg, #111) 10%, transparent);
  background: color-mix(in srgb, #fff 92%, transparent);
  background: color-mix(in srgb, var(--card, #fff) 92%, transparent);
  color: #111;
  color: var(--fg, #111);
  border-radius: 999px;
  padding: 8px 10px;
  font: inherit;
  font-size: 0.82rem;
  line-height: 1.2;
  cursor: pointer;
}

.theme-dark .testing-support-suggestions__chip {
  background: rgba(255, 255, 255, 0.04);
}


@keyframes testing-support-dot {
  0%, 80%, 100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

.testing-support-compose {
  margin-top: 12px;
}

.testing-support-compose__input {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 88px;
  resize: vertical;
  padding: 13px 14px;
  border: 1px solid color-mix(in srgb, #111 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--fg, #111) 12%, transparent);
  border-radius: 16px;
  background: color-mix(in srgb, #fff 96%, transparent);
  background: color-mix(in srgb, var(--card, #fff) 96%, transparent);
  color: #111;
  color: var(--fg, #111);
  font: inherit;
  box-sizing: border-box;
}

.theme-dark .testing-support-compose__input {
  background: rgba(255, 255, 255, 0.04);
}

.testing-support-compose__input::placeholder {
  color: color-mix(in srgb, #666 92%, transparent);
  color: color-mix(in srgb, var(--sub, var(--muted, #666)) 92%, transparent);
}

.testing-support-compose__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.testing-support-compose__status {
  color: #666;
  color: var(--sub, var(--muted, #666));
  font-size: 0.82rem;
  line-height: 1.35;
}

.testing-support-compose__buttons {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 8px;
}

.testing-support-compose__voice-stop {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border: 1px solid var(--border, rgba(0, 0, 0, 0.16));
  border-radius: 999px;
  padding: 10px 14px;
  background: transparent;
  
  color: #1b1208;
  color: var(--fg, #1b1208);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.testing-support-compose__voice-stop.is-pause {
  background: color-mix(in srgb, #111 7%, transparent);
  background: color-mix(in srgb, var(--fg, #111) 7%, transparent);
}

.testing-support-compose__voice-stop.is-stop {
  background: transparent;
}

.testing-support-compose__send {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  border: 0;
  border-radius: 999px;
  padding: 11px 15px;
  background: linear-gradient(135deg, #f7bd4e, #ef8e45);
  color: #1b1208;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.testing-support-compose__send:disabled {
  opacity: 0.5;
}

@media (max-width: 640px) {
  .testing-support-card {
    padding: 14px;
    border-radius: 16px;
  }

  .testing-support-card__head,
  .testing-support-compose__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .testing-support-card__toolbar {
    justify-content: stretch;
  }

  .testing-support-card__shop,
  .testing-support-card__mode,
  .testing-support-compose__buttons,
  .testing-support-compose__send {
    justify-content: center;
  }
}

@media (orientation: portrait) and (max-width: 519px) {
  .testing-support-card {
    margin-bottom: 4rem;
  }

  .testing-support-card__toolbar {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
  }

  .testing-support-card__shop {
    flex: 1.2 1;
    width: 60%;
    justify-content: center;
  }

  .testing-support-card__mode {
    flex: 0.8 1;
    width: 40%;
    justify-content: center;
  }
}


.testing-support-card {
  --testing-support-separator: color-mix(in srgb, var(--fg, #111) 10%, transparent);
  --testing-support-fill: color-mix(in srgb, var(--card, #fff) 94%, var(--bg, #f5f5f7));
  --testing-support-secondary-fill: color-mix(in srgb, var(--fg, #111) 6%, transparent);
  --testing-support-accent: var(--accent-strong, var(--accent, #d19a2a));
  --testing-support-tile-feedback: color-mix(in srgb, var(--testing-support-accent) 5%, var(--card, #fff));
  padding: 18px;
  border: 1px solid var(--testing-support-separator);
  border-radius: 20px;
  background: var(--testing-support-fill);
  box-shadow: 0 1px 2px color-mix(in srgb, #111 6%, transparent);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--fg, #111) 6%, transparent);
}

.theme-dark .testing-support-card {
  --testing-support-separator: rgba(255, 255, 255, 0.1);
  --testing-support-fill: rgba(28, 28, 30, 0.94);
  --testing-support-secondary-fill: rgba(255, 255, 255, 0.07);
  --testing-support-tile-feedback: color-mix(in srgb, var(--testing-support-accent) 7%, #252527);
  background: var(--testing-support-fill);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.34);
}

.testing-support-card__head {
  margin-bottom: 12px;
  padding: 0 2px;
}

.testing-support-card__eyebrow {
  color: #111;
  color: var(--fg, #111);
  font-size: 0.76rem;
  letter-spacing: 0;
  text-transform: none;
}

.testing-support-card__eyebrow .mdi,
.testing-support-card__eyebrow .dp-icon {
  color: currentColor;
}

.testing-support-card__sub {
  max-width: 52ch;
  font-size: 0.86rem;
  line-height: 1.4;
}

.testing-support-card__sub + .testing-support-card__sub {
  margin-top: 3px;
  font-size: 0.76rem;
  opacity: 0.72;
}

.testing-support-chat-intro {
  margin: 0 0 12px;
  padding: 0 2px;
}

.testing-support-thread {
  padding: 8px 3px 8px 0;
  scrollbar-width: thin;
}

.testing-support-faq,
.testing-support-log {
  gap: 8px;
}

.testing-support-faq__item {
  border-color: var(--testing-support-separator);
  border-radius: 14px;
  background: var(--testing-support-secondary-fill);
  box-shadow: none;
}

.theme-dark .testing-support-faq__item {
  background: var(--testing-support-secondary-fill);
}

.testing-support-compose__voice-stop:active,
.testing-support-compose__send:active {
  opacity: 0.72;
}

.testing-support-faq__toggle:focus-visible,
.testing-support-suggestions__chip:focus-visible,
.testing-support-compose__voice-stop:focus-visible,
.testing-support-compose__send:focus-visible {
  outline: 2px solid var(--testing-support-accent);
  outline-offset: 2px;
}

.testing-support-msg__bubble {
  border: 0;
  border-radius: 18px;
  padding: 10px 13px;
  background: var(--testing-support-secondary-fill);
  box-shadow: none;
}

.theme-dark .testing-support-msg__bubble {
  background: var(--testing-support-secondary-fill);
}

.testing-support-msg.incoming .testing-support-msg__bubble {
  border-end-start-radius: 6px;
}

.testing-support-msg.outgoing .testing-support-msg__bubble {
  border-end-end-radius: 6px;
  color: #1c160b;
  background: color-mix(in srgb, var(--testing-support-accent) 78%, white 22%);
}

.theme-dark .testing-support-msg.outgoing .testing-support-msg__bubble {
  color: #171108;
  background: color-mix(in srgb, var(--testing-support-accent) 84%, white 16%);
}

.testing-support-msg.outgoing .testing-support-msg__meta {
  color: rgba(28, 22, 11, 0.62);
}

.testing-support-msg.is-voice-draft .testing-support-msg__bubble {
  border: 1px solid color-mix(in srgb, var(--testing-support-accent) 58%, transparent);
  box-shadow: none;
}

.testing-support-msg__meta {
  margin-top: 5px;
  font-size: 0.7rem;
  opacity: 0.76;
}

.testing-support-suggestions {
  gap: 7px;
}

.testing-support-suggestions__chip {
  border-color: var(--testing-support-separator);
  background: var(--testing-support-secondary-fill);
  border-radius: 999px;
  box-shadow: none;
  transition: background-color 140ms ease, border-color 140ms ease, opacity 100ms ease;
}

.theme-dark .testing-support-suggestions__chip {
  background: var(--testing-support-secondary-fill);
}

@media (hover: hover) {
  .testing-support-card .testing-support-suggestions__chip:hover,
  .testing-support-card .testing-support-faq__item:hover {
    border-color: color-mix(in srgb, var(--testing-support-accent) 28%, var(--testing-support-separator));
    background: var(--testing-support-tile-feedback);
    color: #111;
    color: var(--fg, #111);
  }
}

.testing-support-card .testing-support-suggestions__chip:active,
.testing-support-card .testing-support-suggestions__chip[aria-pressed="true"],
.testing-support-card .testing-support-faq__item:has(> .testing-support-faq__toggle[aria-expanded="true"]) {
  border-color: color-mix(in srgb, var(--testing-support-accent) 36%, var(--testing-support-separator));
  background: var(--testing-support-tile-feedback);
  color: #111;
  color: var(--fg, #111);
  opacity: 1;
}

.testing-support-card .testing-support-faq__toggle:is(:hover, :active) {
  background: transparent;
  color: inherit;
  opacity: 1;
}

.testing-support-compose {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--testing-support-separator);
}

.testing-support-compose__input {
  min-height: 76px;
  resize: none;
  border-color: var(--testing-support-separator);
  border-radius: 17px;
  background: var(--testing-support-secondary-fill);
  box-shadow: none;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.theme-dark .testing-support-compose__input {
  background: var(--testing-support-secondary-fill);
}

.testing-support-compose__input:focus {
  border-color: color-mix(in srgb, var(--testing-support-accent) 68%, transparent);
  background: color-mix(in srgb, #fff 98%, transparent);
  background: color-mix(in srgb, var(--card, #fff) 98%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--testing-support-accent) 14%, transparent);
}

.theme-dark .testing-support-compose__input:focus {
  background: rgba(255, 255, 255, 0.085);
}

.testing-support-compose__actions {
  margin-top: 8px;
  justify-content: flex-start;
}

.testing-support-compose__status {
  flex: 1 1 auto;
  min-width: 0;
}

.testing-support-compose__buttons {
  margin-inline-start: auto;
}

.testing-support-compose__voice-stop,
.testing-support-compose__send {
  min-height: 42px;
  border-radius: 999px;
  box-shadow: none;
  transition: opacity 100ms ease, background-color 140ms ease;
}

.testing-support-compose__voice-stop {
  border-color: var(--testing-support-separator);
  background: var(--testing-support-secondary-fill);
}

.testing-support-compose__send {
  justify-content: center;
  min-inline-size: 96px;
  padding-inline: 18px;
  background: var(--testing-support-accent);
  color: #171108;
}

.testing-support-compose__send:disabled {
  color: #666;
  color: var(--sub, var(--muted, #666));
  background: var(--testing-support-secondary-fill);
  opacity: 0.62;
}

@media (max-width: 640px) {
  .testing-support-card {
    padding: 14px;
    border-radius: 18px;
  }

  .testing-support-card__head {
    margin-bottom: 8px;
  }

  .testing-support-thread {
    max-height: min(48dvh, 380px);
  }

  .testing-support-compose__actions {
    flex-direction: row;
    align-items: center;
  }

  .testing-support-compose__status:empty {
    display: none;
  }

  .testing-support-compose__buttons {
    margin-inline-start: auto;
  }
}


.testing-page {
  padding: 0 0 100px;
  height: 100%;
  max-height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: testing-page-slide-in 220ms ease-out;
}

.testing-page__wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 1rem;
}

.testing-page__content {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  text-wrap: pretty;
  -webkit-hyphens: auto;
          hyphens: auto;
}

.testing-page__content p {
  text-wrap: pretty;
  -webkit-hyphens: auto;
          hyphens: auto;
}

.testing-page__text {
  padding: 0 2em;
}

@keyframes testing-page-slide-in {
  from {
    transform: translateX(16px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

.testing-support-card {
  --testing-support-border: color-mix(in srgb, var(--fg, #111) 9%, transparent);
  --testing-support-surface:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 198, 86, 0.18), transparent 55%),
    linear-gradient(180deg, color-mix(in srgb, var(--card, #fff) 95%, var(--bg, #f8f4ea)), var(--card, #fff));
  margin: 2em 0;
  padding: 16px;
  border: 1px solid var(--testing-support-border);
  border-radius: 18px;
  background: var(--testing-support-surface);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  scroll-margin-top: 12px;
}



@media (max-width: 519px) and (orientation: portrait) {
  .testing-page {
    --testing-mobile-gutter: 16px;
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    background: color-mix(in srgb, #f2f2f7 96%, #f2f2f7 4%);
    background: color-mix(in srgb, var(--bg, #f2f2f7) 96%, #f2f2f7 4%);
    animation-duration: 180ms;
  }

  .testing-page__wrap {
    display: block;
    padding-top: 12px;
  }

  .testing-page__content {
    max-width: none;
  }

  .testing-page__text {
    display: flex;
    flex-direction: column;
    padding-inline: var(--testing-mobile-gutter);
  }

  .testing-page__text > :first-child {
    order: 1;
  }

  .testing-page__text > .testing-howto-guide {
    order: 2;
  }

  .testing-page__text > .testing-page__intro {
    order: 3;
  }

  .testing-page .searchbar-row.searchbar-row-analyze {
    padding-left: 0;
    padding-right: 0;
  }

  .testing-page .ui-search-search-row {
    margin: 0 0 20px;
  }

  .testing-page .ui-search-search-wrap .searchbar-input {
    min-height: 50px;
    padding: 12px 44px 12px 16px;
    border: 0;
    border-radius: 14px;
    background: color-mix(in srgb, #fff 78%, #e9e9ee 22%);
    background: color-mix(in srgb, var(--card, #fff) 78%, #e9e9ee 22%);
    box-shadow: none;
    font-size: 17px;
    line-height: 22px;
  }

  .testing-page .ui-search-search-wrap .searchbar-center-placeholder {
    justify-content: flex-start;
    padding-inline: 16px 44px;
    font-size: 17px;
    line-height: 22px;
    opacity: 0.56;
  }

  .testing-page .ui-search-list {
    margin-top: 10px;
    gap: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    background: var(--card, #fff);
  }

  .testing-page .ui-search-row {
    min-height: 56px;
    padding: 8px 12px;
    border: 0;
    border-radius: 0 !important;
    background: transparent;
    box-shadow: none;
  }

  .testing-page .ui-search-row + .ui-search-row {
    border-top: 0.5px solid rgba(60, 60, 67, 0.2);
  }

  .testing-page .ui-search-row:hover {
    transform: none;
    box-shadow: none;
    background: rgba(118, 118, 128, 0.08);
  }

  .testing-page .ui-search-row--recent {
    box-sizing: border-box;
    min-height: 52px;
    align-items: center;
    gap: 12px;
    padding: 5px 12px;
  }

  .testing-page .ui-search-list--recent {
    margin-bottom: 24px;
    border: 0.5px solid rgba(60, 60, 67, 0.14);
  }

  .testing-page .ui-search-row--recent .ui-search-date-halo {
    flex-basis: 34px;
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    margin: 0;
    color: color-mix(in srgb, #8e8e93 82%, #111 18%);
    color: color-mix(in srgb, var(--series-color, #8e8e93) 82%, var(--fg, #111) 18%);
  }

  .testing-page .ui-search-row--recent .ui-search-date-halo > svg {
    width: 20px;
    height: 20px;
  }

  .testing-page .ui-search-row--recent .ui-search-title {
    font-size: 17px;
    font-weight: 500;
    line-height: 22px;
    letter-spacing: -0.01em;
  }

  .testing-page .ui-search-row--recent .ui-search-sub {
    margin-top: 1px;
    font-size: 12px;
    line-height: 16px;
    opacity: 0.58;
  }

  .testing-page .ui-search-row--recent:active {
    transform: none;
    background: rgba(118, 118, 128, 0.14);
  }

  .theme-dark .testing-page .ui-search-list--recent,
  [data-theme="dark"] .testing-page .ui-search-list--recent {
    border-color: rgba(84, 84, 88, 0.65);
  }
}

.testing-page__intro {
  margin-top: 24px;
  margin-bottom: 3rem;
  padding: 18px 18px 6px;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background:
    radial-gradient(140% 140% at 100% 0%, rgba(255, 207, 113, 0.118), transparent 55%),
    linear-gradient(180deg, rgba(255, 252, 246, 0.1196), rgba(249, 245, 237, 0.1198));
  box-shadow: 0 14px 34px rgba(63, 46, 16, 0.08);
}

.testing-page__intro h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
  line-height: 1.18;
}

.testing-page__intro p {
  margin: 0 0 12px;
  line-height: 1.58;
}

.theme-dark .testing-page__intro {
  border-color: rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(246, 173, 54, 0.08), transparent 55%),
    linear-gradient(180deg, rgba(32, 34, 37, 0.96), rgba(20, 22, 25, 0.98));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

.theme-dark .testing-support-card {
  --testing-support-border: color-mix(in srgb, var(--fg, #f5f5f5) 14%, transparent);
  --testing-support-surface:
    radial-gradient(120% 160% at 100% 0%, rgba(246, 173, 54, 0.06), transparent 55%),
    linear-gradient(180deg, rgba(32, 34, 37, 0.96), rgba(20, 22, 25, 0.98));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

.testing-support-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.testing-support-card__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, #111 66%, #666);
  color: color-mix(in srgb, var(--fg, #111) 66%, var(--sub, #666));
}

.testing-support-card__title {
  margin: 6px 0 6px;
  font-size: 1.04rem;
  line-height: 1.25;
}

.testing-support-card__sub {
  margin: 0;
  
  color: #666;
  color: var(--sub, #666);
  font-size: 0.94rem;
}

.testing-support-card__shop {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  border: 0;
  padding: 10px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, #111 8%, transparent);
  background: color-mix(in srgb, var(--fg, #111) 8%, transparent);
  color: #111;
  color: var(--fg, #111);
  font-size: 0.92rem;
  font-weight: 600;
  font: inherit;
  cursor: pointer;
}

.testing-support-thread {
  min-height: 170px;
  max-height: 380px;
  overflow: auto;
  padding: 6px 2px 6px 0;
}

.testing-support-faq,
.testing-support-log {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.testing-support-faq__item,
.testing-support-msg__bubble {
  border: 1px solid color-mix(in srgb, #111 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--fg, #111) 8%, transparent);
  border-radius: 16px;
  padding: 12px 13px;
  background: color-mix(in srgb, #fff 92%, transparent);
  background: color-mix(in srgb, var(--card, #fff) 92%, transparent);
}

.theme-dark .testing-support-faq__item,
.theme-dark .testing-support-msg__bubble {
  background: rgba(255, 255, 255, 0.04);
}

.testing-support-faq__q {
  margin: 0 0 6px;
  font-size: 0.94rem;
}

.testing-support-faq__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.testing-support-faq__toggle .testing-support-faq__q {
  margin: 0;
}

.testing-support-faq__a {
  margin: 0;
  color: #666;
  color: var(--sub, #666);
  font-size: 0.92rem;
  line-height: 1.45;
}

.testing-support-msg {
  display: flex;
}

.testing-support-msg.outgoing {
  justify-content: flex-end;
}

.testing-support-msg.incoming {
  justify-content: flex-start;
}

.testing-support-msg.outgoing .testing-support-msg__bubble {
  max-width: 82%;
  background:
    linear-gradient(135deg, rgba(255, 193, 79, 0.2), rgba(255, 150, 83, 0.08)),
    color-mix(in srgb, #fff 92%, transparent);
  background:
    linear-gradient(135deg, rgba(255, 193, 79, 0.2), rgba(255, 150, 83, 0.08)),
    color-mix(in srgb, var(--card, #fff) 92%, transparent);
}

.testing-support-msg.incoming .testing-support-msg__bubble {
  max-width: 86%;
}

.testing-support-msg__bubble p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.testing-support-faq__a a,
.testing-support-msg__bubble a {
  color: color-mix(in srgb, #2f6fed 82%, #111 18%);
  color: color-mix(in srgb, var(--accent, #2f6fed) 82%, var(--fg, #111) 18%);
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}

.testing-support-faq__a a:hover,
.testing-support-msg__bubble a:hover {
  opacity: 0.88;
}

.testing-support-msg__meta {
  display: block;
  margin-top: 7px;
  color: #666;
  color: var(--sub, #666);
  font-size: 0.76rem;
}

.testing-support-empty {
  display: grid;
  place-items: center;
  grid-gap: 8px;
  gap: 8px;
  min-height: 160px;
  color: #666;
  color: var(--sub, #666);
  text-align: center;
}

.testing-support-empty .mdi {
  font-size: 24px;
}

.testing-support-compose {
  margin-top: 12px;
  
}

.testing-support-compose__input {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 88px;
  resize: vertical;
  padding: 13px 14px;
  border: 1px solid color-mix(in srgb, #111 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--fg, #111) 12%, transparent);
  border-radius: 16px;
  background: color-mix(in srgb, #fff 96%, transparent);
  background: color-mix(in srgb, var(--card, #fff) 96%, transparent);
  color: #111;
  color: var(--fg, #111);
  font: inherit;
  box-sizing: border-box;
}

.theme-dark .testing-support-compose__input {
  background: rgba(255, 255, 255, 0.04);
}

.testing-support-compose__input::placeholder {
  color: color-mix(in srgb, #666 92%, transparent);
  color: color-mix(in srgb, var(--sub, #666) 92%, transparent);
}

.testing-support-compose__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.testing-support-compose__status {
  color: #666;
  color: var(--sub, #666);
  font-size: 0.82rem;
  line-height: 1.35;
}

.testing-support-compose__send {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  border: 0;
  border-radius: 999px;
  padding: 11px 15px;
  background: linear-gradient(135deg, #f7bd4e, #ef8e45);
  color: #1b1208;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.testing-support-compose__send:disabled {
  opacity: 0.5;
}

@media (max-width: 640px) {
  .testing-support-card {
    padding: 14px;
    border-radius: 16px;
  }

  .testing-support-card__head,
  .testing-support-compose__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .testing-support-card__shop,
  .testing-support-compose__send {
    justify-content: center;
  }
}

@media (max-width: 519px) and (orientation: portrait) {
  .testing-page__intro {
    margin: 28px 0 24px;
    padding: 16px;
    border: 0;
    border-radius: 12px;
    background: #fff;
    background: var(--card, #fff);
    box-shadow: none;
  }

  .testing-page__intro h3 {
    margin-bottom: 10px;
    font-size: 20px;
    line-height: 25px;
    letter-spacing: -0.02em;
  }

  .testing-page__intro p {
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 21px;
    color: #6d6d72;
    color: var(--sub, #6d6d72);
  }

  .testing-page__intro p:last-child {
    margin-bottom: 0;
  }

  .theme-dark .testing-page,
  [data-theme="dark"] .testing-page {
    background: color-mix(in srgb, #000 94%, #1c1c1e 6%);
    background: color-mix(in srgb, var(--bg, #000) 94%, #1c1c1e 6%);
  }

  .theme-dark .testing-page .ui-search-search-wrap .searchbar-input,
  [data-theme="dark"] .testing-page .ui-search-search-wrap .searchbar-input {
    background: rgba(118, 118, 128, 0.24);
  }

  .theme-dark .testing-page__intro,
  [data-theme="dark"] .testing-page__intro {
    border: 0;
    background: #1c1c1e;
    background: var(--card, #1c1c1e);
    box-shadow: none;
  }
}

