.cosat-shell {
  --cosat-blue: #3f75ff;
  --cosat-blue-soft: rgba(63, 117, 255, .38);
  --cosat-bg: #20242d;
  --cosat-panel: #081a32;
  --cosat-panel-line: #1b4a8b;
  --cosat-text: #e9eef8;
  --cosat-muted: #9da8bd;
  --cosat-button: #1f2633;
  --cosat-button-border: #24427a;
  --cosat-danger-soft: rgba(255, 95, 128, .15);
  --cosat-danger: #fff;
  box-sizing: border-box;
  width: 100%;
  margin: 24px 0;
  color: var(--cosat-text);
  font-family: inherit;
}

.cosat-shell *,
.cosat-shell *::before,
.cosat-shell *::after {
  box-sizing: border-box;
}

.cosat-shell[data-theme="light"] {
  --cosat-bg: #ffffff;
  --cosat-panel: #f8fbff;
  --cosat-panel-line: #d7e4ff;
  --cosat-text: #1f2937;
  --cosat-muted: #64748b;
  --cosat-button: #ffffff;
  --cosat-button-border: #c7d7f7;
  --cosat-danger-soft: #fff0f4;
  --cosat-danger: #4a2630;
}

.cosat-shell[data-theme="light"] .cosat-faq-list {
  background: #f4f8fd;
}

.cosat-shell[data-theme="light"] .cosat-tab {
  background: #ffffff;
}

@media (prefers-color-scheme: light) {
  .cosat-shell[data-theme="auto"] {
    --cosat-bg: #ffffff;
    --cosat-panel: #f8fbff;
    --cosat-panel-line: #d7e4ff;
    --cosat-text: #1f2937;
    --cosat-muted: #64748b;
    --cosat-button: #ffffff;
    --cosat-button-border: #c7d7f7;
    --cosat-danger-soft: #fff0f4;
    --cosat-danger: #4a2630;
  }

  .cosat-shell[data-theme="auto"] .cosat-tab {
    background: #ffffff;
  }

  .cosat-shell[data-theme="auto"] .cosat-faq-list {
    background: #f4f8fd;
  }
}

.cosat-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 30px;
}

.cosat-tab {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 119px;
  height: 40px;
  padding: 0 18px;
  border: 2px solid var(--cosat-button-border);
  border-radius: 999px;
  background: rgba(29, 34, 45, .88);
  color: #8fb1ff;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.cosat-tab:hover {
  border-color: var(--cosat-blue);
  color: var(--cosat-text);
  transform: translateY(-1px);
}

.cosat-tab.is-active {
  border-color: var(--cosat-blue);
  background: linear-gradient(135deg, #2f6fff, #477dff);
  color: #fff;
  box-shadow: 0 10px 22px var(--cosat-blue-soft);
}

.cosat-tab svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cosat-tab span {
  white-space: nowrap;
}

.cosat-panel[hidden] {
  display: none !important;
}

.cosat-panel {
  animation: cosat-fade-in .16s ease;
}

.cosat-entry {
  color: inherit;
}

.cosat-faq-list {
  overflow: hidden;
  border: 1px solid var(--cosat-panel-line);
  border-radius: 6px;
  background: var(--cosat-panel);
}

.cosat-faq-item {
  margin: 0;
  padding: 10px 16px;
  border-bottom: 1px solid var(--cosat-panel-line);
}

.cosat-faq-item:last-child {
  border-bottom: 0;
}

.cosat-faq-title {
  display: flex;
  gap: 7px;
  margin: 0 0 5px;
  color: #8fb6ff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0;
}

.cosat-faq-title span {
  flex: 0 0 auto;
}

.cosat-faq-item div,
.cosat-faq-item p {
  margin: 0;
  color: var(--cosat-muted);
  font-size: 14px;
  line-height: 1.58;
}

.cosat-shell[data-theme="light"] .cosat-faq-title,
.cosat-shell[data-theme="light"] .cosat-faq-line > span {
  color: #6f9cff;
}

.cosat-shell[data-theme="light"] .cosat-faq-item div,
.cosat-shell[data-theme="light"] .cosat-faq-item p {
  color: rgba(74, 91, 117, .18);
}

@media (prefers-color-scheme: light) {
  .cosat-shell[data-theme="auto"] .cosat-faq-title,
  .cosat-shell[data-theme="auto"] .cosat-faq-line > span {
    color: #6f9cff;
  }

  .cosat-shell[data-theme="auto"] .cosat-faq-item div,
  .cosat-shell[data-theme="auto"] .cosat-faq-item p {
    color: rgba(74, 91, 117, .18);
  }
}

.cosat-faq-line {
  display: flex;
  gap: 6px;
}

.cosat-faq-line > span {
  flex: 0 0 auto;
  color: #8fb6ff;
  font-weight: 900;
}

.cosat-faq-line p {
  display: inline;
}

.cosat-faq-list--compact .cosat-faq-item {
  padding: 9px 16px;
}

.cosat-faq-list--plain {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.cosat-faq-list--plain .cosat-faq-item {
  padding: 5px 0;
  border-bottom: 0;
}

.cosat-faq-list--separated .cosat-faq-item {
  padding: 10px 16px;
}

.cosat-comments-box {
  min-height: 150px;
  padding: 2px 0 0;
  color: var(--cosat-text);
}

.cosat-comments-box h2 {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  color: var(--cosat-text);
  font-size: 23px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0;
}

.cosat-comments-box h2::before {
  content: "";
  width: 4px;
  height: 18px;
  border-radius: 999px;
  background: var(--cosat-blue);
}

.cosat-comment-icon {
  position: relative;
  width: 22px;
  height: 16px;
  flex: 0 0 22px;
  border-radius: 999px;
  background: currentColor;
}

.cosat-comment-icon::after {
  content: "";
  position: absolute;
  left: 3px;
  bottom: -4px;
  width: 8px;
  height: 8px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.cosat-comment-icon::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--cosat-bg);
  box-shadow: 5px 0 0 var(--cosat-bg), 10px 0 0 var(--cosat-bg);
}

.cosat-shell[data-theme="light"] .cosat-comments-box h2 {
  margin-bottom: 42px;
  padding-bottom: 18px;
  border-bottom: 3px solid #eef2f6;
  color: #0e1726;
}

@media (prefers-color-scheme: light) {
  .cosat-shell[data-theme="auto"] .cosat-comments-box h2 {
    margin-bottom: 42px;
    padding-bottom: 18px;
    border-bottom: 3px solid #eef2f6;
    color: #0e1726;
  }
}

.cosat-comment-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 132px;
  height: 34px;
  margin-left: min(43%, 460px);
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(14, 19, 31, .2);
  color: var(--cosat-text);
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .14);
}

.cosat-comment-login:hover {
  color: #fff;
  background: var(--cosat-blue);
}

.cosat-comment-login svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cosat-shell[data-theme="light"] .cosat-comment-login {
  margin-left: 0;
  height: 42px;
  min-width: 142px;
  padding: 0 18px;
  background: #d6dbe1;
  color: #0f2138;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(15, 23, 42, .12);
}

.cosat-shell[data-theme="light"] .cosat-comment-login:hover {
  background: #c6ccd4;
  color: #0f2138;
}

@media (prefers-color-scheme: light) {
  .cosat-shell[data-theme="auto"] .cosat-comment-login {
    margin-left: 0;
    height: 42px;
    min-width: 142px;
    padding: 0 18px;
    background: #d6dbe1;
    color: #0f2138;
    font-size: 16px;
    font-weight: 900;
    box-shadow: 0 16px 34px rgba(15, 23, 42, .12);
  }

  .cosat-shell[data-theme="auto"] .cosat-comment-login:hover {
    background: #c6ccd4;
    color: #0f2138;
  }
}

.cosat-comment-tip,
.cosat-comments-closed {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin: 18px 0 0;
  padding: 7px 10px;
  border-radius: 6px;
  background: var(--cosat-danger-soft);
  color: var(--cosat-danger);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.cosat-shell[data-theme="light"] .cosat-comment-tip,
.cosat-shell[data-theme="light"] .cosat-comments-closed {
  display: inline-flex;
  min-height: 42px;
  margin: 0 0 0 6px;
  padding: 0 12px;
  align-items: center;
  border-radius: 6px;
  background: #ffeef4;
  color: #33111b;
  font-size: 16px;
  font-weight: 900;
}

@media (prefers-color-scheme: light) {
  .cosat-shell[data-theme="auto"] .cosat-comment-tip,
  .cosat-shell[data-theme="auto"] .cosat-comments-closed {
    display: inline-flex;
    min-height: 42px;
    margin: 0 0 0 6px;
    padding: 0 12px;
    align-items: center;
    border-radius: 6px;
    background: #ffeef4;
    color: #33111b;
    font-size: 16px;
    font-weight: 900;
  }
}

@keyframes cosat-fade-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

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

@media (max-width: 640px) {
  .cosat-shell {
    margin: 18px 0;
  }

  .cosat-nav {
    gap: 8px;
    margin-bottom: 18px;
  }

  .cosat-tab {
    min-width: 0;
    min-height: 36px;
    padding: 0 13px;
    font-size: 13px;
  }

  .cosat-faq-item {
    padding: 11px 12px;
  }

  .cosat-comments-box h2 {
    font-size: 20px;
  }
}
