/* The Sai dialog mockup on use-case pages: a fixed light palette from the Sai Task Run design, in both themes. */
.uc-sai {
  --sg: #16d342;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e9e9e4;
  border-radius: 24px;
  box-shadow:
    0 30px 80px -30px rgba(30, 30, 20, 0.35),
    0 2px 6px rgba(30, 30, 20, 0.05);
  color: #171717;
  font-family: inherit;
  text-align: left;
  display: flex;
  flex-direction: column;
  height: min(700px, 82vh);
  overflow: hidden;
  color-scheme: light;
}
.uc-sai .sai-h {
  height: 60px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  border-bottom: 1px solid #f0f0eb;
  color: #737373;
}
.uc-sai .sai-h b {
  font-size: 15px;
  font-weight: 600;
  color: #171717;
  flex: 1;
}
.uc-sai .sai-h svg {
  width: 17px;
  height: 17px;
}
.uc-sai .sai-b {
  flex: 1;
  overflow: hidden;
  padding: 22px clamp(16px, 4vw, 40px) 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-behavior: smooth;
}
.uc-sai .sai-day {
  display: flex;
  align-items: center;
  gap: 12px;
  font:
    500 10px/1 'JetBrains Mono Variable',
    'JetBrains Mono',
    ui-monospace,
    monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a3a3a3;
}
.uc-sai .sai-day::before,
.uc-sai .sai-day::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #f0f0eb;
}
.uc-sai .sai-u {
  align-self: flex-end;
  max-width: 82%;
  background: #0c0c0c;
  color: #fafafa;
  border-radius: 18px 18px 4px 18px;
  padding: 11px 15px;
  font-size: 14px;
  line-height: 1.5;
  animation: uc-stepIn 0.35s ease both;
}
.uc-sai .sai-mk {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--sg);
  display: grid;
  place-items: center;
  flex: none;
}
.uc-sai .sai-mk svg {
  width: 13px;
  height: 9px;
  color: #fff;
}
.uc-sai .sai-plan {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: #737373;
  animation: uc-stepIn 0.3s ease both;
}
.uc-sai .wd {
  display: inline-flex;
  gap: 3px;
}
.uc-sai .wd i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #a3a3a3;
  animation: uc-wdot 1s infinite;
}
.uc-sai .wd i:nth-child(2) {
  animation-delay: 0.15s;
}
.uc-sai .wd i:nth-child(3) {
  animation-delay: 0.3s;
}
.uc-sai .sai-rh {
  display: flex;
  align-items: center;
  gap: 10px;
  animation: uc-stepIn 0.3s ease both;
}
.uc-sai .sai-rh b {
  font-size: 14px;
  font-weight: 600;
}
.uc-sai .sai-st {
  font:
    500 10px/1 'JetBrains Mono Variable',
    'JetBrains Mono',
    ui-monospace,
    monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a8a8a;
}
.uc-sai .sai-rp {
  font-size: 15px;
  line-height: 1.6;
  color: #262626;
  animation: uc-stepIn 0.35s ease both;
}
.uc-sai .sai-steps {
  display: flex;
  flex-direction: column;
}
.uc-sai .stp {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  column-gap: 14px;
  animation: uc-stepIn 0.35s ease both;
}
.uc-sai .stp .rail {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.uc-sai .stp .tile2 {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid #ecece7;
  background: #fff;
  display: grid;
  place-items: center;
  flex: none;
}
.uc-sai .stp .tile2 svg {
  width: 16px;
  height: 16px;
}
.uc-sai .stp .tile2.ap {
  background: #fef3e0;
  border-color: #f6dfb8;
}
.uc-sai .stp .line {
  width: 1px;
  flex: 1;
  background: #ecece7;
  min-height: 14px;
}
.uc-sai .stp:last-child .line {
  display: none;
}
.uc-sai .stp .c {
  padding: 5px 0 18px;
  min-width: 0;
}
.uc-sai .stp .lb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #171717;
  min-height: 20px;
}
.uc-sai .stp .lb .tm {
  margin-left: auto;
  font:
    400 11px/1 'JetBrains Mono Variable',
    'JetBrains Mono',
    ui-monospace,
    monospace;
  color: #a3a3a3;
  white-space: nowrap;
}
.uc-sai .stp .lb .ok {
  width: 14px;
  height: 14px;
  color: #0fa635;
  flex: none;
}
.uc-sai .stp.run .lb span:first-child {
  background: linear-gradient(90deg, #a3a3a3 0%, #171717 40%, #a3a3a3 80%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: uc-shimmer 1.6s linear infinite;
}
.uc-sai .res {
  margin-top: 10px;
  animation: uc-stepIn 0.35s ease both;
}
.uc-sai .chips2 {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.uc-sai .chips2 span {
  background: #f4f4f0;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  color: #404040;
}
.uc-sai .res .cap {
  font-size: 12.5px;
  color: #737373;
  margin-bottom: 8px;
}
.uc-sai .lst {
  border: 1px solid #ecece7;
  border-radius: 12px;
  overflow: hidden;
}
.uc-sai .lst .hd {
  display: flex;
  justify-content: space-between;
  background: #fafaf7;
  padding: 8px 12px;
  font:
    500 10px/1 'JetBrains Mono Variable',
    'JetBrains Mono',
    ui-monospace,
    monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a8a8a;
  border-bottom: 1px solid #ecece7;
}
.uc-sai .lst .row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-top: 1px solid #f3f3ef;
  font-size: 13px;
}
.uc-sai .lst .hd + .row {
  border-top: 0;
}
.uc-sai .lst .av {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #efefea;
  display: grid;
  place-items: center;
  font: 600 10px/1 inherit;
  color: #525252;
  flex: none;
}
.uc-sai .lst .nm {
  flex: 1;
  min-width: 0;
}
.uc-sai .lst .nm b {
  display: block;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.uc-sai .lst .nm span {
  font-size: 11.5px;
  color: #8a8a8a;
}
.uc-sai .lst .tg.fail {
  background: #fdecc8;
  color: #9a5b00;
}
.uc-sai .lst .tg {
  background: rgba(22, 211, 66, 0.1);
  color: #0b7f28;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
}
.uc-sai .txt {
  font-size: 13px;
  color: #525252;
  line-height: 1.55;
}
.uc-sai .txt b {
  color: #171717;
  font-weight: 600;
}
.uc-sai .prg {
  height: 4px;
  border-radius: 4px;
  background: #f0f0eb;
  overflow: hidden;
  max-width: 320px;
}
.uc-sai .prg i {
  display: block;
  height: 100%;
  background: var(--sg);
  width: 0;
  transition: width 0.25s;
}
.uc-sai .prg-l {
  font:
    400 11px/1 'JetBrains Mono Variable',
    'JetBrains Mono',
    ui-monospace,
    monospace;
  color: #8a8a8a;
  margin-top: 7px;
}
.uc-sai .apc {
  margin-top: 10px;
  border: 1px solid rgba(255, 171, 60, 0.55);
  background: #fffaf2;
  border-radius: 14px;
  padding: 14px 16px;
}
.uc-sai .apc .ey {
  font:
    600 10px/1 'JetBrains Mono Variable',
    'JetBrains Mono',
    ui-monospace,
    monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a5b00;
}
.uc-sai .apc p {
  font-size: 13.5px;
  color: #262626;
  margin: 8px 0 12px;
  line-height: 1.5;
}
.uc-sai .apc .bt {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.uc-sai .apc button {
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: default;
  transition: transform 0.19s;
}
.uc-sai .apc .pri {
  background: #0c0c0c;
  color: #fff;
  border: 1px solid #0c0c0c;
}
.uc-sai .apc .sec {
  background: #fff;
  border: 1px solid #d9d9d4;
  color: #262626;
}
.uc-sai .apc .pri.press {
  transform: scale(0.94);
  box-shadow: 0 0 0 4px rgba(12, 12, 12, 0.12);
}
.uc-sai .fin {
  animation: uc-stepIn 0.4s ease both;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.uc-sai .fin .cl {
  font-size: 13px;
  color: #525252;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.uc-sai .fin .cl span {
  border: 1px solid rgba(22, 211, 66, 0.45);
  color: #0b7f28;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11.5px;
  font-weight: 600;
}
.uc-sai .fcard {
  border: 1px solid rgba(22, 211, 66, 0.35);
  border-radius: 20px;
  padding: 18px 20px;
}
.uc-sai .fcard .tp {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  font-weight: 600;
  color: #0b7f28;
}
.uc-sai .fcard .tp a {
  color: #525252;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.uc-sai .fcard h4 {
  margin: 10px 0 6px;
  font: 600 20px/1.25 inherit;
  color: #171717;
}
.uc-sai .fcard p {
  font-size: 13.5px;
  color: #525252;
  line-height: 1.55;
}
.uc-sai .fcard .stats {
  display: flex;
  gap: 28px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f0f0eb;
}
.uc-sai .fcard .stats div {
  font:
    500 10px/1 'JetBrains Mono Variable',
    'JetBrains Mono',
    ui-monospace,
    monospace;
  letter-spacing: 0.08em;
  color: #8a8a8a;
}
.uc-sai .fcard .stats b {
  display: block;
  font: 600 20px/1 inherit;
  color: #171717;
  margin-top: 6px;
  letter-spacing: 0;
}
.uc-sai .sai-c {
  flex: none;
  margin: 0 clamp(12px, 3vw, 24px) 18px;
  border: 1px solid rgba(22, 211, 66, 0.3);
  border-radius: 20px;
  padding: 12px 14px 10px;
}
.uc-sai .sai-c .in {
  font-size: 14px;
  color: #a3a3a3;
  min-height: 42px;
  max-height: 64px;
  overflow: hidden;
  line-height: 1.5;
}
.uc-sai .sai-c .in.on {
  color: #171717;
}
.uc-sai .caret {
  display: inline-block;
  width: 1.5px;
  height: 15px;
  background: #171717;
  vertical-align: -2px;
  margin-left: 1px;
  animation: uc-caret 1s steps(1) infinite;
}
.uc-sai .sai-c .bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  color: #737373;
  font-size: 12.5px;
}
.uc-sai .sai-c .bar svg {
  width: 16px;
  height: 16px;
}
.uc-sai .sai-c .ag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #ecece7;
  border-radius: 999px;
  padding: 4px 9px;
}
.uc-sai .sai-c .snd {
  margin-left: auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f2f2ee;
  color: #a3a3a3;
  transition: background 0.2s;
}
.uc-sai .sai-c .snd.on {
  background: #0c0c0c;
  color: #fff;
}
@keyframes uc-stepIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes uc-wdot {
  0%,
  80%,
  100% {
    opacity: 0.3;
  }
  40% {
    opacity: 1;
  }
}
@keyframes uc-shimmer {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -100% 0;
  }
}
@keyframes uc-caret {
  50% {
    opacity: 0;
  }
}
@media (max-width: 560px) {
  .uc-sai {
    height: 640px;
  }
  .uc-sai .fcard .stats {
    gap: 18px;
  }
  .uc-sai .sai-u {
    max-width: 92%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .uc-sai * {
    animation: none !important;
    transition: none !important;
  }
}
.uc-sai .sai-c .bar .mic {
  margin-left: auto;
}
.uc-sai .sai-c .bar .snd {
  margin-left: 0;
}
.uc-sai .fcard .tp-ok {
  display: flex;
  gap: 6px;
  align-items: center;
}
.uc-sai .fcard .tp-ok .ok {
  width: 15px;
  height: 15px;
  color: #0fa635;
}

.uc-sai .prg i.full{width:100%}
