.cc-shell {
  max-width: min(1080px, calc(100% - 32px));
  margin: 22px auto 54px;
  padding: 0;
  color: #0f172a;
}

.cc-head {
  margin-bottom: 14px;
}

.cc-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
  color: #667085;
}

.cc-breadcrumbs a {
  color: #667085;
  text-decoration: none;
}

.cc-breadcrumbs a:hover,
.cc-breadcrumbs a:focus-visible {
  color: #155eef;
  text-decoration: underline;
}

.cc-head h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  color: #101828;
}

.cc-intro {
  margin: 0;
  color: #334155;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 100%;
}

.cc-card {
  border: 1px solid rgba(16, 24, 40, 0.12);
  background: #ffffff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 18px 34px -30px rgba(15, 23, 42, 0.7);
  display: flex;
  flex-direction: column;
}

.cc-card > h1 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #101828;
}

.cc-card > .cc-intro {
  margin: 0 0 12px;
}

.cc-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
  order: 3;
}

.cc-btn {
  border: 1px solid rgba(16, 24, 40, 0.14);
  background: #1b56c0;
  color: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.cc-btn:hover,
.cc-btn:focus-visible {
  background: #1e40af;
}

.cc-btn-ghost {
  background: #fff;
  color: #344054;
}

.cc-btn-ghost:hover,
.cc-btn-ghost:focus-visible {
  background: #f3f4f6;
}

.cc-input {
  width: 100%;
  min-height: 380px;
  resize: vertical;
  border: 1px solid rgba(16, 24, 40, 0.16);
  border-radius: 12px;
  padding: 14px 15px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #101828;
  background: #fff;
  order: 2;
  margin-top: 14px;
}

.cc-input:focus {
  outline: 2px solid rgba(37, 99, 235, 0.26);
  outline-offset: 1px;
  border-color: #3b82f6;
}

.cc-stats {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  order: 1;
}

.cc-stat {
  background: #fff;
  border: 1px solid rgba(16, 24, 40, 0.1);
  border-radius: 10px;
  padding: 12px;
}

.cc-stat h2 {
  margin: 0;
  font-size: 12px;
  line-height: 1.25;
  color: #667085;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cc-stat-label {
  font-size: 14px !important;
}

.cc-stat p {
  margin: 6px 0 0;
  font-size: 34px;
  line-height: 1.15;
  color: #111827;
  font-weight: 700;
}

.cc-reference {
  margin-top: 16px;
  border: 1px solid rgba(16, 24, 40, 0.1);
  border-radius: 12px;
  background: #ffffff;
  padding: 18px 18px 16px;
}

.cc-reference h2 {
  margin: 16px 0 8px;
  font-size: 26px;
  line-height: 1.25;
  color: #101828;
}

.cc-reference h2:first-child {
  margin-top: 0;
}

.cc-reference p,
.cc-reference li {
  font-size: 16px;
  line-height: 1.72;
  color: #344054;
}

.cc-reference ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.cc-reference a {
  color: #155eef;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cc-reference a:hover,
.cc-reference a:focus-visible {
  color: #1849a9;
}

@media (max-width: 920px) {
  .cc-input {
    order: 1;
    margin-top: 0;
  }

  .cc-toolbar {
    order: 2;
    margin-top: 10px;
    margin-bottom: 0;
  }

  .cc-stats {
    order: 3;
    margin-top: 12px;
  }

  .cc-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .cc-shell {
    width: calc(100% - 20px);
    margin: 16px auto 34px;
    padding: 0;
  }

  .cc-card,
  .cc-reference {
    padding: 14px;
  }

  .cc-toolbar {
    justify-content: stretch;
  }

  .cc-btn {
    flex: 1;
  }

  .cc-input {
    min-height: 220px;
    font-size: 16px;
  }

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

  .cc-stat p {
    font-size: 30px;
  }

  .cc-reference h2 {
    font-size: 22px;
  }

  .cc-reference p,
  .cc-reference li {
    font-size: 15px;
  }
}
