.palette-main {
  overflow: hidden;
}

.palette-heading {
  position: relative;
}

.palette-heading .client-breadcrumb a:not(:first-child) {
  color: #5a7299;
  text-decoration: none;
}

.palette-heading .client-breadcrumb a:not(:first-child):hover,
.palette-heading .client-breadcrumb a:not(:first-child):focus-visible {
  color: #0d61ab;
  text-decoration: underline;
  outline: none;
}

.palette-back {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  color: #0d61ab;
  font-size: 14px;
  line-height: 20px;
  text-decoration: none;
}

.palette-back .client-icon {
  transform: rotate(180deg);
}

.palette-back:hover,
.palette-back:focus-visible {
  text-decoration: underline;
  outline: none;
}

.palette-panel {
  border-radius: 4px;
  background: #ffffff;
  padding: 24px;
}

.palette-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.palette-panel-head h2 {
  margin: 0 0 4px;
  font-size: 20px;
  line-height: 28px;
}

.palette-panel-head p {
  max-width: 720px;
  margin: 0;
  color: #737373;
  font-size: 14px;
  line-height: 20px;
}

.palette-legend {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  color: #737373;
  font-size: 13px;
  line-height: 20px;
}

.palette-legend span {
  width: 12px;
  height: 12px;
  border: 2px solid #0d61ab;
  border-radius: 2px;
  background: #ffffff;
}

.palette-table-wrap {
  overflow-x: auto;
  border: 1px solid #e6e6e6;
  border-radius: 4px;
  scrollbar-color: #a8adb3 #f1f3f5;
}

.palette-table-wrap:focus-visible {
  outline: 2px solid #0e75d0;
  outline-offset: 2px;
}

.palette-table {
  width: 100%;
  min-width: 1420px;
  border-spacing: 0;
  border-collapse: separate;
  table-layout: fixed;
  background: #ffffff;
}

.palette-table th,
.palette-table td {
  border-right: 1px solid #e6e6e6;
  border-bottom: 1px solid #e6e6e6;
  padding: 8px;
  text-align: left;
  vertical-align: top;
}

.palette-table tr > :last-child {
  border-right: 0;
}

.palette-table tbody tr:last-child > * {
  border-bottom: 0;
}

.palette-table thead th {
  background: #f6f8fa;
  color: #737373;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
}

.palette-table thead th:first-child {
  width: 168px;
  text-align: left;
}

.palette-table tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 168px;
  background: #ffffff;
  box-shadow: 1px 0 0 #e6e6e6;
}

.palette-table tbody th strong,
.palette-table tbody th span {
  display: block;
}

.palette-table tbody th strong {
  color: #333333;
  font-size: 16px;
  line-height: 24px;
}

.palette-table tbody th span {
  margin-top: 2px;
  color: #737373;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
}

.palette-table td {
  width: 112px;
}

.palette-swatch {
  display: flex;
  min-height: 72px;
  align-items: flex-end;
  border: 1px solid rgba(51, 51, 51, 0.08);
  border-radius: 3px;
  background: var(--swatch);
  padding: 6px;
  color: var(--ink);
}

.palette-swatch--token {
  box-shadow: inset 0 0 0 2px currentColor;
}

.palette-swatch b {
  font-size: 11px;
  font-weight: 700;
  line-height: 14px;
}

.palette-table code {
  display: block;
  margin-top: 6px;
  color: #5f6368;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 16px;
  text-align: center;
}

@media (max-width: 900px) {
  .palette-panel {
    padding: 20px 12px;
  }

  .palette-panel-head {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 640px) {
  .palette-panel {
    margin-right: -4px;
    margin-left: -4px;
  }

  .palette-table {
    min-width: 1320px;
  }

  .palette-table thead th:first-child,
  .palette-table tbody th {
    width: 148px;
  }

  .palette-table td {
    width: 104px;
  }
}
