.demo-workspace {
  --blue: #0668ef;
  --ink: #172b49;
  --muted: #687991;
  --line: #d9e0e9;
  --canvas: #eef1f5;
  color: var(--ink);
}
.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.demo-workspace svg,
dialog svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.simulation-notice {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 11px 15px;
  border: 1px solid #bfd2ef;
  background: #f4f8ff;
  color: #436084;
  font-size: 13px;
}
.simulation-notice svg {
  color: #1566db;
  flex: 0 0 auto;
}
.desktop {
  display: grid;
  grid-template-columns: 66px minmax(258px, 300px) minmax(390px, 1fr) minmax(
      260px,
      306px
    );
  grid-template-rows: 38px minmax(0, 1fr);
  height: min(704px, 76dvh);
  min-height: 570px;
  border: 1px solid var(--line);
  border-top: 0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 45px #142c511f;
}
.rail {
  grid-row: 1/3;
  background: #155ae8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
}
.profile,
.rail-icon,
.avatar {
  display: grid;
  place-items: center;
}
.profile {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #eaf1ff;
  color: #1251c4;
  font-weight: 800;
}
.rail-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  color: #fff;
}
.rail-icon:first-of-type {
  background: #ffffff2e;
}
.rail-icon svg {
  width: 22px;
}
.window-title {
  grid-column: 2/5;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 0 18px;
  background: #f1f3f6;
  border-bottom: 1px solid var(--line);
  color: #647287;
  font-size: 12px;
}
.window-title b {
  color: #1d5fd3;
}
.inbox,
.info,
#chat {
  overflow: auto;
  scrollbar-width: none;
}
.inbox::-webkit-scrollbar,
.info::-webkit-scrollbar,
#chat::-webkit-scrollbar {
  display: none;
}
.inbox {
  border-right: 1px solid var(--line);
}
.search {
  height: 45px;
  margin: 15px 14px 10px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  background: #f2f4f7;
  color: #5d6d81;
}
.search svg {
  width: 18px;
}
.search input {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
}
.list-tabs {
  display: flex;
  justify-content: space-between;
  padding: 9px 16px 10px;
  border-bottom: 1px solid #edf0f4;
  font-size: 13px;
}
.list-tabs strong {
  color: #155bdc;
}
.list-tabs span {
  color: #77869a;
  font-size: 12px;
}
#conversations {
  padding: 6px;
}
.conversation-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 68px;
  padding: 9px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  text-align: left;
}
.conversation-item:hover {
  background: #f2f6fd;
}
.conversation-item.selected {
  background: #e8f1ff;
}
.case-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #edf3ff;
  color: #1d63d5;
}
.case-icon svg {
  width: 19px;
}
.conversation-item strong {
  display: block;
  font-size: 13px;
  line-height: 1.3;
}
.conversation-item small {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.conversation {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 76px;
  padding: 11px 17px;
  border-bottom: 1px solid var(--line);
}
.avatar {
  width: 39px;
  height: 39px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #6584ad;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.ai-avatar {
  background: linear-gradient(145deg, #1176ff, #0b45b8);
}
.chat-head p {
  margin: 0 0 1px;
  color: #3869b6;
  font-size: 11px;
  font-weight: 700;
}
.chat-head h2 {
  margin: 0;
  font-size: 16px;
}
.chat-head small {
  color: #6b7b90;
  font-size: 11px;
}
.chat-head .icon-button {
  margin-left: auto;
}
#chat {
  flex: 1;
  min-height: 0;
  padding: 19px 18px;
  background: var(--canvas);
}
.date {
  text-align: center;
  margin: 0 0 17px;
}
.date span {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 99px;
  background: #c7ccd4;
  color: #fff;
  font-size: 10px;
}
.row {
  display: flex;
  gap: 8px;
  margin: 0 0 13px;
}
.row.human {
  justify-content: flex-end;
}
.row .avatar {
  width: 30px;
  height: 30px;
  font-size: 10px;
}
.bubble {
  max-width: min(82%, 570px);
  padding: 10px 12px;
  border: 1px solid #d8dee6;
  border-radius: 4px 11px 11px;
  background: #fff;
  color: #263a57;
  font-size: 13px;
  line-height: 1.55;
}
.human .bubble {
  border-color: #d0e0fa;
  border-radius: 11px 4px 11px;
  background: #e8f2ff;
}
.sender {
  display: block;
  margin-bottom: 3px;
  color: #476990;
  font-size: 10px;
  font-weight: 800;
}
.message-text {
  white-space: pre-wrap;
}
.bubble time {
  display: block;
  margin-top: 6px;
  color: #7e8ca0;
  font-size: 10px;
}
.composer-tools {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 17px;
  border-top: 1px solid var(--line);
  color: #77859a;
  font-size: 11px;
}
.composer-tools svg {
  width: 16px;
}
.composer {
  display: flex;
  gap: 8px;
  min-height: 64px;
  padding: 10px 15px;
}
.composer input {
  flex: 1;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0 10px;
  outline: 0;
  color: #203653;
  font-size: 13px;
}
.composer input:focus {
  border-color: #79a8f4;
  background: #f7faff;
}
.composer button,
#open-result,
.report-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.composer button {
  min-width: 130px;
  border: 0;
  border-radius: 7px;
  background: #eaf2ff;
  color: #115dd5;
  font-size: 12px;
  font-weight: 750;
}
.composer button:active {
  transform: translateY(1px);
}
#feedback {
  min-height: 24px;
  margin: 0;
  padding: 0 16px 8px;
  color: #526b8d;
  font-size: 11px;
}
.info {
  border-left: 1px solid var(--line);
}
.info-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 15px;
  border-bottom: 1px solid var(--line);
}
.info-title h2 {
  margin: 0;
  font-size: 15px;
}
.info-title .icon-button {
  display: none;
}
.contact {
  padding: 21px 17px 17px;
  text-align: center;
}
.large {
  width: 58px;
  height: 58px;
  margin: auto;
  font-size: 16px;
}
.contact h3 {
  margin: 9px 0 3px;
  font-size: 17px;
}
.contact p {
  margin: 0;
  color: #758398;
  font-size: 11px;
}
.info-block {
  padding: 17px;
  border-top: 7px solid #f0f2f5;
}
.info-block h3 {
  margin: 0 0 6px;
  font-size: 12px;
}
.info-block p {
  margin: 0 0 11px;
  color: #6c7b8e;
  font-size: 12px;
  line-height: 1.55;
}
.info-block button {
  width: 100%;
  min-height: 44px;
  border: 1px solid #bdd2f5;
  border-radius: 7px;
  background: #f5f9ff;
  color: #135ecc;
  font-size: 12px;
  font-weight: 750;
}
.info-block button:disabled {
  border-color: #dce2eb;
  background: #f4f6f8;
  color: #8c98a9;
}
.mobile-select {
  display: none;
}
@media (max-width: 1150px) {
  .desktop {
    grid-template-columns: 58px minmax(230px, 275px) minmax(0, 1fr);
    position: relative;
  }
  .window-title {
    grid-column: 2/4;
  }
  .info {
    display: none;
  }
  .desktop.show-info .info {
    position: absolute;
    z-index: 5;
    top: 38px;
    right: 0;
    bottom: 0;
    display: block;
    width: min(330px, 86vw);
    background: #fff;
    box-shadow: -16px 0 30px #142c512e;
  }
  .desktop.show-info .info-title .icon-button {
    display: grid;
  }
}
@media (max-width: 700px) {
  .simulation-notice {
    margin: 0 14px;
    padding: 10px 12px;
    font-size: 12px;
  }
  .desktop {
    display: flex;
    flex-direction: column;
    height: 612px;
    min-height: 570px;
    border-inline: 0;
  }
  .rail,
  .inbox,
  .window-title {
    display: none;
  }
  .conversation {
    height: 100%;
  }
  .chat-head {
    min-height: 74px;
    padding: 10px 14px;
  }
  .chat-head h2 {
    font-size: 15px;
  }
  #chat {
    padding: 17px 12px;
  }
  .bubble {
    max-width: 87%;
    font-size: 13px;
  }
  .composer {
    padding: 9px 12px;
  }
  .composer button {
    min-width: 44px;
    width: 44px;
    padding: 0;
  }
  .composer button span {
    display: none;
  }
  .composer input {
    font-size: 16px;
  }
  .info-title .icon-button {
    display: grid;
  }
  .desktop.show-info .info {
    top: 0;
    width: min(338px, 92vw);
  }
  .mobile-select {
    display: grid;
    gap: 7px;
    padding: 14px;
    font-size: 12px;
    font-weight: 700;
  }
  .mobile-select select {
    min-height: 48px;
    padding: 0 12px;
    border: 1px solid #bfcddd;
    border-radius: 8px;
    background: #fff;
    color: #1d334f;
    font-size: 14px;
  }
}
.journey {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  min-height: 78px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #d9e0e9;
  border-bottom: 0;
}
.journey-heading {
  display: grid;
  gap: 1px;
  min-width: 100px;
}
.journey-heading span {
  color: #6d7b8d;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}
.journey-heading strong {
  color: #1d3658;
  font-size: 13px;
}
#steps {
  display: flex;
  min-width: 0;
  gap: 7px;
}
#steps button {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 6px 3px;
  border: 0;
  border-top: 2px solid #d8e0eb;
  border-radius: 0;
  background: transparent;
  color: #748298;
  text-align: left;
  font-size: 11px;
}
#steps button > span {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #edf1f6;
  color: #718198;
  font-size: 10px;
  font-weight: 800;
}
#steps button strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 650;
}
#steps button.done {
  border-color: #86acea;
  color: #4774ba;
}
#steps button.done > span {
  background: #dbe9ff;
  color: #1c5cc5;
}
#steps button.active {
  border-color: #0868ff;
  color: #075bd9;
}
#steps button.active > span {
  background: #0868ff;
  color: #fff;
}
.controls {
  display: flex;
  gap: 7px;
}
.controls button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  border: 1px solid #cbd8ea;
  border-radius: 7px;
  background: #fff;
  color: #205287;
  font-size: 12px;
  font-weight: 750;
}
.controls button {
  padding: 0 12px;
}
.controls .icon-button {
  width: 44px;
  padding: 0;
}
.controls #play {
  min-width: 106px;
}
.controls #next {
  border-color: #075fdc;
  background: #0968ed;
  color: #fff;
}
.controls button:disabled {
  opacity: 0.44;
  cursor: not-allowed;
}
.flip {
  transform: rotate(180deg);
}
dialog {
  width: min(660px, calc(100% - 28px));
  max-height: min(700px, calc(100dvh - 28px));
  padding: 0;
  border: 1px solid #d2deed;
  border-radius: 12px;
  color: #1b3251;
  box-shadow: 0 28px 80px #0c22424d;
}
dialog::backdrop {
  background: #0b1d3999;
}
.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 61px;
  padding: 0 18px;
  border-bottom: 1px solid #e0e6ee;
  color: #577092;
  font-size: 11px;
  font-weight: 800;
}
.result-head .icon-button {
  width: 44px;
  border: 0;
}
#result-body {
  padding: 22px 24px;
}
#result-body h2 {
  margin: 10px 0 0;
  font-size: 23px;
}
#result-body ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
#result-body li {
  position: relative;
  padding: 12px 0 12px 22px;
  border-bottom: 1px solid #e7ebf1;
  color: #304967;
  font-size: 14px;
  line-height: 1.5;
}
#result-body li::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2673e8;
}
.result-actions {
  padding: 0 24px 22px;
}
.result-actions button {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #c6d6ed;
  border-radius: 7px;
  background: #fff;
  color: #1b5fc5;
  font-weight: 750;
}
@media (max-width: 900px) {
  .journey {
    grid-template-columns: 1fr auto;
    gap: 8px;
  }
  .journey #steps {
    grid-column: 1/3;
    order: 3;
  }
  .journey .controls {
    grid-column: 2;
    grid-row: 1;
  }
  .controls #play {
    min-width: 44px;
    width: 44px;
    padding: 0;
  }
  .controls #play span,
  .controls #next span {
    display: none;
  }
  .controls #next {
    width: 44px;
    padding: 0;
  }
}
@media (max-width: 700px) {
  .journey {
    margin: 0 14px;
    min-height: 117px;
    padding: 11px 12px;
  }
  .journey-heading strong {
    font-size: 12px;
  }
  #steps {
    gap: 4px;
  }
  #steps button {
    justify-content: center;
    min-width: 0;
    padding: 4px 0;
  }
  #steps button strong {
    display: none;
  }
  #steps button > span {
    width: 21px;
    height: 21px;
  }
  .controls {
    gap: 5px;
  }
  .controls button {
    width: 44px;
    padding: 0;
  }
  .controls #previous {
    display: none;
  }
  dialog {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 20px);
  }
  #result-body {
    padding: 20px;
  }
  #result-body h2 {
    font-size: 21px;
  }
  .result-actions {
    padding: 0 20px 20px;
  }
}
.role-break {
  display: flex;
  gap: 8px;
  margin: 18px 0 13px;
  padding: 10px;
  border: 1px dashed #a7bddc;
  border-radius: 8px;
  background: #f6f9fe;
  color: #4a6587;
}
.role-break > span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #dceaff;
  color: #2464ce;
}
.role-break svg {
  width: 14px;
  height: 14px;
}
.role-break strong {
  display: block;
  color: #2d527f;
  font-size: 11px;
}
.role-break p {
  margin: 2px 0 0;
  font-size: 11px;
  line-height: 1.45;
}
.row.manager .bubble {
  background: #edf5ff;
}
.row.employee .bubble {
  background: #e6f1ff;
}
.row.report .bubble {
  border-left: 3px solid #1766dd;
  background: #fffefb;
}
.row.report .avatar {
  background: #215cc6;
}
.local-draft .bubble {
  background: #f2f7ff;
}
.report-link {
  min-height: 36px;
  margin-top: 9px;
  padding: 6px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #155fce;
  font-size: 11px;
  font-weight: 750;
}
.report-link:hover {
  background: #edf4ff;
}
.result-summary {
  margin: 12px 0 16px;
  color: #435b7d;
  font-size: 15px;
  line-height: 1.6;
}
.result-condition {
  margin: 15px 0 0;
  padding: 11px;
  border-left: 3px solid #7ca8ed;
  background: #f5f8fe;
  color: #526a8a;
  font-size: 12px;
  line-height: 1.5;
}
