/* Chapter 3: the drawing on the left, and the product window with sign-in, the welcome modal and the chat. */
.c3-left,
.c3-offers-note {
  position: absolute;
  left: 72px;
  top: 318px;
  width: 540px;
}

.c3-left {
  height: 430px;
}

.c3-world {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.c3-sun-stop {
  stop-color: var(--sun);
}

.c3-warn {
  fill: var(--alert);
  opacity: 0;
}

.c3-badge circle {
  fill: var(--ai);
}

.c3-badge text {
  fill: #fff;
  font-size: 12px;
  font-weight: 700;
}

.c3-ic {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* What each offer does */
.c3-offers-note {
  visibility: hidden;
}

.c3-note-head {
  margin: 0 0 18px;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.c3-offers-note ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.c3-offers-note li {
  display: flex;
  gap: 16px;
}

.c3-note-ic {
  display: grid;
  flex: none;
  place-items: center;
  width: 46px;
  height: 46px;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid var(--panel-line);
  background: var(--fill-1);
}

.c3-note-ic .c3-ic {
  width: 24px;
  height: 24px;
}

.c3-offers-note b {
  display: block;
  margin-top: 2px;
  font-size: 18px;
  font-weight: 600;
}

.c3-offers-note li div span {
  display: block;
  margin-top: 4px;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.45;
}

/* The product screen */
#c3-win .ui-pane {
  padding: 0;
}

.c3-screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.c3-app {
  position: absolute;
  inset: 0;
  display: flex;
}

.c3-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 150px;
  box-sizing: border-box;
  padding: 18px 16px;
  border-right: 1px solid var(--panel-line);
  background: var(--app-head);
}

.c3-side i,
.c3-sk {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: var(--fill-3);
}

.c3-side-mark {
  width: 18px;
  height: 20px;
  margin-bottom: 10px;
  fill: var(--ink-2);
}

.c3-main {
  flex: 1;
  padding: 26px 28px;
}

.c3-sk-title {
  width: 180px;
  height: 14px;
}

.c3-sk-card {
  height: 72px;
  box-sizing: border-box;
  margin-top: 18px;
  padding: 8px 18px;
  border-radius: 12px;
  border: 1px solid var(--panel-line);
  background: var(--fill-2);
}

.c3-sk-card .c3-sk {
  margin-top: 12px;
}

.c3-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 12, 0.62);
}

:root[data-theme='light'] .c3-overlay {
  background: rgba(20, 23, 41, 0.38);
}

/* Sign-in */
.c3-signin {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--fill-1);
}

.c3-signin-card {
  display: flex;
  flex-direction: column;
  width: 340px;
  box-sizing: border-box;
  padding: 28px 28px 30px;
  border-radius: 14px;
  border: 1px solid var(--panel-line);
  background: var(--fill-1);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.55);
}

.c3-signin-card h4 {
  margin: 0;
  text-align: center;
  font-size: 22px;
  font-weight: 600;
}

.c3-signin-card p {
  margin: 4px 0 20px;
  text-align: center;
  color: var(--ink-3);
  font-size: 13px;
}

.c3-signin-card label {
  margin-bottom: 6px;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
}

.c3-input {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  margin-bottom: 14px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--panel-line);
  background: var(--fill-2);
  font-size: 13.5px;
}

.c3-input .c3-ic {
  width: 15px;
  height: 15px;
  color: var(--ink-3);
}

.c3-signin-btn {
  display: grid;
  place-items: center;
  height: 42px;
  margin-top: 8px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
}

/* Welcome to NEQTO.ai */
.c3-modal {
  position: absolute;
  left: 110px;
  top: 30px;
  width: 640px;
  box-sizing: border-box;
  padding: 26px 28px 18px;
  border-radius: 14px;
  border: 1px solid var(--panel-line);
  background: var(--fill-1);
  box-shadow: 0 30px 70px -24px rgba(0, 0, 0, 0.6);
  text-align: center;
}

.c3-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  font-size: 27px;
  font-style: italic;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.c3-logo {
  width: 180px;
  height: 30px;
  fill: var(--ink);
}

.c3-desc {
  max-width: 580px;
  margin: 14px auto 0;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.5;
}

.c3-desc b {
  color: var(--ink);
  font-weight: 600;
}

.c3-mark {
  padding: 1px 0;
  border-radius: 3px;
  color: var(--ink);
  background-image: linear-gradient(color-mix(in srgb, var(--ink) 14%, transparent), color-mix(in srgb, var(--ink) 14%, transparent));
  background-repeat: no-repeat;
  background-size: 0% 100%;
}

.c3-h {
  margin: 20px 0 8px;
  font-size: 15px;
  font-weight: 600;
}

.c3-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 540px;
  margin: 0 auto;
  padding: 8px 8px 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--panel-line);
  background: var(--fill-2);
  text-align: left;
}

.c3-text {
  flex: 1;
  min-height: 42px;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.c3-ph {
  color: var(--ink-3);
}

.c3-go {
  display: grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
}

.c3-go .c3-ic {
  width: 20px;
  height: 20px;
}

.c3-tip {
  position: absolute;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--bg);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  visibility: hidden;
  opacity: 0;
}

.c3-tip-up {
  right: 0;
  bottom: calc(100% + 6px);
}

.c3-tip-down {
  top: calc(100% + 6px);
  right: -30px;
}

.c3-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.c3-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px 13px;
  border-radius: 8px;
  border: 1px solid var(--panel-line);
  font-size: 13px;
}

.c3-tile b {
  font-weight: 600;
  line-height: 1.3;
}

.c3-tile .c3-ic {
  width: 24px;
  height: 24px;
}

.c3-tile-lit,
.c3-tile-ring {
  position: absolute;
  inset: -1px;
  border-radius: 8px;
  opacity: 0;
}

.c3-tile-lit {
  border: 1.5px solid var(--ink-2);
}

.c3-tile-ring {
  border: 2px solid var(--ink);
}

.c3-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--panel-line);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
}

.c3-foot .c3-ic {
  width: 15px;
  height: 15px;
}

.c3-foot .c3-ic-sm {
  width: 13px;
  height: 13px;
  opacity: 0.7;
}

/* The chat panel */
.c3-chat {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 440px;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--panel-line);
  background: var(--fill-1);
  box-shadow: -24px 0 50px -36px rgba(0, 0, 0, 0.6);
}

.c3-chat-head {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  padding: 0 14px 0 18px;
  border-bottom: 1px solid var(--panel-line);
}

.c3-chat-head b {
  font-size: 15px;
  font-weight: 600;
}

.c3-chat-icons {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-2);
}

.c3-chat-icons .c3-ic {
  width: 17px;
  height: 17px;
}

.c3-reopen {
  position: relative;
  display: inline-flex;
}

.c3-msgs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px;
}

.c3-msg time,
#c3-ans-time {
  display: block;
  margin-top: 3px;
  padding: 0 6px;
  color: var(--ink-3);
  font-size: 10.5px;
}

.c3-msg-user {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  align-self: flex-end;
  max-width: 84%;
}

.c3-bubble {
  margin: 0;
  padding: 11px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.45;
}

.c3-msg-user .c3-bubble {
  background: var(--fill-3);
}

.c3-msg-bot {
  display: flex;
  gap: 8px;
}

.c3-msg-bot > div {
  position: relative;
  flex: 1;
  min-width: 0;
}

.c3-msg-bot .c3-bubble {
  background: var(--fill-2);
}

.c3-avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--panel-line);
  background: var(--fill-1);
}

.c3-avatar svg {
  width: 11px;
  height: 13px;
  fill: var(--ink);
}

.c3-typing {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  gap: 4px;
  padding: 14px 16px;
}

.c3-typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-3);
}

#c3-answer p,
#c3-answer ol {
  margin: 0;
}

#c3-answer ol {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 6px;
  padding-left: 18px;
}

#c3-answer sup {
  margin-left: 2px;
  color: var(--ink);
  font-size: 0.72em;
  font-weight: 600;
}

.c3-sources {
  margin-top: 10px;
}

.c3-sources small {
  display: block;
  color: var(--ink-3);
  font-size: 10.5px;
  font-weight: 600;
}

#c3-answer .c3-src {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 5px 0 1px;
  font-size: 12px;
  font-weight: 600;
}

.c3-src u {
  text-underline-offset: 3px;
}

.c3-src .c3-ic {
  width: 12px;
  height: 12px;
}

#c3-answer .c3-sec {
  margin: 0 0 0 17px;
  color: var(--ink-3);
  font-size: 11px;
}

.c3-sec b {
  margin-right: 4px;
  color: var(--ink);
  font-weight: 600;
}

:lang(ja) .c3-desc,
:lang(ja) .c3-bubble,
:lang(ja) .c3-offers-note li div span,
:lang(ja) .c3-tile b {
  word-break: auto-phrase;
}
