:root {
  --navy: #172033;
  --navy-light: #24304a;

  --blue: #315efb;
  --blue-soft: #eef2ff;

  --bg: #f5f7fb;
  --card: #ffffff;

  --border: #e4e8ef;
  --border-strong: #d7dce5;

  --text: #1c2430;
  --muted: #6f7785;
  --muted-light: #9299a6;

  --success: #42d392;

  --shadow:
    0 12px 40px rgba(23, 32, 51, .075);

  --dark-button: #111827;
  --dark-button-hover: #1f2937;
}


/* ==================================================
   GLOBAL
================================================== */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  background: var(--bg);
  color: var(--text);
}

button,
textarea,
input {
  font-family: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}


/* ==================================================
   CHAT APP
================================================== */

.app {
  height: 100vh;

  display: flex;
  flex-direction: column;
}


/* ==================================================
   CHAT HEADER
================================================== */

.topbar {
  height: 70px;
  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 30px;

  background: var(--navy);
  color: white;
}

.brand {
  display: flex;
  align-items: center;

  gap: 12px;
}

.brand-icon {
  width: 38px;
  height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 10px;

  background: rgba(255, 255, 255, .11);

  font-size: 19px;
}

.brand-title {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -.1px;
}

.brand-subtitle {
  margin-top: 2px;

  color: rgba(255, 255, 255, .58);

  font-size: 12px;
}

.header-meta {
  display: flex;
  align-items: center;

  gap: 16px;
}

.demo-badge {
  height: 24px;

  display: inline-flex;
  align-items: center;

  padding: 0 9px;

  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 6px;

  background: rgba(255, 255, 255, .08);

  color: rgba(255, 255, 255, .82);

  font-size: 11px;
  font-weight: 600;
}

.status {
  display: flex;
  align-items: center;

  gap: 8px;

  color: rgba(255, 255, 255, .68);

  font-size: 12px;
}

.status-dot {
  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: var(--success);

  box-shadow:
    0 0 0 3px rgba(66, 211, 146, .12);
}


/* ==================================================
   CHAT MAIN
================================================== */

main {
  flex: 1;
  min-height: 0;

  display: flex;
  justify-content: center;

  padding: 26px 24px 18px;
}

.shell {
  width: 100%;
  max-width: 980px;

  min-height: 0;

  display: flex;
  flex-direction: column;
}


/* ==================================================
   CHAT INTRO
================================================== */

.intro {
  margin-bottom: 17px;
}

.intro-label {
  margin-bottom: 5px;

  color: var(--blue);

  font-size: 11px;
  font-weight: 650;

  letter-spacing: .04em;
  text-transform: uppercase;
}

.intro h1 {
  margin: 0;

  font-size: 23px;
  line-height: 1.2;

  letter-spacing: -.45px;
}

.intro p {
  margin: 7px 0 0;

  color: var(--muted);

  font-size: 13px;
  line-height: 1.5;
}


/* ==================================================
   CHAT CARD
================================================== */

.chat-card {
  flex: 1;
  min-height: 0;

  display: flex;
  flex-direction: column;

  overflow: hidden;

  background: var(--card);

  border: 1px solid var(--border);
  border-radius: 17px;

  box-shadow: var(--shadow);
}

.chat {
  flex: 1;
  min-height: 0;

  overflow-y: auto;

  padding: 26px;

  scroll-behavior: smooth;

  scrollbar-width: thin;
  scrollbar-color: #d9dde5 transparent;
}


/* ==================================================
   CHAT WELCOME
================================================== */

.welcome {
  min-height: 100%;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  padding: 34px 20px;

  text-align: center;
}

.welcome-icon {
  width: 54px;
  height: 54px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 16px;

  border-radius: 15px;

  background: var(--blue-soft);
  color: var(--blue);

  font-size: 24px;
}

.welcome h2 {
  margin: 0;

  font-size: 20px;
  line-height: 1.25;

  letter-spacing: -.3px;
}

.welcome p {
  max-width: 570px;

  margin: 9px auto 24px;

  color: var(--muted);

  font-size: 13px;
  line-height: 1.6;
}


/* ==================================================
   SUGGESTIONS
================================================== */

.suggestions {
  width: min(100%, 720px);

  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 10px;
}

.suggestion {
  min-height: 82px;

  padding: 13px 15px;

  border: 1px solid var(--border);
  border-radius: 11px;

  background: #fff;
  color: var(--text);

  text-align: left;

  font-size: 13px;
  line-height: 1.4;

  cursor: pointer;

  transition:
    border-color .15s ease,
    background .15s ease,
    transform .15s ease,
    box-shadow .15s ease;
}

.suggestion:hover {
  border-color: #b9c5ff;

  background: #fafbff;

  transform: translateY(-1px);

  box-shadow:
    0 5px 16px rgba(49, 94, 251, .07);
}

.suggestion:focus-visible {
  outline: none;

  border-color: var(--blue);

  box-shadow:
    0 0 0 3px rgba(49, 94, 251, .10);
}

.suggestion-label {
  display: block;

  margin-bottom: 5px;

  color: var(--blue);

  font-size: 10px;
  font-weight: 700;

  letter-spacing: .04em;
  text-transform: uppercase;
}


/* ==================================================
   CHAT MESSAGES
================================================== */

.message {
  display: flex;

  margin-bottom: 19px;
}

.message.user {
  justify-content: flex-end;
}

.message.bot {
  justify-content: flex-start;
}

.bubble {
  max-width: 78%;

  padding: 13px 15px;

  border-radius: 14px;

  font-size: 14px;
  line-height: 1.6;

  white-space: pre-wrap;
}

.message.user .bubble {
  background: var(--navy);
  color: white;

  border-bottom-right-radius: 4px;
}

.message.bot .bubble {
  background: #f4f6f9;

  border: 1px solid #e7eaf0;

  border-bottom-left-radius: 4px;
}

.bot-label {
  margin-bottom: 5px;

  color: var(--muted);

  font-size: 11px;
  font-weight: 650;
}


/* ==================================================
   ANSWER
================================================== */

.answer-text {
  white-space: pre-wrap;

  line-height: 1.7;
}

.answer-actions {
  display: flex;
  justify-content: flex-end;

  margin-top: 13px;
}

.copy-button {
  padding: 7px 10px;

  border: 1px solid var(--border);
  border-radius: 8px;

  background: #fff;
  color: var(--muted);

  font-size: 11px;

  cursor: pointer;

  transition:
    border-color .15s ease,
    color .15s ease,
    background .15s ease;
}

.copy-button:hover {
  color: var(--text);

  border-color: var(--border-strong);

  background: #f8f9fb;
}

.copy-button:focus-visible {
  outline: none;

  border-color: var(--blue);

  box-shadow:
    0 0 0 3px rgba(49, 94, 251, .08);
}


/* ==================================================
   SOURCES
================================================== */

.sources {
  margin-top: 13px;

  display: flex;
  flex-direction: column;
}

.sources-header {
  margin-bottom: 7px;

  color: var(--muted);

  font-size: 11px;
  font-weight: 650;

  letter-spacing: .045em;
  text-transform: uppercase;
}

.source {
  margin-top: 7px;

  overflow: hidden;

  border: 1px solid var(--border);
  border-radius: 10px;

  background: #fafbfc;
}

.source summary {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;

  padding: 10px 12px;

  cursor: pointer;
  user-select: none;

  list-style: none;
}

.source summary::-webkit-details-marker {
  display: none;
}

.source summary:hover {
  background: #f7f8fa;
}

.source-title {
  color: var(--text);

  font-size: 12px;
  font-weight: 650;
}

.source-arrow {
  flex-shrink: 0;

  color: var(--muted);

  font-size: 15px;

  transition:
    transform .15s ease;
}

.source[open] .source-arrow {
  transform: rotate(180deg);
}

.source-text {
  padding: 0 12px 12px;

  color: #596273;

  font-size: 12px;
  line-height: 1.65;

  white-space: pre-wrap;
}


/* ==================================================
   CHAT COMPOSER
================================================== */

.composer {
  flex-shrink: 0;

  padding: 14px;

  border-top: 1px solid var(--border);

  background: #fff;
}

.composer-row {
  display: flex;
  align-items: flex-end;

  gap: 10px;
}

textarea {
  flex: 1;

  min-height: 48px;
  max-height: 120px;

  padding: 13px 14px;

  resize: none;

  border: 1px solid #dfe3ea;
  border-radius: 11px;

  outline: none;

  background: #fafbfc;
  color: var(--text);

  font: inherit;
  font-size: 13px;

  transition:
    border-color .15s ease,
    background .15s ease,
    box-shadow .15s ease;
}

textarea::placeholder {
  color: #9aa1ad;
}

textarea:focus {
  border-color: #9eafff;

  background: white;

  box-shadow:
    0 0 0 3px rgba(49, 94, 251, .08);
}

.send {
  height: 48px;

  padding: 0 20px;

  border: 0;
  border-radius: 11px;

  background: var(--blue);
  color: white;

  font-size: 13px;
  font-weight: 650;

  cursor: pointer;

  transition:
    filter .15s ease,
    transform .15s ease;
}

.send:hover {
  filter: brightness(.96);

  transform: translateY(-1px);
}

.send:focus-visible {
  outline: none;

  box-shadow:
    0 0 0 3px rgba(49, 94, 251, .18);
}

.send:disabled {
  opacity: .55;

  cursor: default;

  transform: none;
}

.composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 10px;

  margin-top: 7px;
  padding: 0 2px;

  color: #9aa1ad;

  font-size: 10px;
}

.clear {
  padding: 0;

  border: 0;

  background: transparent;
  color: #7b8492;

  cursor: pointer;

  font-size: 10px;
}

.clear:hover {
  color: var(--text);
}


/* ==================================================
   LOADING
================================================== */

.loading {
  display: flex;
  align-items: center;

  gap: 7px;

  color: var(--muted);

  font-size: 13px;
}

.dot {
  width: 5px;
  height: 5px;

  border-radius: 50%;

  background: #8d96a5;

  animation: pulse 1.2s infinite;
}

.dot:nth-child(2) {
  animation-delay: .15s;
}

.dot:nth-child(3) {
  animation-delay: .3s;
}

@keyframes pulse {
  0%,
  60%,
  100% {
    opacity: .25;
  }

  30% {
    opacity: 1;
  }
}


/* ==================================================
   ERROR
================================================== */

.error-bubble {
  border-color: #eadfca !important;

  background: #fffcf5 !important;
}

.error-icon {
  width: 32px;
  height: 32px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 9px;

  border-radius: 50%;

  background: #f6edd9;

  font-size: 16px;
}

.error-title {
  margin-bottom: 5px;

  color: var(--text);

  font-size: 14px;
  font-weight: 650;
}

.error-text {
  color: var(--muted);

  font-size: 13px;
  line-height: 1.55;
}


/* ==================================================
   DISCLAIMER
================================================== */

.disclaimer {
  max-width: 880px;

  margin: 11px auto 0;
  padding: 0 8px 2px;

  color: var(--muted);

  text-align: center;

  font-size: 10px;
  line-height: 1.55;
}

.disclaimer-title {
  display: inline-block;

  margin-right: 5px;

  color: var(--text);

  font-weight: 650;
}


/* ==================================================
   LANDING PAGE
================================================== */

.landing-page {
  min-height: 100vh;
  margin: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 32px;

  background: #f6f7f9;
}

.landing {
  width: 100%;
  max-width: 760px;
}

.landing-card {
  padding: 64px 48px;

  text-align: center;

  background: #ffffff;

  border: 1px solid #e5e7eb;
  border-radius: 20px;

  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.08);
}

.brand-mark {
  width: 56px;
  height: 56px;

  margin: 0 auto 24px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 15px;

  background: var(--dark-button);
  color: #ffffff;

  font-size: 18px;
  font-weight: 700;

  letter-spacing: 0.04em;
}

.eyebrow {
  margin-bottom: 18px;

  color: #6b7280;

  font-size: 12px;
  font-weight: 700;

  letter-spacing: 0.16em;
}

.landing-card h1 {
  margin: 0;

  color: #111827;

  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.08;

  letter-spacing: -0.03em;
}

.landing-description {
  max-width: 580px;

  margin: 24px auto 32px;

  color: #6b7280;

  font-size: 17px;
  line-height: 1.7;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 50px;

  padding: 0 28px;

  border: 0;
  border-radius: 10px;

  background: var(--dark-button);
  color: #ffffff;

  text-decoration: none;

  font-size: 15px;
  font-weight: 600;

  cursor: pointer;

  transition:
    transform .15s ease,
    opacity .15s ease;
}

.primary-button:hover {
  opacity: .9;

  transform: translateY(-1px);
}

.landing-note {
  margin: 18px 0 0;

  color: #9ca3af;

  font-size: 13px;
}


/* ==================================================
   LOGIN PAGE
================================================== */

.login-page {
  min-height: 100vh;
  margin: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px;

  background: #f6f7f9;
}

.login-container {
  width: 100%;
  max-width: 420px;
}

.login-card {
  padding: 40px;

  background: #ffffff;

  border: 1px solid #e5e7eb;
  border-radius: 18px;

  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.08);
}

.login-card .brand-mark {
  margin: 0 auto 24px;
}

.login-card h1 {
  margin: 0;

  color: #111827;

  text-align: center;

  font-size: 30px;
  line-height: 1.2;
}

.login-subtitle {
  margin: 8px 0 32px;

  color: #6b7280;

  text-align: center;

  font-size: 14px;
}

.login-card form {
  display: flex;
  flex-direction: column;
}

.form-group {
  margin-bottom: 20px;
}

.login-card label {
  display: block;

  margin-bottom: 8px;

  color: #374151;

  font-size: 14px;
  font-weight: 600;
}

.login-card input {
  width: 100%;
  min-height: 48px;

  padding: 0 14px;

  box-sizing: border-box;

  border: 1px solid #d1d5db;
  border-radius: 9px;

  outline: none;

  background: #ffffff;
  color: #111827;

  font: inherit;

  transition:
    border-color .15s ease,
    box-shadow .15s ease;
}

.login-card input::placeholder {
  color: #9ca3af;
}

.login-card input:focus {
  border-color: #111827;

  box-shadow:
    0 0 0 3px rgba(17, 24, 39, .08);
}

.login-button {
  width: 100%;

  min-height: 48px;

  border: 0;
  border-radius: 9px;

  background: var(--dark-button);
  color: #ffffff;

  font: inherit;
  font-weight: 600;

  cursor: pointer;

  transition: opacity .15s ease;
}

.login-button:hover {
  opacity: .9;
}

.login-button:disabled {
  opacity: .6;

  cursor: not-allowed;
}

.login-error {
  margin-top: 16px;

  padding: 12px 14px;

  border: 1px solid #fecaca;
  border-radius: 8px;

  background: #fef2f2;
  color: #b91c1c;

  font-size: 14px;
  line-height: 1.5;
}

.back-link {
  display: block;

  margin-top: 24px;

  color: #6b7280;

  text-align: center;

  font-size: 14px;
  text-decoration: none;
}

.back-link:hover {
  color: #111827;
}


/* ==================================================
   LOGOUT
================================================== */

.logout-button {
  min-height: 38px;

  padding: 0 14px;

  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;

  background: transparent;
  color: rgba(255, 255, 255, .88);

  font: inherit;
  font-size: 13px;
  font-weight: 600;

  cursor: pointer;

  transition:
    background .15s ease,
    border-color .15s ease;
}

.logout-button:hover {
  background: rgba(255, 255, 255, .08);

  border-color: rgba(255, 255, 255, .38);
}

.logout-button:disabled {
  opacity: .6;

  cursor: not-allowed;
}


/* ==================================================
   CHAT MOBILE
================================================== */

@media (max-width: 700px) {

  .topbar {
    height: 64px;

    padding: 0 15px;
  }

  .brand-icon {
    width: 35px;
    height: 35px;
  }

  .brand-title {
    font-size: 14px;
  }

  .brand-subtitle {
    font-size: 11px;
  }

  .header-meta {
    gap: 8px;
  }

  .demo-badge {
    display: none;
  }

  .status {
    display: none;
  }

  .logout-button {
    min-height: 34px;

    padding: 0 10px;

    font-size: 12px;
  }

  main {
    padding: 13px 10px 10px;
  }

  .intro {
    margin-bottom: 12px;

    padding: 0 3px;
  }

  .intro-label {
    font-size: 10px;
  }

  .intro h1 {
    font-size: 19px;
  }

  .intro p {
    font-size: 12px;
  }

  .chat-card {
    border-radius: 14px;
  }

  .chat {
    padding: 16px;
  }

  .welcome {
    padding: 25px 7px;
  }

  .welcome h2 {
    font-size: 18px;
  }

  .welcome p {
    font-size: 12px;
  }

  .suggestions {
    grid-template-columns: 1fr;
  }

  .suggestion {
    min-height: auto;

    padding: 12px 13px;
  }

  .bubble {
    max-width: 92%;
  }

  .composer {
    padding: 11px;
  }

  .composer-row {
    gap: 7px;
  }

  .send {
    padding: 0 15px;
  }

  .composer-footer {
    font-size: 9px;
  }

  .clear {
    font-size: 9px;
  }

  .disclaimer {
    padding: 0 12px 2px;

    font-size: 9px;
  }

  .copy-button {
    width: 100%;
  }

  .answer-actions {
    display: block;
  }
}


/* ==================================================
   LANDING / LOGIN MOBILE
================================================== */

@media (max-width: 600px) {

  .landing-page {
    padding: 16px;
  }

  .landing-card {
    padding: 44px 24px;

    border-radius: 16px;
  }

  .landing-card h1 {
    font-size: 38px;
  }

  .landing-description {
    font-size: 16px;
  }

  .login-page {
    padding: 16px;
  }

  .login-card {
    padding: 32px 24px;

    border-radius: 16px;
  }

}


/* ---------------------------------
   Demo terms accordion
   --------------------------------- */

.demo-accordion {
  width: 100%;
  max-width: 680px;
  margin: 26px auto 0;

  border: 1px solid #e2e4e6;
  border-radius: 12px;

  background: #f4f5f6;

  color: #6b7075;
  text-align: left;
}


/* Header */

.demo-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 14px 17px;

  cursor: pointer;
  list-style: none;

  user-select: none;
}


/* Remove default browser arrow */

.demo-accordion summary::-webkit-details-marker {
  display: none;
}

.demo-accordion summary::marker {
  display: none;
}


/* Text inside header */

.demo-summary-text {
  display: flex;
  align-items: baseline;
  gap: 10px;

  min-width: 0;
}

.demo-summary-text strong {
  color: #555b61;

  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
}

.demo-summary-text span {
  color: #777c81;

  font-size: 0.78rem;
  line-height: 1.4;
}


/* Arrow */

.demo-arrow {
  flex: 0 0 auto;

  margin-left: 14px;

  color: #73787d;

  font-size: 1rem;

  transition: transform 0.2s ease;
}


/* Rotate arrow when opened */

.demo-accordion[open] .demo-arrow {
  transform: rotate(180deg);
}


/* Expanded content */

.demo-content {
  padding: 0 17px 16px;

  border-top: 1px solid #e2e4e6;

  color: #73787d;

  font-size: 0.78rem;
  line-height: 1.5;
}

.demo-content p {
  margin: 10px 0;
}

.demo-content p:first-child {
  margin-top: 14px;
}

.demo-content em {
  font-style: normal;
}


/* Mobile */

@media (max-width: 600px) {

  .demo-summary-text {
    display: block;
  }

  .demo-summary-text strong {
    display: block;
    margin-bottom: 2px;
  }

  .demo-summary-text span {
    display: block;
  }

  .demo-arrow {
    margin-left: 10px;
  }

}

.answer-feedback {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #e5e7eb;
}

.feedback-label {
  font-size: 12px;
  color: #6b7280;
  white-space: nowrap;
}

.feedback-buttons {
  display: flex;
  align-items: center;
  gap: 2px;
}

.feedback-button {
  width: 29px;
  height: 27px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.feedback-button:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #374151;
}

.feedback-button:focus-visible {
  outline: 2px solid #9ca3af;
  outline-offset: 1px;
}

.feedback-button.selected {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #374151;
}

.feedback-button:disabled {
  cursor: default;
}

.feedback-button:disabled:not(.selected) {
  opacity: 0.45;
}


/* =========================================================
   EVALUATION
   ========================================================= */

.evaluation-page {
  background: #f8fafc;
}

.evaluation-container {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 60px;
}

.evaluation-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.evaluation-header h1 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 650;
  color: #111827;
}

.evaluation-header p {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
}

.evaluation-back {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 7px;
  color: #374151;
  background: #fff;
  text-decoration: none;
  font-size: 13px;
}

.evaluation-back:hover {
  background: #f3f4f6;
}

.evaluation-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.evaluation-filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 7px;
  background: #fff;
  color: #4b5563;
  cursor: pointer;
  font-size: 13px;
}

.evaluation-filter:hover {
  background: #f3f4f6;
}

.evaluation-filter.active {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #374151;
}

.evaluation-filter span {
  min-width: 18px;
  text-align: center;
  color: #6b7280;
}

.evaluation-status {
  min-height: 20px;
  margin-bottom: 12px;
  color: #6b7280;
  font-size: 13px;
}

.evaluation-records {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.evaluation-record {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 9px;
  padding: 18px;
}

.evaluation-record-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.evaluation-rating {
  font-size: 13px;
  font-weight: 600;
}

.evaluation-rating.correct {
  color: #166534;
}

.evaluation-rating.mostly_correct {
  color: #92400e;
}

.evaluation-rating.incomplete {
  color: #9a3412;
}

.evaluation-rating.incorrect {
  color: #991b1b;
}

.evaluation-date {
  color: #9ca3af;
  font-size: 12px;
}

.evaluation-label {
  margin-bottom: 6px;
  color: #6b7280;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.evaluation-question {
  margin-bottom: 16px;
}

.evaluation-question-text {
  color: #111827;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.evaluation-answer {
  margin-bottom: 16px;
}

.evaluation-answer-text {
  color: #374151;
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.evaluation-details {
  border-top: 1px solid #e5e7eb;
  padding-top: 12px;
}

.evaluation-details summary {
  cursor: pointer;
  color: #4b5563;
  font-size: 13px;
  user-select: none;
}

.evaluation-details summary:hover {
  color: #111827;
}

.evaluation-detail-section {
  margin-top: 16px;
}

.evaluation-source {
  padding: 10px 12px;
  margin-bottom: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  background: #f9fafb;
}

.evaluation-source-meta {
  margin-bottom: 6px;
  color: #4b5563;
  font-size: 12px;
  font-weight: 600;
}

.evaluation-source-text {
  color: #374151;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.evaluation-retrieved-item {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid #f3f4f6;
  color: #4b5563;
  font-size: 12px;
}

.evaluation-retrieved-item:last-child {
  border-bottom: 0;
}

.evaluation-empty-detail {
  color: #9ca3af;
  font-size: 12px;
}

.evaluation-record-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px solid #f3f4f6;
  color: #9ca3af;
  font-size: 11px;
  word-break: break-all;
}

@media (max-width: 700px) {
  .evaluation-container {
    width: min(
      100% - 20px,
      1100px
    );

    padding-top: 20px;
  }

  .evaluation-header {
    align-items: stretch;
    flex-direction: column;
  }

  .evaluation-back {
    align-self: flex-start;
  }

  .evaluation-record {
    padding: 14px;
  }

  .evaluation-record-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}
