.conversation-page {
  min-height: 100dvh;
  background: #f2f5f8;
}

.conversation-free-intro {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 8px;
  min-height: 190px;
  padding: 28px 32px;
  color: #173b39;
  background: linear-gradient(118deg, #dff3ed 0%, #f7fbf4 58%, #fff4df 100%);
  border: 1px solid #c4ded5;
  border-radius: 10px;
  box-shadow: 0 18px 36px rgba(35, 82, 72, 0.08);
}

.conversation-free-intro::after {
  content: "말";
  position: absolute;
  right: 42px;
  bottom: -24px;
  color: rgba(47, 118, 103, 0.12);
  font-size: 150px;
  font-weight: 950;
  line-height: 1;
}

.conversation-free-kicker {
  position: relative;
  z-index: 1;
  color: #2f7667;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.conversation-free-intro strong,
.conversation-free-intro p,
.conversation-free-prompts {
  position: relative;
  z-index: 1;
}

.conversation-free-intro strong {
  color: #153b38;
  font-size: 27px;
  line-height: 1.2;
}

.conversation-free-intro p {
  max-width: 680px;
  margin: 0;
  color: #52706a;
  font-size: 14px;
  line-height: 1.7;
}

.conversation-free-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 5px;
}

.conversation-free-prompts button {
  min-height: 34px;
  padding: 6px 11px;
  color: #286355;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #b8d5cb;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.conversation-free-prompts button:hover,
.conversation-free-prompts button:focus-visible {
  color: #173f39;
  background: #ffffff;
  border-color: #4e9a87;
  outline: 3px solid rgba(47, 118, 103, 0.12);
}

.conversation-free-progress {
  border-color: #c4ded5;
  background: #f1faf6;
}

@media (max-width: 720px) {
  .conversation-free-intro {
    min-height: 0;
    padding: 22px 19px;
  }

  .conversation-free-intro::after {
    right: 8px;
    font-size: 104px;
  }

  .conversation-free-intro strong {
    max-width: 230px;
    font-size: 23px;
  }

  .conversation-free-intro p {
    max-width: 86%;
  }
}

.conversation-page main {
  width: min(1220px, calc(100% - 40px));
  min-height: calc(100dvh - var(--header-height));
  margin: 0 auto;
  padding: 30px 0 56px;
}

.conversation-page button,
.conversation-page select,
.conversation-page input {
  touch-action: manipulation;
}

.conversation-browser-support {
  margin: 0 0 16px;
  padding: 12px 14px;
  color: #7c3f13;
  background: #fff8ed;
  border: 1px solid #f2d1a7;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
}

.conversation-lobby {
  display: grid;
  gap: 20px;
}

.conversation-lobby-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 2px 0;
}

.conversation-lobby-head h1,
.conversation-lobby-head p,
.conversation-start-copy h2,
.conversation-start-copy p,
.conversation-review-head h2,
.conversation-review-head p,
.conversation-history-panel h2,
.conversation-history-panel p {
  margin: 0;
}

.conversation-lobby-head h1 {
  margin-top: 4px;
  color: #132238;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: 0;
}

.conversation-lobby-head > div > p:last-child {
  max-width: 680px;
  margin-top: 10px;
  color: #657185;
  font-size: 16px;
}

.conversation-history-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 14px;
  color: #24476a;
  background: #ffffff;
  border: 1px solid #cfd8e3;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
  white-space: nowrap;
}

.conversation-history-link:hover,
.conversation-history-link:focus-visible {
  color: #173a8f;
  border-color: #7e9fcb;
  outline: 3px solid rgba(37, 99, 235, 0.12);
}

.conversation-category-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 4px;
  scrollbar-width: thin;
}

.conversation-category-list button {
  min-height: 44px;
  padding: 9px 16px;
  color: #536174;
  background: #e7ecf2;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
  white-space: nowrap;
}

.conversation-category-list button.is-active {
  color: #ffffff;
  background: #244f78;
  border-color: #244f78;
}

.conversation-category-list button:hover,
.conversation-category-list button:focus-visible {
  border-color: #7e9fcb;
  outline: none;
}

.conversation-lobby-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: start;
}

.conversation-scenario-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.conversation-scenario-card {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 13px;
  min-height: 150px;
  padding: 17px;
  color: #17263a;
  text-align: left;
  background: #ffffff;
  border: 1px solid #d6dee8;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(25, 40, 61, 0.05);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.conversation-scenario-card:hover,
.conversation-scenario-card:focus-visible {
  border-color: #7b9fc4;
  box-shadow: 0 12px 28px rgba(25, 40, 61, 0.09);
  outline: none;
  transform: translateY(-1px);
}

.conversation-scenario-card.is-selected {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12), 0 12px 28px rgba(25, 40, 61, 0.08);
}

.conversation-scenario-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #17456a;
  background: #e3f0f3;
  border: 1px solid #c7dfe3;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 950;
}

.conversation-scenario-card:nth-child(3n + 2) .conversation-scenario-icon {
  color: #75420d;
  background: #fff1d9;
  border-color: #f0d4a3;
}

.conversation-scenario-card:nth-child(3n) .conversation-scenario-icon {
  color: #4d3f75;
  background: #eee9f7;
  border-color: #d9cee9;
}

.conversation-scenario-copy {
  min-width: 0;
}

.conversation-scenario-copy > span:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.conversation-scenario-copy strong {
  font-size: 18px;
  line-height: 1.35;
}

.conversation-scenario-copy small {
  color: #6a7688;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.conversation-scenario-copy p {
  margin: 8px 0 10px;
  color: #657185;
  font-size: 14px;
  line-height: 1.55;
}

.conversation-scenario-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.conversation-scenario-tags span {
  padding: 3px 7px;
  color: #4b5d70;
  background: #f3f6f9;
  border: 1px solid #e0e6ed;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 750;
}

.conversation-start-panel {
  position: sticky;
  top: calc(var(--header-height) + 18px);
  display: grid;
  gap: 16px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(25, 40, 61, 0.08);
}

.conversation-start-copy > span,
.conversation-persona-selector legend,
.conversation-level-control > span,
.conversation-objective-preview > div span,
.conversation-task-head span,
.conversation-target-expressions > span {
  color: #687487;
  font-size: 12px;
  font-weight: 900;
}

.conversation-start-copy h2 {
  margin-top: 4px;
  color: #17263a;
  font-size: 24px;
  line-height: 1.25;
}

.conversation-start-copy p {
  margin-top: 7px;
  color: #657185;
  font-size: 14px;
}

.conversation-start-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.conversation-start-meta span {
  padding: 5px 8px;
  color: #244f78;
  background: #edf5fb;
  border: 1px solid #cfe0ed;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 800;
}

.conversation-persona-selector {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.conversation-persona-selector legend {
  margin-bottom: 8px;
}

.conversation-persona-selector > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.conversation-persona-selector button {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 10px;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 8px;
  color: #26364b;
  text-align: left;
  background: #f7f9fb;
  border: 1px solid #d9e0e8;
  border-radius: 7px;
  cursor: pointer;
}

.conversation-persona-selector button.is-selected {
  color: #173a8f;
  background: #eef4ff;
  border-color: #7298d6;
}

.conversation-persona-selector button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.14);
}

.conversation-persona-selector img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 50%;
}

.conversation-persona-selector span {
  display: grid;
  min-width: 0;
}

.conversation-persona-selector strong {
  font-size: 14px;
}

.conversation-persona-selector small {
  color: #738094;
  font-size: 11px;
  font-weight: 700;
}

.conversation-persona-selector i {
  width: 9px;
  height: 9px;
  background: #c7d0db;
  border-radius: 50%;
}

.conversation-persona-selector button.is-selected i {
  background: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.conversation-level-control {
  display: grid;
  gap: 7px;
}

.conversation-level-control select {
  width: 100%;
  min-height: 44px;
  padding: 8px 34px 8px 11px;
  color: #26364b;
  background: #ffffff;
  border: 1px solid #cfd8e3;
  border-radius: 6px;
}

.conversation-level-control select:focus-visible {
  border-color: #5b84c4;
  outline: 3px solid rgba(37, 99, 235, 0.12);
}

.conversation-objective-preview {
  padding: 13px;
  background: #f6f8fa;
  border: 1px solid #e0e6ed;
  border-radius: 7px;
}

.conversation-objective-preview > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.conversation-objective-preview > div strong {
  color: #244f78;
  font-size: 12px;
}

.conversation-objective-preview ol {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.conversation-objective-preview li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #536174;
  font-size: 13px;
}

.conversation-objective-preview li::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  background: #8aa0b5;
  border-radius: 50%;
}

.conversation-start-button {
  width: 100%;
  min-height: 48px;
}

.conversation-start-panel .form-feedback {
  min-height: 20px;
  margin: -5px 0 0;
  color: #27734f;
  font-size: 13px;
  font-weight: 750;
}

.conversation-chat-stage {
  min-height: calc(100dvh - var(--header-height) - 54px);
}

.conversation-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  min-height: calc(100dvh - var(--header-height) - 54px);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(25, 40, 61, 0.09);
}

.conversation-chat-main {
  display: grid;
  grid-template-rows: auto auto minmax(320px, 1fr) auto auto;
  min-width: 0;
  min-height: 0;
  background: #f0f3f6;
}

.conversation-chat-header {
  display: grid;
  grid-template-columns: 44px 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 70px;
  padding: 11px 15px;
  background: #ffffff;
  border-bottom: 1px solid #d9e0e8;
}

.conversation-chat-header > img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 50%;
}

.conversation-chat-header > div {
  display: grid;
  min-width: 0;
}

.conversation-chat-header strong {
  color: #17263a;
  font-size: 16px;
}

.conversation-chat-header span {
  overflow: hidden;
  color: #738094;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-icon-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #38516c;
  background: #f6f8fa;
  border: 1px solid #d9e0e8;
  border-radius: 6px;
  cursor: pointer;
  font-size: 20px;
  font-weight: 800;
}

.conversation-icon-button:hover,
.conversation-icon-button:focus-visible {
  color: #173a8f;
  border-color: #7b9fc4;
  outline: 3px solid rgba(37, 99, 235, 0.1);
}

.conversation-chat-context {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 7px 15px;
  background: #f8fafb;
  border-bottom: 1px solid #dfe5eb;
}

.conversation-chat-context span {
  padding: 3px 7px;
  color: #536174;
  background: #ffffff;
  border: 1px solid #dfe5eb;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 750;
}

.conversation-chat-context strong {
  margin-left: auto;
  color: #1d3550;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.conversation-stream {
  min-height: 0;
  max-height: calc(100dvh - 330px);
  overflow-y: auto;
  padding: 22px 18px 32px;
  scroll-behavior: smooth;
}

.conversation-message {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  max-width: min(76%, 640px);
  margin-bottom: 18px;
}

.conversation-message.is-user {
  flex-direction: row-reverse;
  margin-left: auto;
}

.conversation-message-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  object-fit: cover;
  border-radius: 50%;
}

.conversation-user-avatar {
  display: grid;
  place-items: center;
  color: #ffffff;
  background: #2d6c62;
  font-size: 12px;
  font-weight: 900;
}

.conversation-message-body {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.conversation-bubble {
  padding: 11px 13px;
  color: #1f2f43;
  background: #ffffff;
  border: 1px solid #d6dee8;
  border-radius: 8px;
  box-shadow: 0 5px 14px rgba(25, 40, 61, 0.05);
}

.conversation-message.is-user .conversation-bubble {
  color: #ffffff;
  background: #34766b;
  border-color: #34766b;
}

.conversation-bubble p,
.conversation-message-meta,
.conversation-translation,
.conversation-status,
.conversation-empty {
  margin: 0;
}

.conversation-bubble p {
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.55;
}

.conversation-message-meta,
.conversation-translation {
  color: #718095;
  font-size: 12px;
}

.conversation-message.is-user .conversation-message-meta {
  text-align: right;
}

.conversation-message-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.conversation-message-tools button {
  min-height: 32px;
  padding: 5px 9px;
  color: #3b5875;
  background: #ffffff;
  border: 1px solid #d4dde7;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.conversation-message-tools button:hover,
.conversation-message-tools button:focus-visible {
  border-color: #7395bb;
  outline: none;
}

.conversation-light-correction {
  margin: 0;
  padding: 8px 10px;
  color: #664411;
  background: #fff7e7;
  border-left: 3px solid #d69b39;
  border-radius: 4px;
  font-size: 12px;
}

.conversation-light-correction strong {
  margin-right: 6px;
}

.conversation-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.conversation-keywords span {
  padding: 4px 7px;
  color: #36536f;
  background: #eaf0f5;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 750;
}

.conversation-voice-bubble {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 128px;
  min-height: 42px;
  padding: 8px 12px;
  color: #ffffff;
  background: #34766b;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.conversation-voice-bubble time {
  margin-left: auto;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.conversation-voice-bars {
  width: 22px;
  height: 16px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0 2px, transparent 2px 5px);
  clip-path: polygon(0 45%, 12% 28%, 24% 62%, 36% 16%, 48% 72%, 60% 30%, 72% 82%, 84% 38%, 100% 55%, 100% 65%, 84% 48%, 72% 92%, 60% 40%, 48% 82%, 36% 26%, 24% 72%, 12% 38%, 0 55%);
}

.conversation-typing-row {
  align-items: center;
}

.conversation-typing {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 40px;
}

.conversation-typing span {
  width: 6px;
  height: 6px;
  background: #7b8a9d;
  border-radius: 50%;
  animation: conversation-typing 1.1s ease-in-out infinite;
}

.conversation-typing span:nth-child(2) {
  animation-delay: 120ms;
}

.conversation-typing span:nth-child(3) {
  animation-delay: 240ms;
}

@keyframes conversation-typing {
  0%, 100% { opacity: 0.35; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}

.conversation-retry-row,
.conversation-review-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 42px;
  padding: 12px;
  background: #fff8ed;
  border: 1px solid #efd2ad;
  border-radius: 7px;
}

.conversation-transcript-recovery {
  display: grid;
  gap: 9px;
  margin: 14px 42px;
  padding: 13px;
  background: #fff8ed;
  border: 1px solid #efd2ad;
  border-radius: 7px;
}

.conversation-transcript-recovery p {
  margin: 0;
  color: #765b37;
  font-size: 13px;
}

.conversation-transcript-recovery > div:last-child {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.conversation-transcript-recovery input {
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #d9b77f;
  border-radius: 6px;
  font-size: 16px;
}

.conversation-transcript-recovery [data-conversation-recovery-send] {
  min-height: 44px;
  padding: 8px 12px;
  color: #ffffff;
  background: #2f7267;
  border: 1px solid #2f7267;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 850;
}

.conversation-retry-row button,
.conversation-review-prompt button {
  min-height: 38px;
  padding: 7px 10px;
  color: #75420d;
  background: #ffffff;
  border: 1px solid #dfb578;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 800;
}

.conversation-review-prompt > div:first-child {
  display: grid;
}

.conversation-review-prompt span {
  color: #765b37;
  font-size: 12px;
}

.conversation-review-prompt > div:last-child {
  display: flex;
  gap: 7px;
}

.conversation-dynamic-assists {
  display: flex;
  gap: 7px;
  min-height: 48px;
  overflow-x: auto;
  padding: 7px 14px;
  background: #f8fafb;
  border-top: 1px solid #dfe5eb;
}

.conversation-dynamic-assists button {
  min-height: 36px;
  padding: 6px 10px;
  color: #39546f;
  background: #ffffff;
  border: 1px solid #d4dde7;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.conversation-dynamic-assists button:hover,
.conversation-dynamic-assists button:focus-visible {
  color: #173a8f;
  border-color: #7194bc;
  outline: none;
}

.conversation-composer-shell {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: grid;
  gap: 8px;
  padding: 10px 14px 12px;
  background: #ffffff;
  border-top: 1px solid #d8e0e8;
  box-shadow: 0 -8px 18px rgba(25, 40, 61, 0.05);
}

.conversation-composer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.conversation-composer-head button {
  min-height: 32px;
  padding: 5px 8px;
  color: #36536f;
  background: #eef3f7;
  border: 1px solid #d4dde7;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.conversation-composer-head span {
  overflow: hidden;
  color: #7a8799;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-composer {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

.conversation-record-button {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 8px 11px;
  color: #ffffff;
  text-align: left;
  background: #2f7267;
  border: 1px solid #2f7267;
  border-radius: 7px;
  cursor: pointer;
}

.conversation-record-button.is-recording {
  background: #b43e3e;
  border-color: #b43e3e;
}

.conversation-record-button:disabled,
.conversation-composer button:disabled,
.conversation-dynamic-assists button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.conversation-record-icon {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
}

.conversation-record-icon::before {
  content: "";
  display: block;
  width: 8px;
  height: 13px;
  margin: 6px auto 0;
  background: #ffffff;
  border-radius: 5px;
}

.conversation-record-button strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-record-button small {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.conversation-composer form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.conversation-composer label {
  min-width: 0;
}

.conversation-composer input {
  width: 100%;
  min-height: 50px;
  padding: 10px 12px;
  color: #1f2f43;
  background: #ffffff;
  border: 1px solid #cfd8e3;
  border-radius: 7px;
}

.conversation-composer input:focus-visible {
  border-color: #5b84c4;
  outline: 3px solid rgba(37, 99, 235, 0.11);
}

.conversation-composer .button {
  min-width: 66px;
  min-height: 50px;
}

.conversation-status {
  min-height: 18px;
  color: #657185;
  font-size: 12px;
}

.conversation-status[data-tone="recording"] {
  color: #a52c2c;
  font-weight: 800;
}

.conversation-status[data-tone="error"] {
  color: #b03333;
  font-weight: 750;
}

.conversation-status[data-tone="loading"],
.conversation-status[data-tone="info"] {
  color: #315a82;
  font-weight: 750;
}

.conversation-task-rail {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px 18px;
  background: #fbfcfd;
  border-left: 1px solid #d9e0e8;
}

.conversation-task-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.conversation-task-head strong {
  color: #244f78;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.conversation-task-meter {
  height: 6px;
  margin-top: 10px;
  overflow: hidden;
  background: #e2e7ed;
  border-radius: 5px;
}

.conversation-task-meter i {
  display: block;
  width: 0;
  height: 100%;
  background: #2f7267;
  border-radius: inherit;
  transition: width 240ms ease;
}

.conversation-task-list {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.conversation-task-list li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  color: #59677a;
  font-size: 13px;
}

.conversation-task-list li::before {
  content: "";
  width: 16px;
  height: 16px;
  margin-top: 2px;
  background: #ffffff;
  border: 1px solid #aeb9c6;
  border-radius: 50%;
}

.conversation-task-list li.is-complete {
  color: #23704d;
  font-weight: 800;
}

.conversation-task-list li.is-complete::before {
  content: "✓";
  display: grid;
  place-items: center;
  color: #ffffff;
  background: #2f8b61;
  border-color: #2f8b61;
  font-size: 10px;
}

.conversation-task-list li.is-current {
  color: #173a8f;
  font-weight: 800;
}

.conversation-target-expressions {
  margin-top: 24px;
  padding-top: 17px;
  border-top: 1px solid #dfe5eb;
}

.conversation-target-expressions > div {
  display: grid;
  gap: 7px;
  margin-top: 9px;
}

.conversation-target-expressions button {
  width: 100%;
  padding: 8px 9px;
  color: #3b536c;
  text-align: left;
  background: #ffffff;
  border: 1px solid #d9e0e8;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  line-height: 1.45;
}

.conversation-target-expressions button:hover,
.conversation-target-expressions button:focus-visible {
  color: #173a8f;
  border-color: #7194bc;
  outline: none;
}

.conversation-history-link.is-rail {
  width: 100%;
  margin-top: auto;
}

.conversation-review-stage {
  display: grid;
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;
  padding: 28px;
  background: #ffffff;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(25, 40, 61, 0.08);
}

.conversation-review-head h2,
.conversation-history-panel h2 {
  color: #17263a;
  font-size: 28px;
}

.conversation-review-head p:last-child {
  margin-top: 5px;
  color: #69768a;
}

.conversation-review-summary {
  display: grid;
  gap: 6px;
  padding: 16px;
  background: #edf5f2;
  border-left: 4px solid #2f7267;
  border-radius: 6px;
}

.conversation-review-progress {
  display: grid;
  gap: 9px;
  padding: 16px;
  background: #f7f9fb;
  border: 1px solid #d8e0e8;
  border-radius: 7px;
}

.conversation-review-progress > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.conversation-review-progress span {
  color: #607084;
  font-size: 13px;
  font-weight: 850;
}

.conversation-review-progress strong {
  color: #236c5f;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}

.conversation-review-progress p {
  margin: 0;
  color: #677589;
  font-size: 13px;
}

.conversation-review-progress-meter {
  height: 8px;
  overflow: hidden;
  background: #dfe5eb;
  border-radius: 5px;
}

.conversation-review-progress-meter i {
  display: block;
  height: 100%;
  background: #2f7267;
  border-radius: inherit;
}

.conversation-pronunciation-metrics {
  padding: 15px;
  background: #eef3f9;
  border: 1px solid #d4deeb;
  border-radius: 7px;
}

.conversation-pronunciation-metrics h3 {
  margin: 0 0 10px;
  color: #2c4561;
  font-size: 15px;
}

.conversation-pronunciation-metrics > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.conversation-pronunciation-metrics > div > div {
  display: grid;
  gap: 2px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid #d9e2ec;
  border-radius: 6px;
}

.conversation-pronunciation-metrics span {
  color: #6c7a8d;
  font-size: 12px;
}

.conversation-pronunciation-metrics strong {
  color: #244f78;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.conversation-review-summary span {
  color: #3f665f;
  font-size: 12px;
  font-weight: 850;
}

.conversation-review-summary strong {
  color: #1f3d38;
  font-size: 16px;
}

.conversation-review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.conversation-review-section {
  min-width: 0;
  padding: 14px;
  background: #f7f9fb;
  border: 1px solid #dfe5eb;
  border-radius: 7px;
}

.conversation-review-section.is-correction {
  border-top: 3px solid #c56d4d;
}

.conversation-review-section.is-expression {
  border-top: 3px solid #2f7267;
}

.conversation-review-section.is-pronunciation {
  border-top: 3px solid #516ea5;
}

.conversation-review-section h3,
.conversation-review-section p,
.conversation-review-section ul {
  margin: 0;
}

.conversation-review-section h3 {
  margin-bottom: 8px;
  color: #27394f;
  font-size: 15px;
}

.conversation-review-section p,
.conversation-review-section li {
  color: #647185;
  font-size: 13px;
}

.conversation-review-section ul {
  display: grid;
  gap: 7px;
  padding-left: 18px;
}

.conversation-review-items > div {
  display: grid;
  gap: 7px;
}

.conversation-review-items button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 9px 10px;
  color: #354c65;
  text-align: left;
  background: #ffffff;
  border: 1px solid #d8e0e8;
  border-radius: 6px;
  cursor: pointer;
}

.conversation-review-items button small {
  color: #2f7267;
  font-weight: 850;
}

.conversation-review-items button.is-saved {
  background: #edf5f2;
  border-color: #82aa9f;
}

.conversation-review-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.conversation-history-panel {
  position: fixed;
  inset: var(--header-height) 0 0 auto;
  z-index: 40;
  width: min(430px, 100vw);
  overflow-y: auto;
  padding: 22px;
  background: #ffffff;
  border-left: 1px solid #cfd8e3;
  box-shadow: -18px 0 42px rgba(25, 40, 61, 0.16);
}

.conversation-history-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

[data-conversation-history-list] {
  display: grid;
  gap: 9px;
}

.conversation-history-item {
  padding: 13px;
  background: #f7f9fb;
  border: 1px solid #dfe5eb;
  border-radius: 7px;
}

.conversation-history-item > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.conversation-history-item strong {
  color: #26384e;
}

.conversation-history-item span,
.conversation-history-item p {
  color: #6b788b;
  font-size: 12px;
}

.conversation-history-item p {
  margin-top: 7px;
}

@media (max-width: 980px) {
  .conversation-page main {
    width: min(100% - 28px, 960px);
  }

  .conversation-lobby-layout {
    grid-template-columns: minmax(0, 1fr) 310px;
  }

  .conversation-scenario-list {
    grid-template-columns: 1fr;
  }

  .conversation-workspace {
    grid-template-columns: minmax(0, 1fr) 240px;
  }

  .conversation-composer {
    grid-template-columns: 165px minmax(0, 1fr);
  }

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

  .conversation-pronunciation-metrics > div {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .conversation-page main {
    width: 100%;
    min-height: calc(100dvh - var(--header-height));
    padding: 18px 14px 30px;
  }

  .conversation-page .site-header {
    gap: 8px;
    padding-inline: 14px;
  }

  .conversation-page .brand {
    flex-shrink: 0;
    gap: 7px;
  }

  .conversation-page .brand-mark {
    width: 40px;
    height: 40px;
  }

  .conversation-page .brand-name {
    font-size: 18px;
    white-space: nowrap;
  }

  .conversation-page .advisor-button {
    display: none;
  }

  .conversation-page .header-account-actions {
    min-width: 0;
    gap: 4px;
  }

  .conversation-page .account-button {
    min-width: 0;
    max-width: 100px;
  }

  .conversation-page .site-nav {
    display: none;
  }

  .conversation-lobby-head {
    align-items: start;
  }

  .conversation-lobby-head h1 {
    font-size: 30px;
  }

  .conversation-lobby-head > div > p:last-child {
    font-size: 14px;
  }

  .conversation-lobby-head > .conversation-history-link {
    min-width: 44px;
    padding-inline: 10px;
    font-size: 12px;
  }

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

  .conversation-start-panel {
    position: static;
  }

  .conversation-scenario-list {
    grid-template-columns: 1fr;
  }

  .conversation-scenario-card {
    min-height: 128px;
  }

  .conversation-workspace {
    display: block;
    min-height: calc(100dvh - var(--header-height) - 36px);
    border-radius: 7px;
  }

  .conversation-chat-main {
    min-height: calc(100dvh - var(--header-height) - 36px);
    grid-template-rows: auto auto minmax(260px, 1fr) auto auto;
  }

  .conversation-task-rail {
    display: none;
  }

  .conversation-chat-header {
    grid-template-columns: 44px 38px minmax(0, 1fr) auto;
    padding-inline: 10px;
  }

  .conversation-chat-header > img {
    width: 38px;
    height: 38px;
  }

  .conversation-chat-header > .button {
    min-width: 44px;
    padding-inline: 9px;
    font-size: 12px;
  }

  .conversation-stream {
    max-height: none;
    padding: 18px 10px 26px;
  }

  .conversation-message {
    max-width: 88%;
  }

  .conversation-dynamic-assists {
    padding-inline: 10px;
  }

  .conversation-composer-shell {
    padding: 9px 10px calc(10px + env(safe-area-inset-bottom));
  }

  .conversation-composer-head span {
    display: none;
  }

  .conversation-composer {
    grid-template-columns: 1fr;
  }

  .conversation-record-button {
    min-height: 48px;
  }

  .conversation-composer form {
    grid-template-columns: minmax(0, 1fr) 60px;
  }

  .conversation-review-prompt,
  .conversation-retry-row,
  .conversation-transcript-recovery {
    align-items: stretch;
    flex-direction: column;
    margin-inline: 0;
  }

  .conversation-review-prompt > div:last-child {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .conversation-transcript-recovery > div:last-child {
    grid-template-columns: 1fr;
  }

  .conversation-review-stage {
    padding: 18px;
  }

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

  .conversation-review-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .conversation-history-panel {
    inset: var(--header-height) 0 0;
    width: 100%;
    border-left: 0;
  }
}

@media (max-width: 430px) {
  .conversation-page main {
    padding-inline: 10px;
  }

  .conversation-lobby-head {
    gap: 12px;
  }

  .conversation-lobby-head h1 {
    font-size: 28px;
  }

  .conversation-persona-selector > div {
    grid-template-columns: 1fr;
  }

  .conversation-scenario-card {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 14px;
  }

  .conversation-scenario-icon {
    width: 40px;
    height: 40px;
  }

  .conversation-chat-header {
    grid-template-columns: 40px 34px minmax(0, 1fr) auto;
    gap: 7px;
  }

  .conversation-chat-header > img {
    width: 34px;
    height: 34px;
  }

  .conversation-chat-header .conversation-icon-button {
    width: 40px;
    height: 40px;
  }

  .conversation-chat-presence {
    display: none;
  }

  .conversation-bubble p {
    font-size: 15px;
  }

  .conversation-composer input {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .conversation-page *,
  .conversation-page *::before,
  .conversation-page *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
