/* Host skins (opt-in): ChatGPT / Claude / Gemini / Grok / Perplexity + artifacts/modal.
   Requires tokens.css + host-chrome.css. Not MVP inventory. */

/* —— ChatGPT skin (chatgpt.tsx) — host composition, not MVP inventory —— */
.au-skin-chatgpt {
  --au-thread-max: 48rem;
  color: var(--au-fg);
}

.au-skin-chatgpt .au-chat-welcome {
  margin-bottom: 24px;
}

.au-skin-chatgpt .au-chat-welcome__title {
  font: 400 1.5rem/1.75rem var(--au-font-sans);
  letter-spacing: -0.02em;
}

.au-chat-disclaimer {
  color: #5d5d5d;
  font: 400 12px/1.4 var(--au-font-sans);
  margin: 0 auto;
  max-width: var(--au-thread-max, 48rem);
  padding: 4px 16px 0;
  text-align: center;
}

:root[data-theme="dark"] .au-chat-disclaimer,
html.dark .au-chat-disclaimer {
  color: #afafaf;
}

.au-skin-chatgpt .au-chat-input {
  background: #fff;
  border-color: #e5e5e5;
  border-radius: 28px;
  box-shadow: 0 2px 6px -2px rgba(0, 0, 0, 0.05);
  gap: 0;
  padding: 8px;
}

.au-skin-chatgpt .au-chat-input:focus-within {
  border-color: #d0d0d0;
  box-shadow: 0 2px 6px -2px rgba(0, 0, 0, 0.05);
}

:root[data-theme="dark"] .au-skin-chatgpt .au-chat-input,
html.dark .au-skin-chatgpt .au-chat-input {
  background: #212121;
  border-color: transparent;
  box-shadow: inset 0 0 1px 0 rgba(255, 255, 255, 0.2);
}

:root[data-theme="dark"] .au-skin-chatgpt .au-chat-input:focus-within,
html.dark .au-skin-chatgpt .au-chat-input:focus-within {
  border-color: transparent;
  box-shadow: inset 0 0 1px 0 rgba(255, 255, 255, 0.2);
}

.au-chat-input:has(.au-chat-input__row) .au-chat-input__footer {
  display: none;
}

.au-chat-input__row {
  align-items: flex-end;
  display: flex;
  gap: 4px;
  min-width: 0;
  width: 100%;
}

.au-chat-input__row .au-chat-input__textarea {
  flex: 1;
  max-height: 13rem;
  min-height: 2.25rem;
  padding: 6px 8px 6px 4px;
}

.au-skin-chatgpt .au-chat-input__model {
  display: none;
}

.au-skin-chatgpt .au-chat-input__footer {
  display: none;
}

.au-skin-chatgpt .au-chat-input__tool,
.au-skin-chatgpt .au-chat-input__actions .au-btn {
  --au-btn-height: 36px;
  --au-btn-padding-inline: 0;
  --au-btn-radius: var(--au-radius-pill);
  aspect-ratio: 1;
  color: #5d5d5d;
  flex-shrink: 0;
  min-width: 36px;
  width: 36px;
}

.au-skin-chatgpt .au-chat-input__tool:hover:not(:disabled),
.au-skin-chatgpt .au-chat-input__actions .au-btn--ghost:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.07);
  color: #5d5d5d;
}

:root[data-theme="dark"] .au-skin-chatgpt .au-chat-input__tool,
:root[data-theme="dark"] .au-skin-chatgpt .au-chat-input__actions .au-btn--ghost,
html.dark .au-skin-chatgpt .au-chat-input__tool,
html.dark .au-skin-chatgpt .au-chat-input__actions .au-btn--ghost {
  color: #cdcdcd;
}

:root[data-theme="dark"] .au-skin-chatgpt .au-chat-input__tool:hover:not(:disabled),
:root[data-theme="dark"] .au-skin-chatgpt .au-chat-input__actions .au-btn--ghost:hover:not(:disabled),
html.dark .au-skin-chatgpt .au-chat-input__tool:hover:not(:disabled),
html.dark .au-skin-chatgpt .au-chat-input__actions .au-btn--ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.15);
  color: #cdcdcd;
}

.au-skin-chatgpt .au-chat-input__actions .au-btn--primary {
  background: #0d0d0d;
  color: #fff;
}

:root[data-theme="dark"] .au-skin-chatgpt .au-chat-input__actions .au-btn--primary,
html.dark .au-skin-chatgpt .au-chat-input__actions .au-btn--primary {
  background: #fff;
  color: #000;
}

.au-skin-chatgpt .au-chat-input__actions .au-btn--primary svg {
  height: 20px;
  width: 20px;
}

.au-skin-chatgpt .au-chat-input__attachment-preview {
  border-radius: 12px;
  height: 128px;
  width: 128px;
}

.au-skin-chatgpt .au-chat-input__attachment-remove {
  --au-btn-height: 28px;
  background: #fff !important;
  border: 1px solid #e5e5e5;
  color: #6b6b6b !important;
  inset-inline-end: -6px;
  min-width: 28px;
  top: -6px;
  width: 28px;
}

.au-skin-chatgpt .au-chat-input__attachment-remove:hover:not(:disabled) {
  background: #f5f5f5 !important;
  color: #0d0d0d !important;
}

:root[data-theme="dark"] .au-skin-chatgpt .au-chat-input__attachment-remove,
html.dark .au-skin-chatgpt .au-chat-input__attachment-remove {
  background: #1a1a1a !important;
  border-color: #3a3a3a;
  color: #9a9a9a !important;
}

.au-skin-chatgpt .au-chat-message--user .au-chat-message__body {
  background: #0d0d0d;
  border-radius: 22px;
  color: #fff;
  line-height: 1.5;
  max-width: 70%;
  padding: 10px 16px;
}

:root[data-theme="dark"] .au-skin-chatgpt .au-chat-message--user .au-chat-message__body,
html.dark .au-skin-chatgpt .au-chat-message--user .au-chat-message__body {
  background: #ececec;
  color: #0d0d0d;
}

.au-skin-chatgpt .au-chat-message--user .au-chat-message__actions {
  justify-content: flex-end;
  margin-top: 2px;
  min-height: 0;
  padding-top: 0;
}

.au-skin-chatgpt .au-chat-message--assistant {
  padding-inline: 0;
}

/* Autohide action bars (chatgpt ActionBarPrimitive autohide="always") — keep focus-visible path */
@media (hover: hover) and (pointer: fine) {
  .au-skin-chatgpt .au-chat-message__actions {
    opacity: 0;
    transition: opacity 120ms ease;
  }

  .au-skin-chatgpt .au-chat-message:hover .au-chat-message__actions,
  .au-skin-chatgpt .au-chat-message:focus-within .au-chat-message__actions {
    opacity: 1;
  }

  @media (prefers-reduced-motion: reduce) {
    .au-skin-chatgpt .au-chat-message__actions {
      transition: none;
    }
  }
}

.au-skin-chatgpt .au-chat-message--assistant .au-chat-message__actions {
  margin-inline-start: -8px;
  min-height: 0;
  padding-top: 4px;
}

.au-msg-action {
  --au-btn-height: 32px;
  --au-btn-padding-inline: 0;
  --au-btn-radius: var(--au-radius-md);
  aspect-ratio: 1;
  color: #5d5d5d;
  min-width: 32px;
  width: 32px;
}

.au-msg-action:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.07);
  color: #5d5d5d;
}

:root[data-theme="dark"] .au-msg-action,
html.dark .au-msg-action {
  color: #cdcdcd;
}

:root[data-theme="dark"] .au-msg-action:hover:not(:disabled),
html.dark .au-msg-action:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.15);
  color: #cdcdcd;
}

.au-msg-action svg {
  display: block;
  height: 18px;
  margin: auto;
  pointer-events: none;
  width: 18px;
}
.au-msg-action[data-au-state="copied"] { color: var(--au-success); }


.au-msg-more {
  position: relative;
}

.au-msg-more > summary {
  list-style: none;
}

.au-msg-more > summary::-webkit-details-marker {
  display: none;
}

.au-msg-more__menu {
  background: color-mix(in srgb, var(--au-surface) 95%, transparent);
  border: 1px solid var(--au-border-color);
  border-radius: var(--au-radius-lg);
  box-shadow: var(--au-elevation-menu);
  inset-inline-end: 0;
  list-style: none;
  margin: 6px 0 0;
  min-width: 10rem;
  padding: 6px;
  position: absolute;
  top: 100%;
  z-index: 20;
}

.au-msg-more__item {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: var(--au-radius-md);
  color: var(--au-fg-muted);
  cursor: pointer;
  display: flex;
  font: 400 14px/1.3 var(--au-font-sans);
  gap: 10px;
  padding: 8px 12px;
  text-align: start;
  width: 100%;
}

.au-msg-more__item:hover,
.au-msg-more__item:focus-visible {
  background: var(--au-surface-muted);
  color: var(--au-fg);
  outline: 0;
}

.au-msg-more__item svg {
  flex-shrink: 0;
  height: 18px;
  width: 18px;
}

.au-chat-message__attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-bottom: 4px;
}

.au-attachment {
  position: relative;
}

.au-attachment__preview {
  background: var(--au-surface-muted);
  border: 1px solid var(--au-border-color);
  border-radius: 16px;
  display: block;
  height: 128px;
  overflow: hidden;
  padding: 0;
  width: 128px;
}

.au-attachment__preview img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.au-skin-chatgpt .au-branch-picker {
  font: 600 14px/1 var(--au-font-sans);
  margin-inline-start: 4px;
}

.au-skin-chatgpt .au-branch-picker__btn {
  --au-btn-height: 32px;
  min-width: 32px;
  width: 32px;
}

.au-edit-composer {
  background: color-mix(in srgb, #e9e9e9 50%, transparent);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 auto;
  max-width: var(--au-thread-max, 48rem);
  padding: 0;
  width: 100%;
}

:root[data-theme="dark"] .au-edit-composer,
html.dark .au-edit-composer {
  background: #323232;
}

.au-edit-composer__textarea {
  background: transparent;
  border: 0;
  color: var(--au-fg);
  font: 16px/1.5 var(--au-font-sans);
  min-height: 2rem;
  outline: 0;
  padding: 20px 20px 0;
  resize: none;
  width: 100%;
}

.au-edit-composer__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin: 8px 12px 12px;
}

.au-edit-composer__actions .au-btn {
  --au-btn-radius: var(--au-radius-pill);
  font-weight: 600;
  padding-inline: 12px;
}

.au-skin-chatgpt .au-chat-thread[data-au-empty] .au-chat-thread__messages {
  padding-bottom: 16vh;
}


/* clone-thread-shell: search, collapse rail, mobile drawer (host-owned). */
.au-thread-list__top {
  align-items: center;
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}

.au-thread-list__collapse {
  --au-btn-height: 32px;
  --au-btn-padding-inline: 0;
  --au-btn-radius: var(--au-radius-md);
  aspect-ratio: 1;
  flex-shrink: 0;
  min-width: 32px;
  width: 32px;
}

.au-thread-list__collapse svg {
  display: block;
  height: 16px;
  margin: auto;
  pointer-events: none;
  width: 16px;
}

.au-thread-list__brand {
  font: 500 14px/1.2 var(--au-font-sans);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.au-thread-list__search {
  display: block;
  margin: 0 0 8px;
}

.au-thread-list__search input {
  background: var(--au-surface);
  border: 1px solid var(--au-border-color);
  border-radius: var(--au-radius-md);
  color: var(--au-fg);
  font: 400 13px/1.3 var(--au-font-sans);
  padding: 8px 10px;
  width: 100%;
}

.au-thread-list__search input:focus-visible {
  box-shadow: var(--au-focus-ring);
  outline: 2px solid var(--au-focus);
  outline-offset: 2px;
}

.au-chat-shell[data-au-sidebar="collapsed"] .au-thread-list {
  --au-thread-list-width: 3.25rem;
  align-items: center;
  padding-inline: 8px;
}

.au-chat-shell[data-au-sidebar="collapsed"] .au-thread-list__brand,
.au-chat-shell[data-au-sidebar="collapsed"] .au-thread-list__search,
.au-chat-shell[data-au-sidebar="collapsed"] .au-thread-list__group,
.au-chat-shell[data-au-sidebar="collapsed"] .au-thread-list__title,
.au-chat-shell[data-au-sidebar="collapsed"] .au-thread-list__new span,
.au-chat-shell[data-au-sidebar="collapsed"] .au-thread-list__more,
.au-chat-shell[data-au-sidebar="collapsed"] .au-thread-list__menu {
  display: none;
}

.au-chat-shell[data-au-sidebar="collapsed"] .au-thread-list__new {
  justify-content: center;
  padding-inline: 0;
  width: 32px;
}

.au-chat-shell[data-au-sidebar="collapsed"] .au-thread-list__trigger {
  justify-content: center;
  padding: 0;
}

.au-chat-shell[data-au-sidebar="collapsed"] .au-thread-list__item:hover .au-thread-list__trigger,
.au-chat-shell[data-au-sidebar="collapsed"] .au-thread-list__item:focus-within .au-thread-list__trigger,
.au-chat-shell[data-au-sidebar="collapsed"] .au-thread-list__item[data-active] .au-thread-list__trigger {
  padding-inline-end: 0;
}

.au-thread-drawer {
  display: none;
}

@media (max-width: 47.99rem) {
  .au-chat-shell--stage .au-thread-list {
    display: none;
  }

  .au-thread-drawer {
    display: block;
    margin: 8px 12px 0;
  }

  .au-thread-drawer > summary {
    align-items: center;
    background: color-mix(in srgb, var(--au-surface) 70%, transparent);
    border: 1px solid var(--au-border-color);
    border-radius: var(--au-radius-md);
    cursor: pointer;
    display: inline-flex;
    font: 500 13px/1 var(--au-font-sans);
    gap: 8px;
    list-style: none;
    min-height: 36px;
    padding: 0 12px;
  }

  .au-thread-drawer > summary::-webkit-details-marker {
    display: none;
  }

  .au-thread-drawer[open] > summary {
    margin-bottom: 8px;
  }

  .au-thread-drawer .au-thread-list {
    border: 1px solid var(--au-border-color);
    border-radius: var(--au-radius-md);
    display: flex;
    max-height: 16rem;
    width: 100%;
  }
}


/* chatgpt ToolFallback — host composition over tool-call, not MVP inventory */
.au-tool-fallback {
  background: var(--au-surface);
  border: 1px solid var(--au-border-color);
  border-radius: var(--au-radius-md);
  margin-block: 8px;
  overflow: hidden;
}

.au-tool-fallback__header {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  padding: 10px 12px;
}

.au-tool-fallback__name {
  font: 600 13px/1.3 var(--au-font-sans);
}

.au-tool-fallback__status {
  color: var(--au-fg-muted);
  font: 500 12px/1 var(--au-font-sans);
}

.au-tool-fallback__body {
  border-top: 1px solid var(--au-border-color);
  color: var(--au-fg-muted);
  font: 13px/1.45 var(--au-font-mono);
  margin: 0;
  padding: 12px;
  white-space: pre-wrap;
}


/* ChatGPT cancel/stop while streaming — host swaps Send for this control */
.au-chat-input__stop {
  --au-btn-height: 36px;
  --au-btn-padding-inline: 0;
  --au-btn-radius: var(--au-radius-pill);
  aspect-ratio: 1;
  background: var(--au-action) !important;
  color: var(--au-action-fg) !important;
  min-width: 36px;
  width: 36px;
}

.au-chat-input__stop-square {
  background: currentColor;
  border-radius: 2px;
  display: block;
  height: 10px;
  margin: auto;
  width: 10px;
}

/* Empty-composer voice mode (AudioLines) — filled circle beside Dictate */
.au-chat-input__voice {
  --au-btn-height: 36px;
  --au-btn-padding-inline: 0;
  --au-btn-radius: var(--au-radius-pill);
  aspect-ratio: 1;
  background: var(--au-action) !important;
  color: var(--au-action-fg) !important;
  min-width: 36px;
  width: 36px;
}

.au-chat-input__voice svg {
  display: block;
  margin: auto;
}

/* Dictation stop — same stop square with pulse (host sets data-au-state="dictating") */
.au-chat-input[data-au-state="dictating"] .au-chat-input__stop-square {
  animation: au-dictate-pulse 1s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .au-chat-input[data-au-state="dictating"] .au-chat-input__stop-square {
    animation: none;
  }
}

@keyframes au-dictate-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}


/* artifacts.tsx — split chat + artifact panel (host composition) */
.au-artifacts {
  display: flex;
  gap: 0;
  min-height: 420px;
  width: 100%;
}

.au-artifacts__chat {
  flex: 1 1 50%;
  min-width: 0;
}

.au-artifacts__panel {
  border-inline-start: 1px solid var(--au-border-color);
  display: flex;
  flex: 1 1 50%;
  flex-direction: column;
  min-width: 0;
  padding: 12px;
}

.au-artifacts__frame {
  background: var(--au-surface);
  border: 1px solid var(--au-border-color);
  border-radius: var(--au-radius-lg);
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.au-artifacts__tabs {
  border-bottom: 1px solid var(--au-border-color);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.au-artifacts__tabs > label {
  color: var(--au-fg-muted);
  cursor: pointer;
  font: 500 13px/1 var(--au-font-sans);
  padding: 10px 12px;
  text-align: center;
}


.au-artifacts__code,
.au-artifacts__preview {
  display: none;
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 12px 16px;
}

.au-artifacts__code {
  font: 13px/1.5 var(--au-font-mono);
  white-space: pre-wrap;
}

#au-artifact-code:checked ~ .au-artifacts__tabs label[for="au-artifact-code"],
#au-artifact-preview:checked ~ .au-artifacts__tabs label[for="au-artifact-preview"] {
  border-bottom: 2px solid var(--au-action);
  color: var(--au-fg);
}

#au-artifact-code:checked ~ .au-artifacts__code { display: block; }
#au-artifact-preview:checked ~ .au-artifacts__preview { display: block; }

@media (max-width: 47.99rem) {
  .au-artifacts { flex-direction: column; }
  .au-artifacts__panel { border-inline-start: 0; border-top: 1px solid var(--au-border-color); }
}

/* modal.tsx — floating assistant entry (host composition) */
.au-assistant-modal {
  inset-inline-end: 20px;
  bottom: 20px;
  position: fixed;
  z-index: 40;
}

.au-assistant-modal > summary {
  align-items: center;
  background: var(--au-action);
  border: 0;
  border-radius: var(--au-radius-pill);
  box-shadow: var(--au-elevation-composer);
  color: var(--au-action-fg);
  cursor: pointer;
  display: inline-flex;
  font: 600 13px/1 var(--au-font-sans);
  gap: 8px;
  height: 48px;
  list-style: none;
  padding: 0 18px;
}

.au-assistant-modal > summary::-webkit-details-marker { display: none; }

.au-assistant-modal__panel {
  background: var(--au-bg);
  border: 1px solid var(--au-border-color);
  border-radius: var(--au-radius-xl);
  bottom: 60px;
  box-shadow: var(--au-elevation-composer-focus, var(--au-elevation-composer));
  display: flex;
  flex-direction: column;
  inset-inline-end: 0;
  max-height: min(70vh, 560px);
  position: absolute;
  width: min(24rem, calc(100vw - 32px));
}

.au-assistant-modal__panel .au-chat-thread {
  min-height: 280px;
}


/* --- Skin ports: claude / gemini / grok / perplexity (examples) --- */

.au-skin-claude {
  --au-bg: #f0ece0;
  --au-surface: #eae4d3;
  --au-border-color: #dcd4c2;
  --au-fg: #1a1a18;
  --au-fg-muted: #8a8780;
  --au-action: #c96442;
  --au-action-fg: #fffaf5;
  --au-font-sans: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  background: var(--au-bg);
  color: var(--au-fg);
}

:root[data-theme="dark"] .au-skin-claude,
html.dark .au-skin-claude {
  --au-bg: #2b2a27;
  --au-surface: #252420;
  --au-border-color: #3b3934;
  --au-fg: #eee;
  --au-fg-muted: #a3a098;
  --au-action: #d08a6a;
}

.au-skin-claude .au-chat-welcome__title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 400;
}

.au-skin-claude .au-thread-list {
  background: var(--au-surface);
  border-color: var(--au-border-color);
}

.au-skin-claude .au-chat-input {
  background: color-mix(in srgb, var(--au-surface) 70%, #fff);
  border-radius: 22px;
}

.au-skin-gemini {
  --au-bg: #fdfcfc;
  --au-surface: #fff;
  --au-border-color: #e3e3e3;
  --au-fg: #1f1f1f;
  --au-fg-muted: #5e6063;
  --au-action: #0b57d0;
  --au-action-fg: #fff;
  background: var(--au-bg);
  color: var(--au-fg);
}

:root[data-theme="dark"] .au-skin-gemini,
html.dark .au-skin-gemini {
  --au-bg: #0c0c0c;
  --au-surface: #1a1a1a;
  --au-border-color: #2a2a2a;
  --au-fg: #e3e3e3;
  --au-fg-muted: #9aa0a6;
  --au-action: #a8c7fa;
  --au-action-fg: #062e6f;
}

.au-skin-gemini .au-chat-welcome {
  position: relative;
}

.au-skin-gemini .au-chat-welcome::before {
  background: #a9d1fb;
  border-radius: 140px;
  content: "";
  filter: blur(90px);
  height: 200px;
  left: 50%;
  opacity: 0.55;
  pointer-events: none;
  position: absolute;
  top: 70%;
  transform: translate(-50%, -50%);
  width: min(680px, 92%);
  z-index: 0;
}

:root[data-theme="dark"] .au-skin-gemini .au-chat-welcome::before,
html.dark .au-skin-gemini .au-chat-welcome::before {
  background: #1b2f9c;
  opacity: 0.5;
}

.au-skin-gemini .au-chat-welcome__title,
.au-skin-gemini .au-chat-thread__composer {
  position: relative;
  z-index: 1;
}

.au-skin-gemini .au-chat-welcome__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 400;
  margin-bottom: 1.25rem;
  text-align: center;
}

.au-skin-gemini .au-chat-input {
  border-radius: 28px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
}

.au-skin-grok {
  --au-bg: #fdfdfd;
  --au-surface: #f8f8f8;
  --au-border-color: #e5e5e5;
  --au-fg: #0d0d0d;
  --au-fg-muted: #9a9a9a;
  --au-action: #0d0d0d;
  --au-action-fg: #fff;
  background: var(--au-bg);
  color: var(--au-fg);
}

:root[data-theme="dark"] .au-skin-grok,
html.dark .au-skin-grok {
  --au-bg: #141414;
  --au-surface: #212121;
  --au-border-color: #2a2a2a;
  --au-fg: #f5f5f5;
  --au-fg-muted: #9a9a9a;
  --au-action: #f5f5f5;
  --au-action-fg: #0d0d0d;
}

.au-skin-grok .au-chat-welcome {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  justify-content: center;
  min-height: 220px;
}

.au-skin-grok .au-chat-welcome__mark {
  color: var(--au-fg);
  font: 700 28px/1 var(--au-font-sans);
  letter-spacing: -0.04em;
}

.au-skin-grok .au-chat-input {
  background: var(--au-surface);
  border-radius: 28px;
  box-shadow: inset 0 0 0 1px var(--au-border-color);
}

.au-skin-perplexity {
  --au-bg: #f6f2ec;
  --au-surface: #efeae1;
  --au-border-color: #e0d9cc;
  --au-fg: #1f1b17;
  --au-fg-muted: #7a7268;
  --au-action: #25211c;
  --au-action-fg: #f8f5f0;
  --au-thread-max: 40rem;
  background: var(--au-bg);
  color: var(--au-fg);
}

:root[data-theme="dark"] .au-skin-perplexity,
html.dark .au-skin-perplexity {
  --au-bg: #171615;
  --au-surface: #1d1b19;
  --au-border-color: #332f2a;
  --au-fg: #f5f2ed;
  --au-fg-muted: #9d968d;
  --au-action: #f5f2ed;
  --au-action-fg: #1b1713;
}

.au-skin-perplexity .au-thread-list {
  background: var(--au-surface);
  border-color: var(--au-border-color);
}

.au-skin-perplexity .au-chat-thread__messages,
.au-skin-perplexity .au-chat-thread__composer {
  margin-inline: auto;
  max-width: var(--au-thread-max);
  width: 100%;
}

.au-skin-perplexity .au-chat-welcome__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
}

.au-skin-perplexity .au-chat-input {
  border-radius: 999px;
  padding-inline: 4px;
}

.au-skin-perplexity .au-chat-input__actions .au-btn--primary {
  border-radius: 999px;
}


.au-skin-claude .au-chat-welcome__title {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: center;
}

.au-skin-claude .au-chat-welcome__spark {
  color: var(--au-action);
  flex-shrink: 0;
}

.au-skin-claude .au-chat-input {
  background: #fff;
  border: 1px solid #e5e0d6;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px 10px;
}

:root[data-theme="dark"] .au-skin-claude .au-chat-input,
html.dark .au-skin-claude .au-chat-input {
  background: #1f1e1b;
  border-color: #3d3a35;
}

.au-skin-claude .au-chat-input__row {
  align-items: flex-start;
  flex-wrap: wrap;
}

.au-skin-claude .au-chat-input__textarea {
  flex: 1 1 100%;
  min-height: 24px;
  order: -1;
  width: 100%;
}

.au-skin-claude .au-chat-input__tool {
  margin-inline-end: auto;
}

.au-skin-claude .au-chat-input__model {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--au-fg);
  cursor: pointer;
  display: inline-flex;
  font: 400 13px/1 var(--au-font-sans);
  gap: 4px;
  height: 32px;
  padding: 0 10px;
}

.au-skin-claude .au-chat-input__model:hover {
  background: color-mix(in srgb, var(--au-fg) 5%, transparent);
}

.au-skin-claude .au-chat-message--user .au-chat-message__body {
  background: #e5e0d6;
  border-radius: 16px;
  color: #1a1a18;
}

:root[data-theme="dark"] .au-skin-claude .au-chat-message--user .au-chat-message__body,
html.dark .au-skin-claude .au-chat-message--user .au-chat-message__body {
  background: #393937;
  color: #eee;
}

.au-mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}

.au-mode-tabs__btn {
  align-items: center;
  background: transparent;
  border: 1px solid var(--au-border-color);
  border-radius: 10px;
  color: var(--au-fg);
  cursor: default;
  display: inline-flex;
  font: 400 13px/1 var(--au-font-sans);
  gap: 6px;
  height: 32px;
  padding: 0 12px;
}

.au-skin-claude .au-mode-tabs__btn {
  border-color: #e5e0d6;
  color: #3d3a35;
}

:root[data-theme="dark"] .au-skin-claude .au-mode-tabs__btn,
html.dark .au-skin-claude .au-mode-tabs__btn {
  border-color: #3d3a35;
  color: #cdc9be;
}


.au-skin-perplexity .au-chat-welcome {
  align-items: stretch;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: center;
  min-height: 280px;
  padding-inline: 16px;
}

.au-skin-perplexity .au-chat-welcome__mark {
  color: var(--au-fg);
  font: 500 clamp(2.5rem, 6vw, 3.1rem)/1 var(--au-font-sans);
  letter-spacing: -0.06em;
  text-align: center;
}

.au-skin-perplexity .au-chat-input {
  background: #fcfbf8;
  border: 1px solid #d7d0c5;
  border-radius: 24px;
  box-shadow: 0 2px 4px -2px rgb(32 24 18 / 0.06), 0 8px 24px -12px rgb(32 24 18 / 0.12);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0;
}

:root[data-theme="dark"] .au-skin-perplexity .au-chat-input,
html.dark .au-skin-perplexity .au-chat-input {
  background: #23211f;
  border-color: #4a433b;
}

.au-skin-perplexity .au-chat-input__textarea {
  min-height: 5rem;
  padding: 16px 20px 0;
}

.au-skin-perplexity .au-chat-input__row {
  align-items: center;
  padding: 4px 12px 12px;
}

.au-skin-perplexity .au-chat-input__chip {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--au-fg-muted);
  cursor: pointer;
  display: inline-flex;
  font: 500 13px/1 var(--au-font-sans);
  gap: 6px;
  height: 36px;
  padding: 0 12px;
}

.au-skin-perplexity .au-chat-input__chip:hover {
  background: #f2ede6;
  color: var(--au-fg);
}

:root[data-theme="dark"] .au-skin-perplexity .au-chat-input__chip:hover,
html.dark .au-skin-perplexity .au-chat-input__chip:hover {
  background: #2b2825;
}


