:root {
  color-scheme: light;
  --bg: #eef2f3;
  --panel: #ffffff;
  --ink: #152126;
  --muted: #64747c;
  --line: #d9e1e5;
  --teal: #0f766e;
  --teal-dark: #115e59;
  --coral: #f97316;
  --assistant: #f3f7f8;
  --customer: #0f766e;
  --shadow: 0 24px 70px rgba(21, 33, 38, 0.14);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background:
    radial-gradient(circle at 18% 12%, rgba(15, 118, 110, 0.16), transparent 25rem),
    radial-gradient(circle at 82% 8%, rgba(249, 115, 22, 0.16), transparent 24rem),
    linear-gradient(135deg, #f8fafb 0%, var(--bg) 100%);
}

body.modal-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 2vw, 2rem);
}

.app-panel {
  width: min(100%, 860px);
  height: min(88vh, 780px);
  min-height: 600px;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(217, 225, 229, 0.9);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  color: var(--teal);
  background: #e7f6f4;
  border: 1px solid #c9e8e4;
  border-radius: 8px;
}

.brand-mark svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

h1,
p {
  margin: 0;
}

h1 {
  font-size: 1.2rem;
  line-height: 1.2;
  font-weight: 760;
}

.brand p {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(72px, 1fr));
  padding: 0.2rem;
  background: #eef5f6;
  border: 1px solid #d7e5e8;
  border-radius: 8px;
}

.tab-button {
  min-height: 36px;
  padding: 0 0.75rem;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-weight: 700;
}

.tab-button.active {
  color: var(--teal-dark);
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(21, 33, 38, 0.12);
}

.ghost-button {
  min-height: 40px;
  padding: 0 0.85rem;
  color: var(--teal-dark);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.ghost-button:hover {
  border-color: #99d3cc;
  background: #f4fbfa;
}

.is-hidden {
  display: none;
}

.view-stack {
  min-height: 0;
  overflow: hidden;
}

.view {
  height: 100%;
  min-height: 0;
}

.chat-view {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  min-height: 0;
}

.setup-view {
  overflow-y: auto;
  background: #f8fafb;
}

.review-view {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 0;
  background: #f8fafb;
}

.review-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.review-toolbar p {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.review-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
}

.chat-log-reference {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  background: #f8fcfb;
}

.chat-log-reference[hidden] {
  display: none;
}

.chat-log-reference label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.chat-log-reference input {
  width: 100%;
  min-width: 0;
  padding: 0.6rem 0.7rem;
  color: var(--ink);
  font: inherit;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.chat-log-list {
  overflow-y: auto;
  padding: 1rem;
  border-right: 1px solid var(--line);
}

.chat-log-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: 0.45rem;
  align-items: stretch;
  margin-bottom: 0.6rem;
}

.chat-log-button {
  width: 100%;
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem;
  color: var(--ink);
  text-align: left;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.chat-log-button:hover,
.chat-log-button.active {
  border-color: #8ecdc5;
  background: #f4fbfa;
}

.chat-log-copy-button {
  min-width: 36px;
  width: 36px;
  color: var(--teal-dark);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.chat-log-copy-button:hover,
.chat-log-copy-button.copied {
  border-color: #8ecdc5;
  background: #f4fbfa;
}

.chat-log-copy-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chat-log-title {
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-log-meta {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.clipboard-fallback {
  position: fixed;
  left: -9999px;
  top: 0;
}

.chat-log-detail {
  min-height: 0;
  overflow-y: auto;
  padding: 1rem;
}

.review-empty {
  display: grid;
  place-items: center;
  min-height: 220px;
  color: var(--muted);
  background: #ffffff;
  border: 1px dashed #cbd8dd;
  border-radius: 8px;
  text-align: center;
}

.chat-log-header {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.chat-log-header h3 {
  margin: 0;
  font-size: 1rem;
}

.chat-log-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.review-messages {
  display: grid;
  gap: 0.85rem;
}

.retrieval-results {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #dce7ea;
}

.retrieval-results summary {
  color: var(--teal-dark);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
}

.retrieval-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.7rem;
}

.retrieval-item {
  display: grid;
  gap: 0.25rem;
  padding: 0.7rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.retrieval-title {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.retrieval-meta {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.retrieval-snippet {
  max-height: 180px;
  margin: 0.15rem 0 0;
  overflow-y: auto;
  color: #32444b;
  font-size: 0.8rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.message-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  overflow-y: auto;
  padding: 1rem;
  scroll-behavior: smooth;
}

.token-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(74px, 1fr)) minmax(116px, 1.25fr);
  gap: 0.55rem;
  padding: 0.85rem 1rem 0;
}

.token-item {
  min-width: 0;
  padding: 0.6rem 0.7rem;
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.token-item span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.token-item strong {
  display: block;
  margin-top: 0.15rem;
  font-size: 1rem;
}

.token-plan {
  display: grid;
  gap: 0.25rem;
}

.token-plan select {
  min-height: 30px;
  padding: 0 0.45rem;
  font-size: 0.9rem;
}

.message {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 0.65rem;
  align-items: end;
}

.customer-message {
  grid-template-columns: minmax(0, 1fr) 34px;
}

.avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--teal);
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 800;
}

.customer-message .avatar {
  grid-column: 2;
  background: var(--coral);
}

.bubble {
  width: fit-content;
  max-width: min(100%, 560px);
  padding: 0.85rem 0.95rem;
  color: var(--ink);
  background: var(--assistant);
  border: 1px solid #e1e9ec;
  border-radius: 8px;
  line-height: 1.48;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.customer-message .bubble {
  justify-self: end;
  color: #ffffff;
  background: var(--customer);
  border-color: var(--customer);
}

.typing .bubble {
  color: var(--muted);
}

.typing-dots {
  display: inline-flex;
  gap: 0.28rem;
  align-items: center;
}

.typing-dots span {
  width: 0.42rem;
  height: 0.42rem;
  display: block;
  background: currentColor;
  border-radius: 999px;
  animation: pulse 1s infinite ease-in-out;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.14s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.28s;
}

.suggestions {
  display: flex;
  gap: 0.55rem;
  padding: 0 1rem 1rem;
  overflow-x: auto;
}

.suggestions button {
  flex: 0 0 auto;
  padding: 0.58rem 0.75rem;
  color: var(--teal-dark);
  background: #f4fbfa;
  border: 1px solid #cce8e4;
  border-radius: 8px;
}

.suggestions button:hover {
  border-color: #8ecdc5;
  background: #e8f7f5;
}

.composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 0.7rem;
  align-items: end;
  padding: 1rem;
  background: #ffffff;
  border-top: 1px solid var(--line);
}

textarea {
  width: 100%;
  max-height: 150px;
  min-height: 48px;
  resize: none;
  padding: 0.8rem 0.9rem;
  color: var(--ink);
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  line-height: 1.4;
}

textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.14);
}

.send-button {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--teal);
  border: 0;
  border-radius: 8px;
}

.send-button:hover {
  background: var(--teal-dark);
}

.send-button:disabled,
.primary-button:disabled {
  cursor: not-allowed;
  background: #9fb2b8;
}

.send-button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.setup-form {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.setup-section {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.setup-section.compact {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

h2 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
}

.section-header p {
  color: var(--muted);
  font-size: 0.9rem;
  text-align: right;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.field {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.field-wide {
  margin-top: 0.15rem;
}

input,
select,
textarea {
  min-width: 0;
}

input,
select {
  min-height: 44px;
  padding: 0 0.75rem;
  color: var(--ink);
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.14);
}

.setup-form textarea {
  max-height: none;
  min-height: 150px;
}

.custom-model-field.hidden {
  display: none;
}

.form-actions {
  display: flex;
  justify-content: end;
}

.primary-button {
  min-height: 44px;
  padding: 0 1rem;
  color: #ffffff;
  background: var(--teal);
  border: 0;
  border-radius: 8px;
  font-weight: 800;
}

.primary-button:hover {
  background: var(--teal-dark);
}

.header-save-button {
  min-height: 40px;
  white-space: nowrap;
}

.small-tool-button {
  min-height: 34px;
  padding: 0 0.75rem;
  color: var(--teal);
  background: #eef8f6;
  border: 1px solid #c8e5df;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
}

.small-tool-button:hover {
  background: #e0f1ee;
}

.icon-button {
  width: 40px;
  height: 40px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: var(--muted);
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.icon-button:hover {
  color: var(--ink);
  background: #eef3f5;
}

.icon-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2rem);
  background: rgba(21, 33, 38, 0.5);
}

.prompt-editor-dialog {
  width: min(100%, 980px);
  height: min(88vh, 760px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.prompt-editor-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.prompt-editor-header h2 {
  margin: 0;
}

.prompt-editor-header p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.prompt-editor-textarea {
  height: 100%;
  min-height: 0;
  max-height: none;
  resize: none;
  padding: 1rem;
  background: #fbfcfd;
  border: 0;
  border-radius: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
  line-height: 1.55;
}

.prompt-editor-textarea:focus {
  border-color: transparent;
  box-shadow: inset 0 0 0 3px rgba(15, 118, 110, 0.14);
}

.prompt-editor-actions {
  display: flex;
  justify-content: end;
  gap: 0.65rem;
  padding: 1rem;
  border-top: 1px solid var(--line);
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: end;
}

.pricing-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
}

.pricing-summary div {
  min-width: 0;
  padding: 0.75rem;
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.pricing-summary span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.pricing-summary strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.source-link {
  width: fit-content;
  color: var(--teal-dark);
  font-weight: 800;
}

.toggle {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-weight: 700;
}

.toggle input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  accent-color: var(--teal);
}

.upload-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
}

.api-key-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 0.75rem;
  min-width: min(100%, 520px);
}

.file-picker {
  min-width: 0;
}

.file-picker input {
  width: 100%;
  padding: 0.55rem;
}

.file-picker span {
  display: none;
}

.knowledge-list {
  display: grid;
  gap: 0.55rem;
  min-height: 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.knowledge-empty {
  display: grid;
  place-items: center;
  min-height: 48px;
  color: var(--muted);
  background: #f8fafb;
  border: 1px dashed #cbd8dd;
  border-radius: 8px;
}

.knowledge-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.75rem;
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.knowledge-name {
  overflow: hidden;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.knowledge-meta {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.danger-button {
  min-height: 36px;
  padding: 0 0.7rem;
  color: #b42318;
  background: #fff8f6;
  border: 1px solid #ffd7cf;
  border-radius: 8px;
}

.danger-button:hover {
  background: #fff1ed;
}

code {
  width: fit-content;
  padding: 0.3rem 0.5rem;
  color: var(--teal-dark);
  background: #e8f7f5;
  border: 1px solid #cbe8e4;
  border-radius: 6px;
}

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

@keyframes pulse {
  0%,
  80%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@media (max-width: 640px) {
  .shell {
    padding: 0;
  }

  .app-panel {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .app-header {
    align-items: stretch;
    flex-direction: column;
    padding: 0.85rem;
  }

  .header-actions {
    justify-content: space-between;
  }

  .tabs {
    flex: 1;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .brand-mark svg {
    width: 30px;
    height: 30px;
  }

  h1 {
    font-size: 1.05rem;
  }

  .brand p {
    font-size: 0.82rem;
  }

  .message-list,
  .composer {
    padding: 0.85rem;
  }

  .suggestions {
    padding: 0 0.85rem 0.85rem;
  }

  .setup-form {
    padding: 0.85rem;
  }

  .form-grid,
  .settings-grid,
  .pricing-summary,
  .upload-row,
  .api-key-row,
  .setup-section.compact {
    grid-template-columns: 1fr;
  }

  .token-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0.85rem 0.85rem 0;
  }

  .token-plan {
    grid-column: span 2;
  }

  .review-layout {
    grid-template-columns: 1fr;
  }

  .chat-log-list {
    max-height: 220px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .section-header {
    align-items: start;
  }
}

/* RRApp iframe / embedded host: fill available height; keep composer visible */
html.embedded,
html.embedded body {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

html.embedded body {
  background: var(--panel);
}

html.embedded .shell {
  min-height: 0;
  height: 100%;
  padding: 0;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}

html.embedded .app-panel {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
}

html.embedded .app-header {
  flex-shrink: 0;
}

html.embedded .view-stack {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

html.embedded .view.active {
  flex: 1;
  min-height: 0;
}

html.embedded .view.active.chat-view,
html.embedded .view.active.review-view {
  overflow: hidden;
}

html.embedded .view.active.setup-view {
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

html.embedded .chat-view {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
}

html.embedded .review-view {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  min-height: 0;
}

html.embedded .message-list {
  min-height: 0;
}

html.embedded .composer {
  flex-shrink: 0;
}

html.embedded .suggestions {
  flex-shrink: 0;
}

html.embedded .token-strip {
  flex-shrink: 0;
}

/* Access state is verified by the server before operator controls are shown. */
[hidden] { display: none !important; }
body:not(.operator-view) .token-strip,
body:not(.operator-view) .chat-log-stats,
body:not(.operator-view) .chat-log-meta,
body:not(.operator-view) .header-save-button,
[data-delete-file] { display: none !important; }
.coverage-notice { margin: 0; padding: 12px 20px; font-size: 0.9rem; border-bottom: 1px solid #dde3e9; line-height: 1.5; }
.operator-login { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; padding: 16px 20px; }
.operator-login input { max-width: 320px; padding: 8px; }
.operator-logout { align-self: flex-end; margin: 8px 20px; }

/* Compact configuration receipt, visible in customer and operator views. */
.chat-metadata { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.chat-metadata-item { display: inline-flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.chat-metadata-label { font-weight: 600; }
.chat-metadata-value { color: var(--ink, #243b40); overflow-wrap: anywhere; }
.chat-metadata-note { font-size: 10px; }
#chatMetadata { padding: 7px 20px; border-bottom: 1px solid var(--line); background: #f8fafb; }
.chat-log-button .chat-metadata { margin-top: 4px; gap: 2px 8px; text-align: left; }
.chat-view, html.embedded .chat-view { grid-template-rows: auto auto minmax(0, 1fr) auto auto; }
.chat-view > #chatMetadata { grid-row: 1; }
.chat-view > .token-strip { grid-row: 2; }
.chat-view > .message-list { grid-row: 3; }
.chat-view > .suggestions { grid-row: 4; }
.chat-view > .composer { grid-row: 5; }

#signedOutVersions { margin-top: 6px; }
