.charioot-cloud-app,
.charioot-cloud-dashboard,
.charioot-cloud-login,
.charioot-cloud-page {
  color: #172033;
  font-family: inherit;
}

.charioot-cloud-app__header,
.charioot-cloud-page__hero,
.charioot-cloud-login {
  max-width: 920px;
  margin: 0 auto 24px;
}

.charioot-cloud-app__eyebrow,
.charioot-cloud-page__eyebrow {
  margin: 0 0 8px;
  color: #2563eb;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.charioot-cloud-app h2,
.charioot-cloud-page h1,
.charioot-cloud-login h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
}

.charioot-cloud-panel,
.charioot-cloud-project-card,
.charioot-cloud-page__conversation {
  background: #fff;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(37, 99, 235, 0.08);
}

.charioot-cloud-panel {
  padding: 18px;
  margin: 0 0 18px;
}

.charioot-cloud-inline-preview {
  width: 100%;
  min-height: 720px;
  border: 1px solid rgba(153, 126, 72, 0.32);
  border-radius: 12px;
  background: #fffaf0;
  box-shadow: 0 18px 48px rgba(53, 37, 20, 0.12);
}

.charioot-cloud-login-hint {
  max-width: 920px;
  margin: 0 auto 18px;
  padding: 14px 16px;
  border: 1px solid rgba(47, 89, 72, 0.24);
  border-radius: 10px;
  background: rgba(250, 245, 231, 0.78);
  color: #3f2f23;
}

.charioot-cloud-login-hint strong {
  display: block;
  margin: 0 0 4px;
  color: #8e1f2c;
}

.charioot-cloud-login-hint p {
  margin: 0;
}

.charioot-cloud-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.charioot-cloud-field {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  font-weight: 700;
}

.charioot-cloud-field input,
.charioot-cloud-panel input[type="url"] {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font: inherit;
}

.charioot-cloud-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid #1d4ed8;
  border-radius: 6px;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.charioot-cloud-button:hover,
.charioot-cloud-button:focus {
  background: #1d4ed8;
  color: #fff;
}

.charioot-cloud-button.is-secondary {
  border-color: #cbd5e1;
  background: #fff;
  color: #172033;
}

.charioot-cloud-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}

.charioot-cloud-status {
  color: #475569;
  font-size: 14px;
}

.charioot-cloud-status.is-error,
.charioot-cloud-error {
  color: #b91c1c;
}

.charioot-cloud-list {
  display: grid;
  gap: 10px;
}

.charioot-cloud-set-card {
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #fff;
}

.charioot-cloud-set-card.is-active {
  border-color: #93c5fd;
  background: #f8fbff;
  box-shadow: inset 0 0 0 1px #bfdbfe;
}

.charioot-cloud-panel.is-locked {
  position: relative;
}

.charioot-cloud-panel.is-locked .charioot-cloud-set-card,
.charioot-cloud-panel.is-locked .charioot-cloud-character-chip {
  opacity: 0.46;
  filter: grayscale(0.75);
}

.charioot-cloud-panel.is-locked .charioot-cloud-choice,
.charioot-cloud-panel.is-locked .charioot-cloud-character-chip {
  cursor: not-allowed;
}

.charioot-cloud-character-lock {
  margin: 0 0 12px;
  padding: 9px 12px;
  border: 1px solid #d7c6a3;
  border-radius: 999px;
  background: #fff7df;
  color: #7a4a17;
  font-size: 13px;
  font-weight: 800;
}

.charioot-cloud-choice {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  cursor: pointer;
}

.charioot-cloud-set-card > .charioot-cloud-choice {
  padding: 4px 6px;
  border: 0;
  border-radius: 6px;
}

.charioot-cloud-choice.has-icon {
  grid-template-columns: 22px 48px minmax(0, 1fr);
  align-items: center;
}

.charioot-cloud-candidate-choice.has-thumb {
  grid-template-columns: 22px 96px minmax(0, 1fr);
  align-items: center;
}

.charioot-cloud-candidate-choice em {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #eef6ef;
  color: #2f5948;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.charioot-cloud-candidate-thumb {
  display: block;
  width: 96px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid #d7c6a3;
  border-radius: 6px;
  background: linear-gradient(135deg, #fffaf0, #ead7a2);
}

.charioot-cloud-candidate-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.charioot-cloud-candidate-thumb.is-empty {
  display: grid;
  place-items: center;
  color: #8a5a18;
  font-weight: 900;
}

.charioot-cloud-progress-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 10px 0 2px;
}

.charioot-cloud-progress-badges span {
  display: inline-flex;
  max-width: min(100%, 280px);
  padding: 4px 10px;
  border: 1px solid rgba(47, 89, 72, 0.24);
  border-radius: 999px;
  background: #eef6ef;
  color: #2f5948;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.charioot-cloud-choice__icon {
  width: 48px;
  height: 48px;
  border: 1px solid #dbe4f0;
  border-radius: 50%;
  background: #fffaf0;
  object-fit: cover;
}

.charioot-cloud-choice__badge {
  display: inline-flex;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  vertical-align: middle;
}

.charioot-cloud-choice strong,
.charioot-cloud-choice small {
  display: block;
}

.charioot-cloud-choice small,
.charioot-cloud-muted {
  color: #64748b;
  font-size: 13px;
}

.charioot-cloud-choice__meta {
  display: block;
  margin-top: 3px;
  color: #8a5a18;
  font-size: 12px;
  font-weight: 700;
}

.charioot-cloud-character-picker {
  padding: 8px 6px 6px;
  border-top: 1px solid #e2e8f0;
}

.charioot-cloud-character-picker__title {
  margin: 0 0 6px;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.charioot-cloud-character-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(106px, 1fr));
  gap: 7px;
}

.charioot-cloud-character-chip {
  position: relative;
  display: grid;
  justify-items: center;
  align-items: start;
  gap: 5px;
  min-height: 92px;
  padding: 8px 7px 7px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.charioot-cloud-character-chip:has(input:checked) {
  border-color: #f59e0b;
  background: #fffbeb;
  box-shadow: inset 0 0 0 1px #f59e0b;
}

.charioot-cloud-character-chip input {
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: 1;
  margin: 0;
}

.charioot-cloud-character-chip__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border: 1px solid #dbe4f0;
  border-radius: 50%;
  background: #fff7ed;
  color: #92400e;
  font-weight: 800;
}

.charioot-cloud-character-chip__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.charioot-cloud-character-chip strong {
  display: block;
}

.charioot-cloud-character-chip strong {
  color: #172033;
  font-size: 12px;
  line-height: 1.28;
  text-align: center;
}

.charioot-cloud-character-chip__name {
  display: -webkit-box;
  width: 100%;
  min-height: 31px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.charioot-cloud-login__sets {
  border-top: 1px solid rgba(148, 163, 184, 0.34);
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
}

.charioot-cloud-login__sets h3,
.charioot-cloud-login__sets p {
  margin: 0;
}

.charioot-cloud-login__sets h3 {
  color: #172033;
  font-size: 1.05rem;
  letter-spacing: 0;
  line-height: 1.35;
}

.charioot-cloud-login__sets > p {
  color: #64748b;
}

.charioot-cloud-list--preview .charioot-cloud-set-card {
  background: rgba(255, 255, 255, 0.72);
}

.charioot-cloud-result,
.charioot-cloud-projects {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.charioot-cloud-analysis-progress {
  display: grid;
  gap: 14px;
  margin-top: 20px;
  padding: 18px;
  border: 1px solid #f2d28a;
  border-radius: 8px;
  background: linear-gradient(180deg, #fffaf0 0%, #ffffff 100%);
  box-shadow: 0 14px 34px rgba(138, 90, 24, 0.1);
}

.charioot-cloud-app.is-generating .charioot-cloud-analysis-progress {
  max-width: 920px;
  margin: 26px auto 0;
}

.charioot-cloud-analysis-progress[hidden] {
  display: none;
}

.charioot-cloud-analysis-progress__head {
  position: relative;
  display: grid;
  gap: 8px;
}

.charioot-cloud-analysis-progress__head h3,
.charioot-cloud-analysis-progress__head p {
  margin: 0;
}

.charioot-cloud-analysis-progress__head small {
  color: #7c5c2e;
}

.charioot-cloud-analysis-progress__percent {
  color: #92400e;
  font-size: 13px;
}

.charioot-cloud-progressbar {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #f4e7c5;
}

.charioot-cloud-progressbar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d97706, #2563eb);
  transition: width 0.35s ease;
}

.charioot-cloud-analysis-chat {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(47, 89, 72, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(47, 89, 72, 0.08), transparent 48%, rgba(142, 35, 31, 0.06)),
    #fffdf7;
}

.charioot-cloud-analysis-chat__head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
}

.charioot-cloud-analysis-chat__head span {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef6ef;
  color: #2f5948;
  font-size: 12px;
  font-weight: 900;
}

.charioot-cloud-analysis-chat__head strong {
  color: #5b3e2c;
  font-size: 13px;
}

.charioot-cloud-analysis-chat__line {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.charioot-cloud-analysis-chat__line.is-alt {
  grid-template-columns: minmax(0, 1fr) 48px;
}

.charioot-cloud-analysis-chat__line.is-alt .charioot-cloud-analysis-chat__avatar {
  grid-column: 2;
}

.charioot-cloud-analysis-chat__line.is-alt > div {
  grid-column: 1;
  grid-row: 1;
}

.charioot-cloud-analysis-chat__avatar {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 1px solid #d7c6a3;
  border-radius: 50%;
  background: #fffaf0;
  color: #8e231f;
  font-weight: 900;
}

.charioot-cloud-analysis-chat__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.charioot-cloud-analysis-chat__line > div {
  position: relative;
  padding: 10px 12px;
  border: 1px solid #ead9b6;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 18px rgba(138, 90, 24, 0.08);
}

.charioot-cloud-analysis-chat__line > div::before {
  content: "";
  position: absolute;
  top: 16px;
  left: -6px;
  width: 10px;
  height: 10px;
  border-left: 1px solid #ead9b6;
  border-bottom: 1px solid #ead9b6;
  background: rgba(255, 255, 255, 0.9);
  transform: rotate(45deg);
}

.charioot-cloud-analysis-chat__line.is-alt > div::before {
  right: -6px;
  left: auto;
  border-right: 1px solid #ead9b6;
  border-left: 0;
}

.charioot-cloud-analysis-chat__line strong {
  display: block;
  margin-bottom: 4px;
  color: #8e231f;
  font-size: 13px;
}

.charioot-cloud-analysis-chat__line p {
  margin: 0;
  color: #172033;
  font-size: 14px;
  line-height: 1.75;
}

.charioot-cloud-analysis-progress__timeline {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.charioot-cloud-analysis-progress__timeline li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 6px 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid #ead9b6;
  border-radius: 8px;
  background: #fff;
}

.charioot-cloud-analysis-progress__timeline li span {
  display: inline-flex;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.charioot-cloud-analysis-progress__timeline li small {
  grid-column: 2;
  color: #64748b;
}

.charioot-cloud-analysis-progress__timeline li.is-done span,
.charioot-cloud-analysis-progress__timeline li.is-complete span,
.charioot-cloud-analysis-progress__timeline li.is-completed span {
  background: #dcfce7;
  color: #166534;
}

.charioot-cloud-analysis-progress__timeline li.is-running {
  border-color: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.12);
}

.charioot-cloud-analysis-progress__timeline li.is-running span {
  background: #fef3c7;
  color: #92400e;
}

.charioot-cloud-analysis-progress__timeline li.is-running span::after {
  content: "";
  width: 6px;
  height: 6px;
  margin: 5px 0 0 5px;
  border-radius: 50%;
  background: currentColor;
  animation: chariootCloudPulse 1s infinite ease-in-out;
}

.charioot-cloud-analysis-progress__links {
  padding-top: 4px;
}

.charioot-cloud-analysis-progress__links summary {
  cursor: pointer;
  color: #92400e;
  font-weight: 800;
}

.charioot-cloud-analysis-progress__links article {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #ead9b6;
  border-radius: 8px;
  background: #fff;
}

.charioot-cloud-analysis-progress__links small,
.charioot-cloud-analysis-progress__links p {
  display: block;
  margin: 4px 0 0;
  color: #64748b;
  overflow-wrap: anywhere;
}

@keyframes chariootCloudPulse {
  0%, 100% {
    opacity: 0.35;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

.charioot-cloud-project-card {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.charioot-cloud-project-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.charioot-cloud-preview {
  display: grid;
  gap: 10px;
}

.charioot-cloud-preview-line,
.charioot-cloud-line {
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.charioot-cloud-preview-line p,
.charioot-cloud-line p {
  margin: 6px 0 0;
}

.charioot-cloud-page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px;
}

.charioot-cloud-page__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
  color: #475569;
  font-size: 14px;
}

.charioot-cloud-page__conversation {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.charioot-cloud-story-page {
  max-width: none;
  min-height: 100vh;
  padding: clamp(12px, 2.4vw, 28px);
  background:
    linear-gradient(90deg, rgba(117, 85, 35, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(117, 85, 35, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 18% 12%, rgba(183, 126, 41, 0.18), transparent 30%),
    radial-gradient(circle at 82% 8%, rgba(34, 92, 73, 0.12), transparent 28%),
    linear-gradient(180deg, #fff9e9 0%, #f7ebc9 48%, #efe0b7 100%);
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
}

.charioot-cloud-story-hero,
.charioot-cloud-story-insights,
.charioot-cloud-conversation-theater {
  width: min(1180px, 100%);
  margin-inline: auto;
}

.charioot-cloud-story-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: clamp(12px, 2.5vw, 24px);
  align-items: center;
  min-height: auto;
  padding: 14px 0 16px;
  border-bottom: 1px solid rgba(122, 75, 22, 0.16);
}

.charioot-cloud-story-hero__copy {
  display: grid;
  gap: 10px;
}

.charioot-cloud-story-hero h1 {
  max-width: 920px;
  margin: 0;
  color: #211714;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.12;
}

.charioot-cloud-story-hero__lead {
  display: none;
}

.charioot-cloud-story-hero .charioot-cloud-page__actions {
  display: none;
}

.charioot-cloud-story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.charioot-cloud-story-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(74, 106, 82, 0.34);
  border-radius: 999px;
  background: rgba(255, 252, 240, 0.72);
  color: #2f5948;
  font-size: 12px;
  font-weight: 800;
}

.charioot-cloud-story-page .charioot-cloud-button {
  min-height: 40px;
  padding: 8px 14px;
  border-color: #7d201f;
  border-radius: 7px;
  background: linear-gradient(180deg, #b1362e, #7d201f);
  box-shadow: 0 12px 28px rgba(125, 32, 31, 0.18);
}

.charioot-cloud-story-page .charioot-cloud-button.is-secondary {
  border-color: rgba(47, 89, 72, 0.36);
  background: rgba(255, 252, 240, 0.8);
  color: #2f5948;
  box-shadow: none;
}

.charioot-cloud-cast {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(122, 75, 22, 0.24);
  border-radius: 8px;
  background: rgba(255, 252, 240, 0.82);
  box-shadow: 0 16px 42px rgba(74, 54, 28, 0.12);
  backdrop-filter: blur(6px);
}

.charioot-cloud-cast > p {
  margin: 0;
  color: #8e231f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.charioot-cloud-cast__member {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.charioot-cloud-cast__member strong,
.charioot-cloud-cast__member small {
  display: block;
}

.charioot-cloud-cast__member strong {
  color: #211714;
  font-size: 13px;
  line-height: 1.35;
}

.charioot-cloud-cast__member small {
  margin-top: 2px;
  color: #7b6244;
  font-size: 11px;
  font-weight: 700;
}

.charioot-cloud-cast .charioot-cloud-story-avatar {
  width: 46px;
  height: 46px;
}

.charioot-cloud-story-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border: 2px solid rgba(184, 130, 51, 0.44);
  border-radius: 50%;
  background: #fffaf0;
  color: #8e231f;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(74, 54, 28, 0.16);
}

.charioot-cloud-story-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.charioot-cloud-story-insights {
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 28px 0;
}

.charioot-cloud-story-insights article {
  min-height: 152px;
  padding: 16px;
  border: 1px solid rgba(122, 75, 22, 0.22);
  border-radius: 8px;
  background: rgba(255, 252, 240, 0.76);
  box-shadow: 0 16px 38px rgba(74, 54, 28, 0.09);
}

.charioot-cloud-story-insights span {
  display: block;
  margin-bottom: 10px;
  color: #8e231f;
  font-size: 12px;
  font-weight: 900;
}

.charioot-cloud-story-insights strong {
  display: block;
  color: #211714;
  font-size: 18px;
  line-height: 1.35;
}

.charioot-cloud-story-insights p {
  margin: 10px 0 0;
  color: #5f4a36;
  font-size: 14px;
  line-height: 1.65;
}

.charioot-cloud-conversation-theater {
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid rgba(122, 75, 22, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 252, 240, 0.92), rgba(255, 248, 223, 0.82)),
    repeating-linear-gradient(90deg, rgba(122, 75, 22, 0.04) 0 1px, transparent 1px 34px);
  box-shadow: 0 26px 70px rgba(74, 54, 28, 0.16);
}

.charioot-cloud-conversation-theater__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(122, 75, 22, 0.2);
}

.charioot-cloud-conversation-theater__header h2 {
  margin: 0;
  color: #211714;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 48px);
}

.charioot-cloud-conversation-theater__header span {
  flex: 0 0 auto;
  color: #2f5948;
  font-size: 13px;
  font-weight: 900;
}

.charioot-cloud-conversation-theater.is-vn + .charioot-cloud-conversation-theater {
  display: none;
}

.charioot-cloud-vn {
  display: grid;
  gap: 16px;
  outline: none;
}

.charioot-cloud-vn:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.42);
  outline-offset: 5px;
}

.charioot-cloud-vn__mode {
  display: inline-flex;
  width: fit-content;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(122, 75, 22, 0.24);
  border-radius: 999px;
  background: rgba(255, 252, 240, 0.72);
  box-shadow: 0 10px 24px rgba(74, 54, 28, 0.08);
}

.charioot-cloud-vn__mode button {
  min-height: 36px;
  padding: 7px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #5b3e2c;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.charioot-cloud-vn__mode button.is-active {
  background: #2f5948;
  color: #fffaf0;
  box-shadow: 0 8px 18px rgba(47, 89, 72, 0.16);
}

.charioot-cloud-vn__panel {
  display: grid;
  gap: 16px;
}

.charioot-cloud-vn__panel[hidden] {
  display: none;
}

.charioot-cloud-vn__stage {
  position: relative;
  min-height: clamp(560px, 68vh, 760px);
  overflow: hidden;
  border: 1px solid rgba(122, 75, 22, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(39, 29, 20, 0.08), rgba(39, 29, 20, 0.22)),
    linear-gradient(90deg, rgba(47, 89, 72, 0.12), transparent 24%, transparent 76%, rgba(142, 35, 31, 0.1)),
    linear-gradient(180deg, #fff7dc 0%, #f2dfad 66%, #d7b779 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38);
}

.charioot-cloud-vn__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(122, 75, 22, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(122, 75, 22, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

.charioot-cloud-vn__stage::after {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 22%;
  height: 18px;
  border-radius: 999px;
  background: rgba(77, 54, 30, 0.18);
  filter: blur(14px);
}

.charioot-cloud-vn__visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.charioot-cloud-vn__visual > img {
  position: absolute;
  inset: -18px;
  width: calc(100% + 36px);
  height: calc(100% + 36px);
  object-fit: cover;
  opacity: 0.22;
  filter: blur(12px) saturate(0.85) sepia(0.16);
}

.charioot-cloud-vn__visual > figure {
  position: absolute;
  top: clamp(24px, 5vh, 52px);
  left: 50%;
  width: min(58vw, 780px);
  max-width: calc(100% - 48px);
  margin: 0;
  transform: translateX(-50%);
  opacity: 0.82;
}

.charioot-cloud-vn__visual > figure img {
  display: block;
  width: 100%;
  max-height: clamp(260px, 42vh, 430px);
  object-fit: cover;
  object-position: top center;
  border: 1px solid rgba(122, 75, 22, 0.32);
  border-radius: 6px;
  background: rgba(255, 252, 240, 0.82);
  box-shadow: 0 24px 58px rgba(54, 37, 18, 0.26);
}

.charioot-cloud-vn__visual > figure figcaption {
  width: fit-content;
  max-width: 100%;
  margin: 8px auto 0;
  padding: 4px 10px;
  border: 1px solid rgba(122, 75, 22, 0.2);
  border-radius: 999px;
  background: rgba(255, 252, 240, 0.82);
  color: #5b3e2c;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.charioot-cloud-vn__actors {
  position: absolute;
  inset: 30px 5% 126px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 2%;
}

.charioot-cloud-vn-actor {
  display: grid;
  justify-items: center;
  align-self: end;
  min-width: 0;
  margin: 0;
  opacity: 0.68;
  transform: translateY(22px) scale(0.92);
  filter: saturate(0.82) brightness(0.92);
  transition: opacity 220ms ease, transform 220ms ease, filter 220ms ease;
}

.charioot-cloud-vn-actor.is-active {
  z-index: 2;
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: saturate(1.08) brightness(1.04);
}

.charioot-cloud-vn-actor.is-pos-1 {
  transform-origin: left bottom;
}

.charioot-cloud-vn-actor.is-pos-2 {
  transform-origin: center bottom;
}

.charioot-cloud-vn-actor.is-pos-3 {
  transform-origin: right bottom;
}

.charioot-cloud-vn-actor:only-child {
  grid-column: 2;
}

.charioot-cloud-vn-actor:nth-child(2):last-child {
  grid-column: 3;
}

.charioot-cloud-vn-actor__image {
  display: flex;
  align-items: end;
  justify-content: center;
  width: min(100%, 360px);
  height: clamp(320px, 48vw, 570px);
}

.charioot-cloud-vn-actor__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 24px 28px rgba(54, 37, 18, 0.22));
}

.charioot-cloud-vn-actor__image span {
  display: inline-grid;
  place-items: center;
  width: 150px;
  height: 150px;
  border: 2px solid rgba(184, 130, 51, 0.48);
  border-radius: 999px;
  background: #fffaf0;
  color: #8e231f;
  font-size: 54px;
  font-weight: 900;
}

.charioot-cloud-vn-actor figcaption {
  max-width: 220px;
  margin-top: -10px;
  padding: 5px 10px;
  border: 1px solid rgba(122, 75, 22, 0.24);
  border-radius: 999px;
  background: rgba(255, 252, 240, 0.82);
  color: #5b3e2c;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.charioot-cloud-vn__dialogue {
  position: absolute;
  left: clamp(14px, 3vw, 34px);
  right: clamp(14px, 3vw, 34px);
  bottom: clamp(14px, 3vw, 30px);
  z-index: 3;
  display: grid;
  gap: 10px;
  min-height: 166px;
  padding: clamp(16px, 2.6vw, 24px);
  border: 2px solid rgba(122, 75, 22, 0.26);
  border-radius: 8px;
  background: rgba(255, 252, 240, 0.92);
  box-shadow: 0 24px 54px rgba(60, 40, 22, 0.22);
  backdrop-filter: blur(8px);
}

.charioot-cloud-vn__status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #7b6244;
  font-size: 12px;
  font-weight: 900;
}

.charioot-cloud-vn__status span:first-child {
  min-width: 56px;
  color: #2f5948;
}

.charioot-cloud-vn__dialogue > strong {
  color: #8e231f;
  font-size: clamp(15px, 1.8vw, 18px);
}

.charioot-cloud-vn__dialogue > p {
  margin: 0;
  color: #172033;
  font-size: clamp(17px, 2.15vw, 24px);
  font-weight: 700;
  line-height: 1.68;
}

.charioot-cloud-vn__dialogue > p.is-typing::after {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  margin-left: 0.12em;
  border-right: 2px solid #8e231f;
  transform: translateY(0.12em);
  animation: charioot-cloud-caret 820ms steps(1) infinite;
}

@keyframes charioot-cloud-caret {
  50% {
    opacity: 0;
  }
}

.charioot-cloud-vn__controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.charioot-cloud-vn__cta {
  display: flex;
  justify-content: flex-end;
}

.charioot-cloud-vn__cta[hidden] {
  display: none;
}

.charioot-cloud-vn__cta a,
.charioot-cloud-vn-chat__cta a,
.charioot-cloud-story-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid #7d201f;
  border-radius: 7px;
  background: linear-gradient(180deg, #b1362e, #7d201f);
  color: #fffaf0;
  font-weight: 900;
  text-decoration: none;
}

.charioot-cloud-vn__controls button,
.charioot-cloud-vn__timeline button {
  min-height: 36px;
  border: 1px solid rgba(122, 75, 22, 0.28);
  border-radius: 7px;
  background: #fffaf0;
  color: #513723;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.charioot-cloud-vn__controls button {
  min-width: 86px;
  padding: 7px 13px;
}

.charioot-cloud-vn__controls button[data-cc-vn-next] {
  border-color: #7d201f;
  background: linear-gradient(180deg, #b1362e, #7d201f);
  color: #fffaf0;
}

.charioot-cloud-vn__controls button:disabled {
  cursor: default;
  opacity: 0.46;
}

.charioot-cloud-vn__timeline {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(92px, 124px);
  gap: 8px;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  list-style: none;
}

.charioot-cloud-vn__timeline button {
  display: grid;
  width: 100%;
  padding: 8px;
  text-align: left;
}

.charioot-cloud-vn__timeline button.is-active {
  border-color: #8e231f;
  background: #fff1d1;
  box-shadow: inset 0 0 0 1px rgba(142, 35, 31, 0.18);
}

.charioot-cloud-vn__timeline span {
  color: #2f5948;
  font-size: 11px;
}

.charioot-cloud-vn__timeline strong {
  color: #211714;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.charioot-cloud-vn-chat {
  display: grid;
  gap: 12px;
  padding: clamp(12px, 2vw, 18px);
  border: 1px solid rgba(122, 75, 22, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 252, 240, 0.9), rgba(255, 248, 223, 0.78)),
    repeating-linear-gradient(90deg, rgba(122, 75, 22, 0.04) 0 1px, transparent 1px 34px);
}

.charioot-cloud-vn-chat__status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  color: #5f4a36;
  font-size: 13px;
  font-weight: 800;
}

.charioot-cloud-vn-chat__status span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(47, 89, 72, 0.1);
  color: #2f5948;
}

.charioot-cloud-vn-chat__line {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  width: min(860px, 100%);
  padding: 12px;
  border: 1px solid rgba(122, 75, 22, 0.18);
  border-radius: 8px;
  background: rgba(255, 253, 246, 0.88);
  box-shadow: 0 10px 22px rgba(74, 54, 28, 0.06);
  cursor: pointer;
}

.charioot-cloud-vn-chat__line[hidden],
.charioot-cloud-vn-chat__cta[hidden] {
  display: none;
}

.charioot-cloud-vn-chat__line.is-visible {
  animation: chariootCloudChatBubbleIn 180ms ease-out both;
}

.charioot-cloud-vn-chat__line:nth-of-type(even) {
  justify-self: end;
  grid-template-columns: minmax(0, 1fr) 54px;
  border-color: rgba(47, 89, 72, 0.2);
  background: rgba(247, 251, 244, 0.9);
}

.charioot-cloud-vn-chat__line:nth-of-type(even) .charioot-cloud-story-avatar {
  grid-column: 2;
}

.charioot-cloud-vn-chat__line:nth-of-type(even) > div {
  grid-column: 1;
  grid-row: 1;
}

.charioot-cloud-vn-chat__line.is-active {
  border-color: #8e231f;
  box-shadow: inset 0 0 0 1px rgba(142, 35, 31, 0.18), 0 16px 34px rgba(74, 54, 28, 0.1);
}

.charioot-cloud-vn-chat__line strong {
  display: block;
  margin-bottom: 5px;
  color: #8e231f;
  font-size: 13px;
}

.charioot-cloud-vn-chat__line p {
  margin: 0;
  color: #172033;
  font-size: clamp(14px, 1.65vw, 17px);
  font-weight: 700;
  line-height: 1.75;
}

.charioot-cloud-vn-chat__cta,
.charioot-cloud-story-cta {
  display: grid;
  gap: 8px;
  justify-items: start;
  margin-top: 8px;
  padding: 16px;
  border: 1px solid rgba(142, 35, 31, 0.28);
  border-radius: 8px;
  background: #fff7df;
}

.charioot-cloud-vn-chat__cta strong,
.charioot-cloud-story-cta strong {
  color: #8e231f;
  font-size: 14px;
}

.charioot-cloud-vn-chat__cta p,
.charioot-cloud-story-cta p {
  margin: 0;
  color: #5f4a36;
  font-size: 14px;
}

.charioot-cloud-vn-chat__controls {
  display: flex;
  justify-content: center;
  padding-top: 4px;
}

.charioot-cloud-vn-chat__next {
  min-height: 42px;
  padding: 8px 18px;
  border: 1px solid rgba(142, 35, 31, 0.28);
  border-radius: 999px;
  background: #fff8e7;
  color: #8e231f;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(74, 54, 28, 0.08);
}

.charioot-cloud-vn-chat__next:hover,
.charioot-cloud-vn-chat__next:focus-visible {
  background: #8e231f;
  color: #fffdf6;
}

@keyframes chariootCloudChatBubbleIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.charioot-cloud-story-chat {
  display: grid;
  gap: 16px;
}

.charioot-cloud-story-line {
  display: grid;
  grid-template-columns: 58px minmax(0, 760px);
  gap: 12px;
  align-items: start;
}

.charioot-cloud-story-line.is-alt {
  grid-template-columns: minmax(0, 760px) 58px;
  justify-content: end;
}

.charioot-cloud-story-line.is-alt .charioot-cloud-story-avatar {
  grid-column: 2;
}

.charioot-cloud-story-line.is-alt .charioot-cloud-story-line__bubble {
  grid-column: 1;
  grid-row: 1;
  border-color: rgba(47, 89, 72, 0.22);
  background: #f7fbf4;
}

.charioot-cloud-story-line__bubble {
  padding: 16px 18px;
  border: 1px solid rgba(122, 75, 22, 0.2);
  border-radius: 8px;
  background: #fffdf6;
  color: #172033;
  box-shadow: 0 12px 28px rgba(74, 54, 28, 0.08);
}

.charioot-cloud-story-line__bubble strong {
  display: block;
  margin-bottom: 8px;
  color: #8e231f;
  font-size: 14px;
}

.charioot-cloud-story-line__bubble p {
  margin: 0;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.85;
}

.charioot-cloud-empty {
  margin: 0;
  color: #64748b;
}

.charioot-cloud-admin {
  color: #172033;
}

.charioot-cloud-setup-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 1040px;
  margin: 18px 0;
}

.charioot-cloud-setup-progress__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-weight: 700;
}

.charioot-cloud-setup-progress__item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #172033;
  font-size: 12px;
}

.charioot-cloud-setup-progress__item.is-done {
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
}

.charioot-cloud-setup-progress__item.is-done span {
  background: #22c55e;
  color: #fff;
}

.charioot-cloud-setup-step {
  max-width: 1040px;
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #fff;
}

.charioot-cloud-setup-step__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
}

.charioot-cloud-setup-step__header h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.charioot-cloud-setup-step__header p {
  margin: 0;
  color: #475569;
}

.charioot-cloud-setup-step__kicker {
  margin: 0 0 6px !important;
  color: #2563eb !important;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.charioot-cloud-setup-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #fbbf24;
  background: #fffbeb;
  color: #92400e;
  font-weight: 700;
}

.charioot-cloud-setup-badge.is-done {
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
}

.charioot-cloud-admin-details {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #f8fafc;
}

.charioot-cloud-admin-details summary {
  cursor: pointer;
  font-weight: 700;
}

.charioot-cloud-admin-note {
  margin: 12px 0 0;
  padding: 12px;
  border-left: 4px solid #2563eb;
  background: #eff6ff;
  color: #1e3a8a;
}

.charioot-cloud-service-links {
  margin: 14px 0 0;
  padding: 12px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #fffdf6;
}

.charioot-cloud-service-links__title {
  margin: 0 0 8px;
  color: #7c2d12;
  font-size: 13px;
  font-weight: 800;
}

.charioot-cloud-service-links__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.charioot-cloud-service-link {
  display: grid;
  gap: 5px;
  min-height: 78px;
  padding: 10px;
  border: 1px solid #ead9b6;
  border-radius: 8px;
  background: #fff;
  color: #172033;
  text-decoration: none;
}

.charioot-cloud-service-link:hover,
.charioot-cloud-service-link:focus {
  border-color: #2563eb;
  color: #1d4ed8;
  box-shadow: 0 0 0 1px #bfdbfe;
}

.charioot-cloud-service-link strong {
  font-size: 13px;
  line-height: 1.35;
}

.charioot-cloud-service-link span {
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.charioot-cloud-copy-guide {
  margin: 14px 0 0;
  padding: 12px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #f8fbff;
}

.charioot-cloud-copy-guide h3 {
  margin: 0 0 6px;
  color: #1e3a8a;
  font-size: 15px;
}

.charioot-cloud-copy-guide p {
  margin: 0 0 10px;
  color: #475569;
}

.charioot-cloud-copy-guide__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.charioot-cloud-copy-value {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #fff;
}

.charioot-cloud-copy-value span {
  color: #172033;
  font-size: 12px;
  font-weight: 800;
}

.charioot-cloud-copy-value input {
  width: 100%;
  max-width: 100%;
  min-height: 34px;
  font-family: Consolas, Monaco, monospace;
}

.charioot-cloud-copy-value small {
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.charioot-cloud-connect {
  color: #172033;
}

.charioot-cloud-connect-hero {
  max-width: 1040px;
  margin: 16px 0 18px;
  padding: 18px;
  border: 1px solid #c7d2fe;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(30, 41, 59, 0.07);
}

.charioot-cloud-connect-hero span {
  display: inline-flex;
  margin: 0 0 8px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.charioot-cloud-connect-hero h2 {
  max-width: 820px;
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 24px;
  line-height: 1.35;
}

.charioot-cloud-connect-hero p {
  max-width: 860px;
  margin: 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.7;
}

.charioot-cloud-connect-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 16px;
  max-width: 1040px;
  margin: 0 0 16px;
}

.charioot-cloud-connect-card {
  margin: 0 0 16px;
  padding: 16px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #fff;
}

.charioot-cloud-connect-card h2 {
  margin: 0 0 12px;
  color: #172033;
  font-size: 18px;
}

.charioot-cloud-connect-card fieldset {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.charioot-cloud-connect-card legend {
  padding: 0 4px;
  font-weight: 800;
}

.charioot-cloud-connect-scope {
  display: grid;
  grid-template-columns: 20px minmax(88px, auto) minmax(0, 1fr);
  gap: 8px;
  align-items: flex-start;
  color: #334155;
}

.charioot-cloud-connect-scope strong {
  color: #0f172a;
  font-family: Consolas, Monaco, monospace;
  font-size: 12px;
}

.charioot-cloud-connect-scope span {
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.charioot-cloud-connect .charioot-cloud-copy-value {
  margin-bottom: 10px;
}

.charioot-cloud-connect table form {
  margin: 0;
}

.charioot-cloud-shortcode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.charioot-cloud-shortcode-grid p {
  margin: 0;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #f8fafc;
}

.charioot-cloud-editor-host {
  margin: 18px 0 0;
}

.charioot-cloud-workshop {
  margin: 22px 0 0;
  padding: 18px;
  border: 1px solid #d7c6a3;
  border-radius: 8px;
  background: #fffaf0;
  box-shadow: 0 18px 48px rgba(53, 37, 20, 0.1);
}

body.charioot-cloud-workshop-is-open {
  overflow: hidden;
}

.charioot-cloud-workshop.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 999999;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 18px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(rgba(143, 99, 36, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 99, 36, 0.04) 1px, transparent 1px),
    #fff7df;
  background-size: 38px 38px;
}

.admin-bar .charioot-cloud-workshop.is-fullscreen {
  top: 32px;
  height: calc(100vh - 32px);
}

.charioot-cloud-workshop__header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  margin: 0 0 16px;
  padding: 0 0 14px;
  border-bottom: 1px solid #ead9b6;
}

.charioot-cloud-workshop.is-fullscreen .charioot-cloud-workshop__header {
  min-height: 68px;
}

.charioot-cloud-workshop__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.charioot-cloud-workshop__header h3,
.charioot-cloud-workshop__panel h4 {
  margin: 0;
  color: #172033;
}

.charioot-cloud-workshop__header p:not(.charioot-cloud-app__eyebrow) {
  margin: 6px 0 0;
  color: #6b5b45;
}

.charioot-cloud-workshop__grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.85fr) minmax(360px, 1.7fr) minmax(220px, 1fr);
  gap: 12px;
  align-items: start;
}

.charioot-cloud-workshop.is-fullscreen .charioot-cloud-workshop__grid {
  grid-template-columns: minmax(240px, 0.8fr) minmax(520px, 1.8fr) minmax(300px, 1fr);
  height: calc(100vh - 122px);
  min-height: 0;
}

.admin-bar .charioot-cloud-workshop.is-fullscreen .charioot-cloud-workshop__grid {
  height: calc(100vh - 154px);
}

.charioot-cloud-workshop__panel {
  min-width: 0;
  padding: 12px;
  border: 1px solid #ead9b6;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.charioot-cloud-workshop.is-fullscreen .charioot-cloud-workshop__panel {
  display: flex;
  min-height: 0;
  overflow: hidden;
  flex-direction: column;
}

.charioot-cloud-workshop__toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 10px;
}

.charioot-cloud-slot {
  display: grid;
  gap: 9px;
  margin: 10px 0 0;
  padding: 10px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #fff;
}

.charioot-cloud-slot label,
.charioot-cloud-turn-editor label {
  display: grid;
  gap: 5px;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.charioot-cloud-slot input,
.charioot-cloud-slot select,
.charioot-cloud-turn-editor select,
.charioot-cloud-turn-editor textarea {
  width: 100%;
  min-height: 36px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #172033;
  font: inherit;
}

.charioot-cloud-slot input,
.charioot-cloud-slot select,
.charioot-cloud-turn-editor select {
  padding: 7px 9px;
}

.charioot-cloud-turns {
  display: grid;
  gap: 10px;
  max-height: 760px;
  overflow: auto;
  padding-right: 4px;
}

.charioot-cloud-workshop [data-cc-slots] {
  min-height: 0;
  overflow: auto;
}

.charioot-cloud-workshop.is-fullscreen .charioot-cloud-turns,
.charioot-cloud-workshop.is-fullscreen .charioot-cloud-workshop-preview,
.charioot-cloud-workshop.is-fullscreen [data-cc-slots] {
  max-height: none;
  flex: 1 1 auto;
}

.charioot-cloud-turn-editor {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #fff;
}

.charioot-cloud-turn-editor__head {
  display: grid;
  grid-template-columns: 34px minmax(120px, 1fr) repeat(4, auto);
  gap: 6px;
  align-items: center;
}

.charioot-cloud-turn-editor__head span {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  background: #eef6ef;
  color: #2f5948;
  font-size: 12px;
  font-weight: 900;
}

.charioot-cloud-turn-editor__head button {
  min-height: 30px;
  padding: 5px 8px;
  border: 1px solid #d7c6a3;
  border-radius: 6px;
  background: #fffaf0;
  color: #5f4020;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.charioot-cloud-turn-editor__head button:hover,
.charioot-cloud-turn-editor__head button:focus {
  border-color: #a12430;
  color: #8e1f2c;
}

.charioot-cloud-turn-editor textarea {
  min-height: 84px;
  padding: 10px 11px;
  resize: vertical;
  line-height: 1.65;
}

.charioot-cloud-workshop-preview {
  display: grid;
  gap: 8px;
  max-height: 760px;
  overflow: auto;
}

.charioot-cloud-workshop-preview .charioot-cloud-preview-line {
  position: relative;
  padding: 10px 12px;
  border: 1px solid #ead9b6;
  border-radius: 8px;
  background: #fffdf6;
}

.charioot-cloud-workshop-preview .charioot-cloud-preview-line strong {
  display: block;
  margin: 0 0 5px;
  color: #8e1f2c;
  font-size: 13px;
}

.charioot-cloud-workshop-preview .charioot-cloud-preview-line p {
  margin: 0;
  color: #172033;
  font-size: 14px;
  line-height: 1.65;
}

.charioot-cloud-workshop-preview .charioot-cloud-preview-line small {
  position: absolute;
  top: 8px;
  right: 10px;
  color: #b19a70;
  font-size: 11px;
  font-weight: 900;
}

@media (max-width: 720px) {
  .charioot-cloud-grid {
    grid-template-columns: 1fr;
  }

  .charioot-cloud-app h2,
  .charioot-cloud-page h1,
  .charioot-cloud-login h2 {
    font-size: 30px;
  }

  .charioot-cloud-page {
    padding: 18px;
  }

  .charioot-cloud-setup-step__header,
  .charioot-cloud-connect-grid,
  .charioot-cloud-shortcode-grid {
    grid-template-columns: 1fr;
  }

  .charioot-cloud-setup-step__header {
    display: grid;
  }

  .charioot-cloud-connect-hero h2 {
    font-size: 22px;
  }

  .charioot-cloud-connect-scope {
    grid-template-columns: 20px minmax(0, 1fr);
  }

  .charioot-cloud-connect-scope span {
    grid-column: 2;
  }

  .charioot-cloud-story-page {
    padding: 16px;
  }

  .charioot-cloud-story-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 18px;
  }

  .charioot-cloud-story-insights {
    grid-template-columns: 1fr;
  }

  .charioot-cloud-conversation-theater__header {
    display: grid;
    align-items: start;
  }

  .charioot-cloud-vn__stage {
    min-height: 620px;
  }

  .charioot-cloud-vn__actors {
    inset: 18px 3% 210px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .charioot-cloud-vn__visual > figure {
    top: 20px;
    width: min(92vw, 620px);
  }

  .charioot-cloud-vn__visual > figure img {
    max-height: 260px;
  }

  .charioot-cloud-vn-actor:nth-child(n+3) {
    display: none;
  }

  .charioot-cloud-vn-actor:only-child {
    grid-column: 1 / -1;
  }

  .charioot-cloud-vn-actor:nth-child(2):last-child {
    grid-column: auto;
  }

  .charioot-cloud-vn-actor__image {
    height: 350px;
  }

  .charioot-cloud-vn-actor figcaption {
    max-width: 150px;
  }

  .charioot-cloud-vn__dialogue {
    min-height: 204px;
  }

  .charioot-cloud-candidate-choice.has-thumb {
    grid-template-columns: 22px 72px minmax(0, 1fr);
  }

  .charioot-cloud-candidate-thumb {
    width: 72px;
  }

  .charioot-cloud-vn__controls {
    justify-content: stretch;
  }

  .charioot-cloud-vn__controls button {
    flex: 1 1 0;
  }

  .charioot-cloud-vn__timeline {
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  }

  .charioot-cloud-vn__mode {
    width: 100%;
  }

  .charioot-cloud-vn__mode button {
    flex: 1 1 0;
  }

  .charioot-cloud-vn-chat__line,
  .charioot-cloud-vn-chat__line:nth-of-type(even) {
    grid-template-columns: 46px minmax(0, 1fr);
    justify-self: stretch;
  }

  .charioot-cloud-vn-chat__line:nth-of-type(even) .charioot-cloud-story-avatar {
    grid-column: 1;
  }

  .charioot-cloud-vn-chat__line:nth-of-type(even) > div {
    grid-column: 2;
  }

  .charioot-cloud-story-line,
  .charioot-cloud-story-line.is-alt {
    grid-template-columns: 46px minmax(0, 1fr);
    justify-content: stretch;
  }

  .charioot-cloud-story-line.is-alt .charioot-cloud-story-avatar {
    grid-column: 1;
  }

  .charioot-cloud-story-line.is-alt .charioot-cloud-story-line__bubble {
    grid-column: 2;
  }

  .charioot-cloud-story-avatar {
    width: 46px;
    height: 46px;
  }

  .charioot-cloud-workshop__header,
  .charioot-cloud-workshop__toolbar {
    display: grid;
  }

  .charioot-cloud-workshop__grid {
    grid-template-columns: 1fr;
  }

  .charioot-cloud-workshop.is-fullscreen {
    padding: 12px;
    overflow: auto;
  }

  .admin-bar .charioot-cloud-workshop.is-fullscreen {
    top: 46px;
    height: calc(100vh - 46px);
  }

  .charioot-cloud-workshop.is-fullscreen .charioot-cloud-workshop__grid {
    height: auto;
    min-height: 0;
  }

  .charioot-cloud-workshop.is-fullscreen .charioot-cloud-turns,
  .charioot-cloud-workshop.is-fullscreen .charioot-cloud-workshop-preview,
  .charioot-cloud-workshop.is-fullscreen [data-cc-slots] {
    max-height: none;
    overflow: visible;
  }

  .charioot-cloud-turn-editor__head {
    grid-template-columns: 30px minmax(0, 1fr) repeat(2, auto);
  }

  .charioot-cloud-turn-editor__head button {
    padding: 5px 7px;
  }
}
