.library-count {
  color: #898a92;
  font: 12px 'DM Mono', monospace;
}

.import {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 11px;
  border: 1px solid #dedbd7;
  border-radius: 7px;
  background: #fff;
  color: #4d4e54;
  font: 600 13px 'Noto Sans SC', sans-serif;
  cursor: pointer;
}

.import:hover { background: #f6f4f1; }
.import svg { width: 16px; }

.bead-grid,
.bead-grid .cell {
  cursor: inherit;
}

.grid-label {
  border: 0;
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
  padding: 6px 8px;
}

.grid-label:hover { background: #f2f0ed; }
.grid-label > svg:last-child { width: 13px; }

.code-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid #e3e0dc;
  border-radius: 5px;
  color: #707178;
  font-size: 12px;
  cursor: pointer;
}

.code-toggle input {
  appearance: none;
  width: 14px;
  height: 14px;
  margin: 0;
  border: 1px solid #b9b6b2;
  border-radius: 3px;
  background: #fff;
}

.code-toggle input:checked {
  border-color: #f15a63;
  background: #f15a63;
  box-shadow: inset 0 0 0 3px #fff;
}

.cell.show-code {
  overflow: hidden;
  padding: 0;
  font: 700 8px/1 'DM Mono', monospace;
  letter-spacing: 0;
  text-align: center;
}

.zoom-input {
  width: 48px;
  height: 26px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #717278;
  font: 12px 'DM Mono', monospace;
  text-align: center;
}

.zoom-input:hover,
.zoom-input:focus {
  border-color: #ddd9d5;
  background: #fff;
  outline: 0;
}

.zoom-reset {
  height: 26px;
  padding: 0 6px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #717278;
  font: 11px 'DM Mono', monospace;
  cursor: pointer;
}

.zoom-reset:hover { background: #f2f0ed; }

.contact {
  width: 100%;
  display: grid;
  grid-template-columns: 17px 1fr;
  column-gap: 10px;
  padding: 10px 11px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #66676e;
  text-align: left;
  cursor: pointer;
}

.contact:hover { background: #f5f2ef; }
.contact svg { width: 17px; grid-row: 1 / span 2; align-self: center; }
.contact span { font-size: 12px; }
.contact small { margin-top: 2px; color: #a0a0a5; font: 10px 'DM Mono', monospace; }

@media (max-width: 900px) {
  .contact { display: none; }
}

.palette {
  display: block;
}

.palette-empty {
  margin: 12px 0;
  color: #92939a;
  font-size: 12px;
  text-align: center;
}

.palette-series {
  border-bottom: 1px solid #eeece9;
}

.palette-series summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
  color: #4e4f55;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.palette-series summary::-webkit-details-marker { display: none; }
.palette-series summary::before { content: '+'; width: 16px; color: #919198; font: 16px 'DM Mono', monospace; }
.palette-series[open] summary::before { content: '-'; }
.palette-series summary span { margin-right: auto; }
.palette-series summary small { color: #9a9ba1; font: 11px 'DM Mono', monospace; }

.color-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
  padding: 2px 2px 13px;
}

.palette-series .color-grid { padding-top: 1px; }
