﻿:root {
  --cc-ink: #253047;
  --cc-ink-soft: #4a5568;
  --cc-vellum: #fff7df;
  --cc-parchment: #f3e3bd;
  --cc-parchment-deep: #dfc489;
  --cc-wine: #7f1d1d;
  --cc-rose: #b64b3b;
  --cc-emerald: #2f7d5f;
  --cc-lapis: #1f4e79;
  --cc-moss: #3f6f50;
  --cc-gold: #b7892b;
  --cc-line: rgba(77, 55, 28, 0.22);
  --cc-shadow: 0 18px 54px rgba(70, 49, 25, 0.18);
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body.charioot-cloud-vellum {
  min-height: 100%;
  margin: 0;
  color: var(--cc-ink);
  background-color: #e5cf9c;
  background-image:
    linear-gradient(rgba(255, 250, 230, 0.84), rgba(245, 224, 176, 0.82)),
    url('../img/parchment-texture.png');
  background-size: auto, 220px 220px;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, system-ui, sans-serif;
  line-height: 1.7;
}

body.charioot-cloud-vellum::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(80, 47, 16, 0.12), transparent 12%, transparent 88%, rgba(80, 47, 16, 0.12)),
    linear-gradient(rgba(255, 255, 255, 0.22), transparent 24%, transparent 76%, rgba(66, 37, 11, 0.16));
  mix-blend-mode: multiply;
}

a { color: var(--cc-lapis); }

.cc-page-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.cc-topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 16px auto 0;
  padding: 10px 14px;
  border: 1px solid var(--cc-line);
  border-radius: 8px;
  background: rgba(255, 247, 223, 0.86);
  box-shadow: 0 12px 34px rgba(80, 55, 24, 0.12);
  backdrop-filter: blur(10px);
}

.cc-brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: var(--cc-ink);
  text-decoration: none;
}

.cc-brand-mark {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(127, 29, 29, 0.36);
  border-radius: 8px;
  background: linear-gradient(135deg, #8e2929, #5e1717);
  color: #fff7df;
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 700;
}

.cc-brand strong,
.cc-brand small { display: block; }

.cc-brand small {
  color: var(--cc-ink-soft);
  font-size: 12px;
}

.cc-topnav,
.cc-menu {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cc-topnav a,
.cc-menu a {
  color: var(--cc-ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.cc-login-button,
.charioot-cloud-button,
.cc-missing-plugin a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 15px;
  border: 1px solid rgba(127, 29, 29, 0.72);
  border-radius: 7px;
  background: #7f1d1d;
  color: #fff7df;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.cc-login-button:hover,
.charioot-cloud-button:hover,
.charioot-cloud-button:focus {
  background: #661818;
  color: #fff7df;
}

.cc-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 52px;
  flex: 1;
}

.cc-workbench {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 22px;
  align-items: start;
}

.cc-welcome-panel,
.cc-app-panel,
.cc-document,
.cc-missing-plugin {
  border: 1px solid var(--cc-line);
  border-radius: 8px;
  background: rgba(255, 247, 223, 0.9);
  box-shadow: var(--cc-shadow);
}

.cc-welcome-panel,
.cc-document,
.cc-missing-plugin {
  padding: 28px;
}

.cc-app-panel { padding: 14px; }

.cc-kicker,
.charioot-cloud-app__eyebrow,
.charioot-cloud-page__eyebrow {
  margin: 0 0 8px;
  color: var(--cc-wine);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.cc-welcome-panel h1,
.cc-document h1,
.charioot-cloud-app h2,
.charioot-cloud-page h1,
.charioot-cloud-login h2 {
  margin: 0 0 14px;
  color: #1f2937;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  line-height: 1.14;
  letter-spacing: 0;
}

.cc-welcome-panel p,
.cc-document-body,
.charioot-cloud-app__header p {
  color: var(--cc-ink-soft);
}

.cc-step-ribbon {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.cc-step-ribbon li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  color: var(--cc-ink);
  font-weight: 700;
}

.cc-step-ribbon span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(183, 137, 43, 0.6);
  border-radius: 50%;
  background: #fff2bf;
  color: var(--cc-wine);
  font-family: Georgia, serif;
}

.charioot-cloud-app,
.charioot-cloud-dashboard,
.charioot-cloud-login,
.charioot-cloud-page {
  color: var(--cc-ink);
}

.charioot-cloud-app__header,
.charioot-cloud-page__hero,
.charioot-cloud-login {
  max-width: none;
  margin: 0 0 20px;
}

.charioot-cloud-panel,
.charioot-cloud-project-card,
.charioot-cloud-page__conversation {
  border: 1px solid rgba(77, 55, 28, 0.18);
  border-radius: 8px;
  background: rgba(255, 252, 239, 0.92);
  box-shadow: 0 10px 24px rgba(80, 55, 24, 0.1);
}

.charioot-cloud-field input,
.charioot-cloud-panel input[type="url"] {
  border-color: rgba(77, 55, 28, 0.28);
  background: #fffdf6;
  color: var(--cc-ink);
}

.charioot-cloud-button.is-secondary {
  border-color: rgba(31, 78, 121, 0.32);
  background: #fffaf0;
  color: var(--cc-lapis);
}

.charioot-cloud-choice {
  border-color: rgba(77, 55, 28, 0.16);
  background: rgba(255, 250, 237, 0.86);
}

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

.charioot-cloud-choice__icon {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(77, 55, 28, 0.18);
  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: 900;
  vertical-align: middle;
}

.charioot-cloud-choice:has(input:checked) {
  border-color: rgba(31, 78, 121, 0.52);
  background: #eef6fb;
}

.charioot-cloud-preview-line,
.charioot-cloud-line {
  border-color: rgba(77, 55, 28, 0.14);
  background: #fffaf0;
}

.cc-document {
  max-width: 920px;
  margin: 0 auto;
}

.cc-document-body > *:first-child { margin-top: 0; }
.cc-document-body > *:last-child { margin-bottom: 0; }

.cc-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 18px;
  padding: 18px 0 0;
  color: #594a35;
  font-size: 13px;
  text-align: center;
}

.cc-footer p { margin: 0 0 6px; }
.cc-footer-fine { color: #75634a; }

@media (max-width: 900px) {
  .cc-topbar { grid-template-columns: 1fr auto; }
  .cc-topnav { display: none; }
  .cc-workbench { grid-template-columns: 1fr; }
  .cc-welcome-panel h1,
  .cc-document h1,
  .charioot-cloud-app h2,
  .charioot-cloud-page h1,
  .charioot-cloud-login h2 { font-size: 34px; }
}

@media (max-width: 620px) {
  .cc-topbar,
  .cc-main,
  .cc-footer { width: min(100% - 20px, 1180px); }
  .cc-topbar { gap: 10px; padding: 9px; }
  .cc-brand small { display: none; }
  .cc-login-button { min-height: 38px; padding: 8px 10px; font-size: 13px; }
  .cc-welcome-panel,
  .cc-document,
  .cc-missing-plugin { padding: 20px; }
  .cc-app-panel { padding: 10px; }
  .cc-welcome-panel h1,
  .cc-document h1,
  .charioot-cloud-app h2,
  .charioot-cloud-page h1,
  .charioot-cloud-login h2 { font-size: 29px; }
}
/* Charioot Cloud Japanese guidance layer */
.cc-comfort-notes {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.cc-comfort-notes p {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(47, 125, 95, 0.24);
  border-radius: 8px;
  background: rgba(245, 255, 247, 0.66);
  color: var(--cc-ink-soft);
}

.cc-comfort-notes strong {
  display: block;
  margin-bottom: 2px;
  color: var(--cc-emerald);
}

.cc-step-ribbon.is-highlighted li {
  animation: cc-step-glow 0.7s ease-in-out 2;
}

@keyframes cc-step-glow {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); color: var(--cc-wine); }
}

.cc-agent {
  position: fixed;
  right: clamp(14px, 2.5vw, 34px);
  bottom: clamp(14px, 2.5vw, 30px);
  z-index: 80;
  width: min(430px, calc(100vw - 24px));
  pointer-events: none;
}

.cc-agent-toggle,
.cc-agent-stage,
.cc-agent-dialogue,
.cc-agent-actions :where(button, a) {
  pointer-events: auto;
}

.cc-agent-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin-left: auto;
  padding: 8px 12px;
  border: 1px solid rgba(127, 29, 29, 0.38);
  border-radius: 999px;
  background: rgba(255, 247, 223, 0.94);
  color: var(--cc-ink);
  box-shadow: 0 12px 28px rgba(70, 49, 25, 0.18);
  font: inherit;
  font-weight: 800;
}

.cc-agent-mini-face {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(127, 29, 29, 0.3);
  background: #fffaf0;
  object-fit: cover;
}

.cc-agent-stage {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 12px;
  align-items: end;
}

.cc-agent-standing {
  position: relative;
  height: 310px;
  filter: drop-shadow(0 18px 24px rgba(39, 27, 12, 0.28));
  animation: cc-agent-float 4.5s ease-in-out infinite;
}

.cc-agent-standing-image {
  position: absolute;
  left: -6px;
  bottom: -8px;
  width: 174px;
  max-width: none;
  height: auto;
  transition: transform 0.26s ease, filter 0.26s ease;
}

.cc-agent-halo {
  position: absolute;
  left: 18px;
  bottom: 6px;
  width: 132px;
  height: 22px;
  border-radius: 50%;
  background: rgba(31, 78, 121, 0.16);
}

.cc-agent-head {
  position: absolute;
  left: 45px;
  top: 28px;
  width: 78px;
  height: 78px;
  border: 2px solid rgba(81, 43, 16, 0.32);
  border-radius: 48% 48% 45% 45%;
  background: linear-gradient(#ffe8c7, #f4c795);
}

.cc-agent-head::before,
.cc-agent-head::after {
  content: "";
  position: absolute;
  top: 35px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #253047;
}

.cc-agent-head::before { left: 24px; }
.cc-agent-head::after { right: 24px; }

.cc-agent-head i {
  position: absolute;
  left: 27px;
  bottom: 16px;
  width: 24px;
  height: 10px;
  border-bottom: 3px solid #8b3d3a;
  border-radius: 50%;
}

.cc-agent-body {
  position: absolute;
  left: 31px;
  top: 102px;
  width: 106px;
  height: 142px;
  border: 2px solid rgba(77, 55, 28, 0.28);
  border-radius: 46px 46px 18px 18px;
  background: linear-gradient(145deg, #8d2630 0 46%, #1f4e79 46% 100%);
  overflow: hidden;
}

.cc-agent-body::before {
  content: "";
  position: absolute;
  inset: 15px auto auto 35px;
  width: 36px;
  height: 96px;
  border-radius: 22px;
  background: rgba(255, 247, 223, 0.86);
}

.cc-agent-body i {
  position: absolute;
  left: 46px;
  top: 16px;
  width: 14px;
  height: 102px;
  border-radius: 10px;
  background: var(--cc-gold);
}

.cc-agent-scroll {
  position: absolute;
  right: 5px;
  top: 139px;
  width: 54px;
  height: 78px;
  border: 2px solid rgba(93, 61, 21, 0.36);
  border-radius: 8px;
  background: #fff3c6;
  transform: rotate(7deg);
}

.cc-agent-scroll::before,
.cc-agent-scroll::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: rgba(127, 29, 29, 0.35);
}

.cc-agent-scroll::before { top: 22px; }
.cc-agent-scroll::after { top: 40px; }

.cc-agent-dialogue {
  position: relative;
  padding: 15px 16px 14px;
  border: 1px solid rgba(77, 55, 28, 0.24);
  border-radius: 8px;
  background: rgba(255, 250, 235, 0.96);
  box-shadow: 0 16px 40px rgba(70, 49, 25, 0.2);
}

.cc-agent-dialogue::before {
  content: "";
  position: absolute;
  left: -10px;
  bottom: 38px;
  width: 18px;
  height: 18px;
  border-left: 1px solid rgba(77, 55, 28, 0.24);
  border-bottom: 1px solid rgba(77, 55, 28, 0.24);
  background: rgba(255, 250, 235, 0.96);
  transform: rotate(45deg);
}

.cc-agent-name {
  margin: 0 0 5px;
  color: var(--cc-wine);
  font-size: 13px;
  font-weight: 900;
}

.cc-agent-line {
  margin: 0;
  color: var(--cc-ink);
  font-size: 14px;
  line-height: 1.65;
}

.cc-agent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 11px;
}

.cc-agent-actions :where(button, a) {
  min-height: 32px;
  padding: 6px 9px;
  border: 1px solid rgba(31, 78, 121, 0.28);
  border-radius: 6px;
  background: #fffdf5;
  color: var(--cc-lapis);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

body[data-cloud-stage="result"] .cc-agent-body {
  background: linear-gradient(145deg, var(--cc-emerald) 0 46%, #1f4e79 46% 100%);
}

body[data-cloud-stage="select"] .cc-agent-scroll {
  animation: cc-scroll-shine 1.6s ease-in-out infinite;
}

body[data-cloud-stage="typing"] .cc-agent-standing-image {
  transform: rotate(-1deg) translateY(-2px);
}

body[data-cloud-stage="select"] .cc-agent-standing-image {
  animation: cc-agent-attention 1.8s ease-in-out infinite;
}

body[data-cloud-stage="result"] .cc-agent-standing-image {
  filter: drop-shadow(0 0 12px rgba(47, 125, 95, 0.22));
}

@keyframes cc-agent-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes cc-scroll-shine {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.14); }
}

@keyframes cc-agent-attention {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-5px) rotate(1deg); }
}

@media (max-width: 960px) {
  .cc-agent {
    right: 12px;
    bottom: 12px;
    width: min(360px, calc(100vw - 20px));
  }

  .cc-agent-stage {
    grid-template-columns: 108px minmax(0, 1fr);
  }

  .cc-agent-standing {
    height: 214px;
    transform-origin: bottom right;
  }

  .cc-agent-standing-image {
    left: -8px;
    width: 122px;
  }

  .cc-agent-head {
    left: 29px;
    width: 62px;
    height: 62px;
  }

  .cc-agent-body {
    left: 20px;
    top: 84px;
    width: 84px;
    height: 104px;
  }

  .cc-agent-scroll {
    right: -2px;
    top: 122px;
    width: 42px;
    height: 58px;
  }
}

@media (max-width: 640px) {
  .cc-agent-toggle {
    display: inline-flex;
  }

  .cc-agent-stage {
    margin-top: 8px;
  }

  body.cc-agent-collapsed .cc-agent-stage {
    display: none;
  }

  .cc-agent-stage {
    grid-template-columns: 1fr;
  }

  .cc-agent-standing {
    display: none;
  }

  .cc-agent-dialogue::before {
    display: none;
  }
}

/* Character agent launcher: collapsed icon first, standing portrait when opened. */
.cc-agent-toggle {
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.cc-agent-toggle:hover,
.cc-agent-toggle:focus {
  background: transparent;
}

.cc-agent-peek-line {
  position: relative;
  max-width: 190px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(77, 55, 28, 0.24);
  border-radius: 8px;
  background: rgba(255, 250, 235, 0.98);
  color: var(--cc-ink);
  box-shadow: 0 12px 28px rgba(70, 49, 25, 0.18);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
}

.cc-agent-peek-line::after {
  content: "";
  position: absolute;
  right: -7px;
  bottom: 13px;
  width: 12px;
  height: 12px;
  border-top: 1px solid rgba(77, 55, 28, 0.24);
  border-right: 1px solid rgba(77, 55, 28, 0.24);
  background: rgba(255, 250, 235, 0.98);
  transform: rotate(45deg);
}

.cc-agent-mini-face {
  width: 68px;
  height: 68px;
  border: 2px solid rgba(183, 137, 43, 0.64);
  box-shadow: 0 14px 30px rgba(70, 49, 25, 0.22);
}

body.cc-agent-collapsed .cc-agent {
  width: min(300px, calc(100vw - 24px));
}

body.cc-agent-collapsed .cc-agent-stage {
  display: none;
}

body:not(.cc-agent-collapsed) .cc-agent-toggle {
  margin-bottom: 8px;
}

body:not(.cc-agent-collapsed) .cc-agent-mini-face {
  width: 46px;
  height: 46px;
}

body:not(.cc-agent-collapsed) .cc-agent-peek-line {
  display: none;
}

body:not(.cc-agent-collapsed) .cc-agent-stage {
  animation: cc-agent-open 0.22s ease-out both;
}

@keyframes cc-agent-open {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 640px) {
  .cc-agent {
    width: min(340px, calc(100vw - 20px));
  }

  body.cc-agent-collapsed .cc-agent {
    width: min(286px, calc(100vw - 20px));
  }

  .cc-agent-mini-face {
    width: 62px;
    height: 62px;
  }

  .cc-agent-peek-line {
    max-width: 178px;
    font-size: 12px;
  }

  body:not(.cc-agent-collapsed) .cc-agent-stage {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  body:not(.cc-agent-collapsed) .cc-agent-standing {
    display: block;
    height: 176px;
  }

  body:not(.cc-agent-collapsed) .cc-agent-standing-image {
    width: 104px;
  }

  body:not(.cc-agent-collapsed) .cc-agent-dialogue::before {
    display: block;
  }
}

/* Premium manuscript atmosphere */
:root {
  --cc-leather: #332018;
  --cc-leather-deep: #1f1410;
  --cc-brass: #c9a24b;
  --cc-brass-soft: rgba(201, 162, 75, 0.34);
  --cc-ruby: #8d2430;
  --cc-forest: #244f3c;
  --cc-royal: #244564;
  --cc-vellum-light: #fff8e3;
  --cc-vellum-aged: #edd79f;
}

body.charioot-cloud-vellum {
  background-color: #c9ab68;
  background-image:
    linear-gradient(90deg, rgba(46, 26, 13, 0.24), transparent 10%, transparent 90%, rgba(46, 26, 13, 0.22)),
    linear-gradient(rgba(255, 250, 224, 0.88), rgba(226, 188, 114, 0.78)),
    url('../img/parchment-texture.png');
  background-size: auto, auto, 190px 190px;
}

body.charioot-cloud-vellum::before {
  background:
    linear-gradient(90deg, rgba(36, 22, 12, 0.3), transparent 9%, transparent 91%, rgba(36, 22, 12, 0.28)),
    linear-gradient(rgba(255, 253, 238, 0.18), transparent 20%, transparent 80%, rgba(51, 32, 18, 0.22)),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(103, 67, 24, 0.035) 46px 47px);
  mix-blend-mode: multiply;
}

body.charioot-cloud-vellum::after {
  content: "";
  position: fixed;
  inset: 18px;
  z-index: 0;
  pointer-events: none;
  border: 1px solid rgba(86, 54, 21, 0.18);
  box-shadow: inset 0 0 0 6px rgba(255, 248, 221, 0.16), inset 0 0 70px rgba(74, 43, 16, 0.16);
}

.cc-page-shell {
  isolation: isolate;
}

.cc-topbar {
  position: relative;
  min-height: 82px;
  margin-top: 22px;
  padding: 11px 16px;
  border: 1px solid rgba(201, 162, 75, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 239, 180, 0.08), transparent 22%, transparent 78%, rgba(255, 239, 180, 0.08)),
    linear-gradient(135deg, var(--cc-leather-deep), var(--cc-leather) 48%, #4a2b1c);
  color: #fff7df;
  box-shadow: 0 18px 44px rgba(43, 25, 12, 0.26), inset 0 0 0 1px rgba(255, 246, 210, 0.1);
}

.cc-topbar::before,
.cc-topbar::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 75, 0.82), transparent);
}

.cc-topbar::before { top: 7px; }
.cc-topbar::after { bottom: 7px; }

.cc-brand,
.cc-topnav a,
.cc-menu a {
  color: #fff7df;
}

.cc-brand small {
  color: rgba(255, 247, 223, 0.74);
}

.cc-brand-mark {
  position: relative;
  width: 48px;
  height: 48px;
  border: 2px solid rgba(231, 198, 118, 0.7);
  border-radius: 50%;
  background:
    linear-gradient(135deg, #a83235, #62161e);
  box-shadow: inset 0 0 0 4px rgba(255, 239, 180, 0.12), 0 8px 18px rgba(24, 12, 8, 0.28);
}

.cc-brand-mark::before,
.cc-brand-mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(255, 236, 171, 0.5);
  border-radius: 50%;
}

.cc-brand-mark::after {
  inset: 10px;
  border-style: dotted;
}

.cc-brand-mark span {
  position: relative;
  z-index: 1;
}

.cc-login-button,
.charioot-cloud-button,
.cc-missing-plugin a {
  border-color: rgba(201, 162, 75, 0.68);
  background:
    linear-gradient(#9e2c33, #731a25);
  box-shadow: inset 0 1px rgba(255, 244, 202, 0.25), 0 8px 16px rgba(80, 38, 22, 0.16);
}

.cc-login-button:hover,
.charioot-cloud-button:hover,
.charioot-cloud-button:focus {
  background: linear-gradient(#b63a3d, #7f1d1d);
}

.cc-main {
  padding-top: 42px;
}

.cc-workbench {
  position: relative;
  gap: 26px;
}

.cc-workbench::before {
  content: "";
  position: absolute;
  left: 3%;
  right: 3%;
  top: -18px;
  height: 12px;
  border-top: 1px solid rgba(120, 73, 23, 0.24);
  border-bottom: 1px solid rgba(255, 247, 214, 0.36);
}

.cc-welcome-panel,
.cc-app-panel,
.cc-document,
.cc-missing-plugin {
  position: relative;
  border: 1px solid rgba(104, 69, 28, 0.34);
  background:
    linear-gradient(135deg, rgba(255, 252, 235, 0.97), rgba(246, 226, 177, 0.92)),
    url('../img/parchment-texture.png');
  background-size: auto, 170px 170px;
  box-shadow:
    0 20px 48px rgba(64, 39, 17, 0.2),
    inset 0 0 0 1px rgba(255, 255, 242, 0.38),
    inset 0 0 48px rgba(146, 99, 34, 0.1);
}

.cc-welcome-panel::before,
.cc-app-panel::before {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  border: 1px solid var(--cc-brass-soft);
  border-radius: 5px;
}

.cc-welcome-panel::after,
.cc-app-panel::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 18px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(141, 36, 48, 0.32);
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(141, 36, 48, 0.16), rgba(201, 162, 75, 0.1));
  box-shadow: inset 0 0 0 6px rgba(255, 250, 224, 0.32);
}

.cc-welcome-panel,
.cc-document,
.cc-missing-plugin {
  padding: 34px;
}

.cc-app-panel {
  padding: 18px;
}

.cc-manuscript-head {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--cc-ruby);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-weight: 800;
}

.cc-manuscript-head span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid rgba(141, 36, 48, 0.28);
  border-radius: 999px;
  background: rgba(255, 248, 225, 0.76);
}

.cc-manuscript-head i {
  flex: 1;
  height: 8px;
  border-top: 1px solid rgba(201, 162, 75, 0.62);
  border-bottom: 1px solid rgba(201, 162, 75, 0.26);
}

.cc-kicker,
.charioot-cloud-app__eyebrow,
.charioot-cloud-page__eyebrow {
  color: var(--cc-ruby);
  font-weight: 900;
}

.cc-welcome-panel h1 {
  color: #241a18;
  font-size: 44px;
  line-height: 1.13;
}

.cc-welcome-panel h1::first-letter {
  color: var(--cc-ruby);
  text-shadow: 1px 1px 0 rgba(201, 162, 75, 0.48);
}

.cc-welcome-panel p,
.cc-document-body,
.charioot-cloud-app__header p {
  color: #594632;
}

.cc-quest-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 2px;
}

.cc-quest-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid rgba(36, 79, 60, 0.28);
  border-radius: 999px;
  background: rgba(236, 246, 232, 0.58);
  color: var(--cc-forest);
  font-size: 12px;
  font-weight: 900;
}

.cc-step-ribbon {
  padding: 16px;
  border: 1px solid rgba(201, 162, 75, 0.28);
  border-radius: 8px;
  background: rgba(255, 250, 232, 0.54);
}

.cc-step-ribbon li {
  grid-template-columns: 40px 1fr;
  min-height: 48px;
  color: #332018;
}

.cc-step-ribbon span {
  width: 40px;
  height: 40px;
  border-color: rgba(201, 162, 75, 0.72);
  background:
    linear-gradient(#fff3c1, #d8ab44);
  color: #5b1c20;
  box-shadow: inset 0 1px rgba(255, 255, 240, 0.7), 0 4px 10px rgba(84, 52, 18, 0.16);
}

.cc-comfort-notes p {
  border-color: rgba(36, 79, 60, 0.3);
  background: rgba(248, 255, 242, 0.62);
}

.charioot-cloud-app h2,
.charioot-cloud-page h1,
.charioot-cloud-login h2 {
  color: #251b17;
  font-size: 38px;
}

.charioot-cloud-panel,
.charioot-cloud-project-card,
.charioot-cloud-page__conversation {
  border-color: rgba(104, 69, 28, 0.24);
  background:
    linear-gradient(rgba(255, 253, 244, 0.96), rgba(255, 246, 222, 0.92));
  box-shadow: 0 14px 28px rgba(83, 50, 20, 0.11);
}

.charioot-cloud-field span,
.charioot-cloud-panel h3 {
  color: var(--cc-ruby);
}

.charioot-cloud-field input,
.charioot-cloud-panel input[type="url"] {
  min-height: 50px;
  border-color: rgba(104, 69, 28, 0.34);
  background:
    linear-gradient(#fffef8, #fff7df);
  box-shadow: inset 0 2px 8px rgba(91, 59, 20, 0.08);
}

.charioot-cloud-choice {
  border-color: rgba(104, 69, 28, 0.18);
  background: rgba(255, 249, 228, 0.86);
}

.charioot-cloud-choice:hover {
  border-color: rgba(201, 162, 75, 0.5);
}

.charioot-cloud-choice:has(input:checked) {
  border-color: rgba(36, 69, 100, 0.52);
  background: rgba(232, 242, 245, 0.86);
  box-shadow: inset 4px 0 0 rgba(36, 69, 100, 0.5);
}

.charioot-cloud-status {
  color: #5d4930;
}

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

@media (max-width: 900px) {
  .cc-welcome-panel h1,
  .charioot-cloud-app h2,
  .charioot-cloud-page h1,
  .charioot-cloud-login h2 {
    font-size: 34px;
  }
}

@media (max-width: 620px) {
  body.charioot-cloud-vellum::after {
    inset: 8px;
  }

  .cc-topbar {
    margin-top: 10px;
  }

  .cc-welcome-panel,
  .cc-document,
  .cc-missing-plugin {
    padding: 24px 18px;
  }

  .cc-welcome-panel h1,
  .charioot-cloud-app h2,
  .charioot-cloud-page h1,
  .charioot-cloud-login h2 {
    font-size: 29px;
  }

  .cc-step-ribbon {
    padding: 12px;
  }
}

/* One-column hero with the URL entry as the first action. */
.cc-hero-forge {
  display: grid;
  gap: 18px;
}

.cc-hero-panel {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.cc-hero-panel > p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.cc-hero-entry {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 28px auto 0;
  text-align: left;
}

.cc-hero-entry .charioot-cloud-app__header {
  display: none;
}

.cc-hero-entry .charioot-cloud-app > .charioot-cloud-panel:first-of-type {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
  padding: 16px;
  border-color: rgba(201, 162, 75, 0.44);
  background:
    linear-gradient(135deg, rgba(255, 254, 247, 0.98), rgba(255, 239, 191, 0.9));
  box-shadow: 0 18px 34px rgba(80, 48, 18, 0.16);
}

.cc-hero-entry .charioot-cloud-field {
  margin: 0;
}

.cc-hero-entry .charioot-cloud-field span {
  font-size: 13px;
  font-weight: 900;
}

.cc-hero-entry .charioot-cloud-panel input[type="url"] {
  min-height: 58px;
  font-size: 18px;
}

.cc-hero-entry [data-cc-candidates] {
  min-height: 58px;
  padding-inline: 22px;
}

.cc-hero-entry .charioot-cloud-grid {
  grid-template-columns: 1fr;
  gap: 12px;
}

.cc-hero-guide {
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
}

.cc-hero-guide .cc-step-ribbon {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cc-hero-guide .cc-step-ribbon li {
  grid-template-columns: 40px 1fr;
}

.cc-hero-guide .cc-comfort-notes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body:not(.cc-agent-collapsed) .cc-agent-toggle {
  display: none;
}

body:not(.cc-agent-collapsed) .cc-agent {
  width: min(430px, calc(100vw - 24px));
}

@media (max-width: 760px) {
  .cc-hero-panel {
    text-align: left;
  }

  .cc-hero-entry .charioot-cloud-app > .charioot-cloud-panel:first-of-type {
    grid-template-columns: 1fr;
  }

  .cc-hero-entry [data-cc-candidates] {
    width: 100%;
  }

  .cc-hero-guide .cc-step-ribbon,
  .cc-hero-guide .cc-comfort-notes {
    grid-template-columns: 1fr;
  }
}
