:root{
  --ink:#f2f7ff;
  --muted:rgba(242,247,255,.58);
  --black:#000;
  --leftW:360px;

  --leftPanelIdle:.60;
  --leftTextIdle:.40;
  --leftUiIdle:.52;
  --leftWhisperIdle:.62;

  --goGreen:#21c16f;
  --goGreen2:#2ae07f;
  --goText:#06130b;

  --imgLift:36px;

  --pill-in:180ms;
  --pill-out:220ms;
  --pill-hold:1100ms;
}

*{
  box-sizing:border-box;
}

html,body{
  margin:0;
  height:100%;
  overflow:hidden;
  background:var(--black);
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Inter,Arial,sans-serif;
  color:var(--ink);
}

.ch-sample{
  position:fixed;
  inset:0;
  background:var(--black);
}

.ch-panel{
  position:absolute;
  inset:0;
  display:grid;
  grid-template-columns:var(--leftW) 1fr;
  background:var(--black);
  overflow:hidden;
}

.ch-left{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-rows:1fr auto;
  padding:34px 26px;
  background:#000;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.04);
  overflow:hidden;
  opacity:var(--leftPanelIdle);
  transition:opacity 1.1s cubic-bezier(.22,.61,.36,1);
}

.ch-left:hover,
.ch-left:focus-within{
  opacity:1;
}

.ch-left::before{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  right:-1px;
  width:140px;
  pointer-events:none;
  background:
    radial-gradient(110px 70% at 100% 55%,
      rgba(210,250,255,.16),
      rgba(120,210,255,.08) 38%,
      rgba(0,0,0,0) 72%);
  filter:blur(4px);
  opacity:.85;
  z-index:0;
}

.ch-left::after{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  right:-1px;
  width:26px;
  pointer-events:none;
  background:
    linear-gradient(
      90deg,
      rgba(0,0,0,0) 0%,
      rgba(0,0,0,.55) 70%,
      rgba(0,0,0,.95) 100%
    );
  opacity:.9;
  z-index:0;
}

.ch-leftScroll{
  position:relative;
  z-index:1;
  overflow-y:auto;
  overflow-x:hidden;
  padding-right:10px;
  scrollbar-width:thin;
  scrollbar-color:rgba(255,255,255,.18) rgba(255,255,255,.03);
}

.ch-leftScroll::-webkit-scrollbar{
  width:10px;
}

.ch-leftScroll::-webkit-scrollbar-track{
  background:rgba(255,255,255,.03);
  border-radius:999px;
}

.ch-leftScroll::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.18);
  border-radius:999px;
  border:2px solid rgba(0,0,0,.55);
}

.ch-leftTop{
  opacity:var(--leftTextIdle);
  transition:opacity 1.1s cubic-bezier(.22,.61,.36,1);
}

.ch-leftWhisper{
  margin-top:18px;
  opacity:var(--leftWhisperIdle);
  transition:opacity 1.1s cubic-bezier(.22,.61,.36,1);
}

.ch-leftUi{
  opacity:var(--leftUiIdle);
  position:relative;
  z-index:2;
  justify-self:center;
  align-self:end;
  width:100%;
  padding-top:18px;
  margin-top:18px;
  border-top:1px solid rgba(255,255,255,.08);
  background:linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.65));
  transition:opacity 1.1s cubic-bezier(.22,.61,.36,1);
}

.ch-left:hover .ch-leftTop,
.ch-left:hover .ch-leftWhisper,
.ch-left:hover .ch-leftUi,
.ch-left:focus-within .ch-leftTop,
.ch-left:focus-within .ch-leftWhisper,
.ch-left:focus-within .ch-leftUi{
  opacity:1;
}

.ch-kicker{
  font-size:12px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:rgba(242,247,255,.60);
}

.ch-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:10px;
  padding:8px 12px;
  border-radius:999px;
  font-size:13px;
  color:rgba(242,247,255,.86);
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.14);
}

.ch-badgeDot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#9fd8ff;
  box-shadow:0 0 18px rgba(160,235,255,.95);
}

.ch-title{
  font-size:32px;
  line-height:1.05;
  font-weight:900;
  margin:14px 0 8px;
}

.ch-structure{
  margin:10px 0 14px;
  font-weight:900;
  color:rgba(242,247,255,.92);
  line-height:1.35;
}

.ch-intro{
  font-size:15.5px;
  line-height:1.55;
  color:var(--muted);
}

.ch-whisper{
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid rgba(255,255,255,.08);
  font-size:14.5px;
  line-height:1.65;
  color:rgba(242,247,255,.62);
}

.ch-whisper .ch-instruction{
  margin-top:14px;
  font-style:italic;
  color:rgba(242,247,255,.70);
}

.ch-answerRow{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
  width:100%;
}

.ch-input{
  width:100%;
  max-width:260px;
  padding:15px 18px;
  border-radius:14px;
  border:1px solid rgba(160,235,255,.45);
  background:rgba(255,255,255,.06);
  color:var(--ink);
  font-size:16.5px;
  outline:none;
}

.ch-input::placeholder{
  color:rgba(242,247,255,.55);
}

.ch-btn{
  width:96px;
  height:42px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.35);
  background:linear-gradient(180deg,var(--goGreen2),var(--goGreen));
  color:var(--goText);
  font-weight:900;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
}

.ch-right{
  position:relative;
  z-index:1;
  height:100vh;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#000;
  opacity:1;
}

.ch-image{
  position:relative;
  z-index:2;
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
}

.ch-image img{
  display:block;
  max-width:96%;
  max-height:92%;
  object-fit:contain;
  transform:translateY(calc(var(--imgLift) * -1));
  box-shadow:
    0 60px 260px rgba(0,0,0,.95),
    0 0 320px rgba(220,255,255,.62),
    0 0 0 1px rgba(255,255,255,.10);
}

.ch-leftUi,
.ch-answerRow,
#answerField,
#goBtn,
#pill{
  position:relative !important;
  z-index:10000 !important;
  pointer-events:auto !important;
}

.ch-msgSlot{
  height:60px;
  width:100%;
  max-width:260px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 16px;
  border-radius:16px;
  color:#ffffff;
  font-size:14.5px;
  font-weight:800;
  opacity:0;
  transform:translateY(6px) scale(.985);
  transition:
    opacity var(--pill-in) ease,
    transform var(--pill-in) ease;
  pointer-events:none;
}

.pill.yes{
  background:linear-gradient(180deg,#0f3f24,#082414);
}

.pill.no{
  background:linear-gradient(180deg,#4a0f14,#2b080b);
}

.pill.is-show{
  opacity:1;
  transform:translateY(0) scale(1);
}

.pill.is-hide{
  opacity:0;
  transform:translateY(6px) scale(.985);
  transition:
    opacity var(--pill-out) ease,
    transform var(--pill-out) ease;
}

@media (max-width:900px){
  .ch-panel{
    grid-template-columns:1fr;
  }

  .ch-left{
    position:relative;
    width:100%;
    max-height:50vh;
  }

  .ch-right{
    height:50vh;
  }
}

@media (max-width:600px){
  .ch-left{
    padding:24px 18px;
  }

  .ch-title{
    font-size:24px;
  }

  .ch-structure{
    font-size:14px;
  }

  .ch-intro,
  .ch-whisper{
    font-size:14px;
  }

  .ch-input{
    max-width:100%;
  }
}
