.cc .st-eyebrow a {
  color: inherit;
  text-decoration: none;
}

.cc-nav {
  margin-bottom: 18px;
}

.cc-nav a[aria-current="page"] {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
}

.cc-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  justify-content: space-between;
  margin: 6px 0 14px;
}

.cc-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.cc-tabs button {
  border: 1px solid #d5e1e6;
  background: #fff;
  color: #29404a;
  border-radius: 999px;
  padding: 7px 14px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.cc-tabs button[aria-selected="true"] {
  background: #e6f4f1;
  border-color: #0f766e;
  color: #0f766e;
  font-weight: 600;
}

.cc-format {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #4b616b;
}

.cc-format select {
  border: 1px solid #d5e1e6;
  border-radius: 10px;
  padding: 7px 10px;
  font: inherit;
  font-size: 14px;
  background: #fff;
  max-width: 220px;
}

.cc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  gap: 8px;
}

.cc-grid.cc-large {
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
}

.cc-grid-small {
  grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
}

.cc-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border: 1px solid #e3eaee;
  border-radius: 12px;
  background: #fff;
  color: #10242c;
  text-decoration: none;
  font: inherit;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}

.cc-large .cc-cell {
  font-size: 46px;
}

.cc-cell:hover,
.cc-cell:focus-visible {
  border-color: #0f766e;
  box-shadow: 0 4px 14px rgba(15, 118, 110, .14);
  transform: translateY(-1px);
  outline: none;
}

.cc-cell span {
  display: block;
  line-height: 1.15;
  white-space: nowrap;
}

.cc h2 {
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: #10242c;
  margin: 0 0 12px;
}

.cc .st-doc h3 {
  font-family: inherit;
  font-size: 16px;
  margin: 16px 0 6px;
}

.cc-codes .st-chip {
  white-space: nowrap;
}

.cc-more {
  text-align: center;
  margin: 14px 0;
}

.cc-panel {
  position: sticky;
  bottom: 12px;
  z-index: 5;
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid #cfe3df;
  border-radius: 16px;
  background: #fbfefd;
  box-shadow: 0 10px 30px rgba(16, 36, 44, .12);
}

.cc-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.cc-panel-glyph {
  font-size: 44px;
  line-height: 1;
  min-width: 52px;
  text-align: center;
}

.cc-panel-head div {
  flex: 1 1 160px;
  min-width: 0;
}

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

.cc-panel-head small {
  color: #5f7680;
}

.cc-panel-codes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}

.cc-code {
  text-align: left;
  border: 1px solid #e3eaee;
  border-radius: 10px;
  background: #fff;
  padding: 7px 10px;
  font: inherit;
  cursor: pointer;
  min-width: 0;
}

.cc-code:hover {
  border-color: #0f766e;
}

.cc-code small {
  display: block;
  color: #5f7680;
  font-size: 12px;
}

.cc-code code {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.cc-convert {
  margin-top: 28px;
}

.cc-convert-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cc-convert-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.cc-check {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 14px;
  color: #4b616b;
}

.cc-hint {
  color: #4b616b;
  font-size: 14px;
}

.cc-table td:first-child {
  width: 64px;
}

.cc-table code,
.cc-codes code {
  cursor: pointer;
  word-break: break-all;
}

.cc-table code:hover {
  color: #0f766e;
}

.cc-big {
  border: 1px solid #e3eaee;
  background: #fff;
  border-radius: 10px;
  width: 48px;
  height: 48px;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.cc-big:hover {
  border-color: #0f766e;
}

.cc-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  margin-bottom: 18px;
}

.cc-glyph {
  width: 160px;
  height: 160px;
  border: 1px solid #e3eaee;
  border-radius: 24px;
  background: #fff;
  font-size: 96px;
  line-height: 1;
  cursor: pointer;
}

.cc-sizes {
  display: flex;
  gap: 18px;
  align-items: flex-end;
  margin: 14px 0 0;
}

.cc-codes th {
  white-space: nowrap;
  width: 1%;
}

.cc-codes td:last-child {
  width: 1%;
}

.cc-credits {
  margin-top: 28px;
  font-size: 12px;
  color: #6b8089;
}

.cc-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  background: #10242c;
  color: #fff;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 50;
  max-width: calc(100% - 32px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cc-toast.on {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 640px) {
  .cc-convert-row {
    grid-template-columns: 1fr;
  }

  .cc-grid {
    grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
  }

  .cc-glyph {
    width: 120px;
    height: 120px;
    font-size: 72px;
  }

  .cc-format select {
    max-width: 180px;
  }
}

.cc-grid-small + .cc-nav,
.st-block + .cc-nav {
  margin-top: 22px;
}

@media (max-width: 640px) {
  .cc-table {
    min-width: 0 !important;
  }

  .cc-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .cc-table,
  .cc-table tbody {
    display: block;
    width: 100%;
  }

  .cc-table tr {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    min-height: 66px;
    padding: 10px 4px 10px 72px;
    border-bottom: 1px solid #e8eef1;
  }

  .cc-table td {
    padding: 0;
    border: 0;
  }

  .cc-table td:nth-child(1) {
    position: absolute;
    top: 10px;
    left: 4px;
  }

  .cc-table td:nth-child(2) {
    flex: 0 0 100%;
    font-weight: 600;
    line-height: 1.35;
  }

  .cc-table td:nth-child(n + 3) {
    flex: none;
  }

  .cc-table td code {
    white-space: nowrap;
  }
}
