/* The inspector: tabs and the Extract, Compare, Colours and Clip panels. */
/* inspector */
.inspector {
  flex: 1 1 auto;
}
.panels {
  flex: 1;
  min-height: 0;
  overflow: auto;
  scrollbar-width: thin;
}
.panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 14px;
}
.ptitle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 -2px;
  font-size: 13px;
  font-weight: 600;
}
.ptitle .aside {
  margin-left: auto;
  font-family: var(--f-ui);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-3);
}
.group {
  display: grid;
  gap: 8px;
}
.gh {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}
.gh .aside {
  margin-left: auto;
  font-family: var(--f-ui);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-3);
}
.help {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--text-3);
  text-wrap: pretty;
}
.prop {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 28px;
}
.prop > label,
.prop > span.l {
  font-size: 12px;
  color: var(--text-2);
}
.prop .val {
  font-family: var(--f-ui);
  font-variant-numeric: tabular-nums;
  font-size: 11.5px;
  color: var(--text-2);
}
.stack {
  display: grid;
  gap: 4px;
}
.stack .help {
  margin: 0 0 6px;
}
.inrow {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.unit {
  font-size: 12px;
  color: var(--text-3);
}
.selwrap {
  position: relative;
  display: inline-flex;
}
.selwrap select {
  appearance: none;
  -webkit-appearance: none;
  height: 28px;
  padding: 0 24px 0 9px;
  border-radius: 7px;
  border: 0;
  background: var(--panel-2);
  font-size: 12px;
  cursor: pointer;
}
.selwrap select:hover {
  background: var(--panel-3);
}
.ddbtn {
  height: 28px;
  padding: 0 24px 0 9px;
  font-weight: 500;
  border-radius: 7px;
  border: 0;
  background: var(--panel-2);
  font-size: 12px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qopts .ddbtn {
  width: 100%;
  height: 30px;
}
.ddbtn:hover,
.ddbtn[aria-expanded='true'] {
  background: var(--panel-3);
}
.ddbtn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.ddlist {
  position: fixed;
  z-index: 100;
  display: grid;
  gap: 1px;
  padding: 4px;
  max-height: 60vh;
  overflow: auto;
  border-radius: 10px;
  background: var(--panel);
  box-shadow: var(--shadow-pop);
  animation: ddIn 0.12s ease-out;
}
@keyframes ddIn {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }
}
.ddlist button {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px 0 8px;
  border: 0;
  border-radius: 6px;
  background: none;
  font-size: 12px;
  color: var(--text);
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}
.ddlist button svg.i {
  width: 13px;
  height: 13px;
  flex: none;
  visibility: hidden;
  color: var(--accent-text);
}
.ddlist button[aria-selected='true'] {
  font-weight: 600;
}
.ddlist button[aria-selected='true'] svg.i {
  visibility: visible;
}
.ddlist button:hover,
.ddlist button:focus-visible {
  background: var(--accent);
  color: var(--on-accent);
  outline: none;
}
.ddlist button:hover svg.i,
.ddlist button:focus-visible svg.i {
  color: var(--on-accent);
}
.selwrap::after {
  content: '';
  position: absolute;
  right: 9px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid var(--text-2);
  border-bottom: 1.5px solid var(--text-2);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.rng {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.clipsave {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-3);
}
.clipsave span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.clipsave .btn {
  height: 26px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 600;
}
.rng button {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  height: 32px;
  padding: 9px 10px 0;
  border-radius: 8px;
  border: 0;
  background: var(--panel-2);
  text-align: left;
}
.rng button:hover {
  background: var(--panel-3);
}
.rng .k {
  display: flex;
  align-items: baseline; /* the label text sets the baseline, not the icon */
  gap: 5px;
  font-size: 12px;
  color: var(--text-3);
}
.rng .k svg.i {
  width: 14px;
  height: 14px;
  align-self: center;
}
.rng .v {
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.rng button.set .v {
  color: var(--accent-text);
}
.est {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12px;
  color: var(--text-2);
}
.est b {
  font-family: var(--f-mono);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
}
.chk {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-2);
  cursor: pointer;
}
.card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 7px;
  border-radius: 10px;
  background: var(--panel-2);
}
.card .ph {
  width: 56px;
  height: 36px;
  border-radius: 6px;
  background: var(--panel);
  display: grid;
  place-items: center;
  color: var(--text-3);
  overflow: hidden;
}
.card .ph img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.card .t {
  font-size: 11.5px;
  color: var(--text-3);
  min-width: 0;
  line-height: 1.35;
}
.card .t b {
  display: block;
  font-weight: 500;
  color: var(--text);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card .btn {
  height: 26px;
  padding: 0 10px;
  font-size: 12px;
  background: var(--panel);
  box-shadow: var(--lift);
}
.card.on {
  box-shadow: inset 0 0 0 1.5px var(--accent);
}
.card.reg .ph {
  color: var(--region);
}
.card.reg.on {
  box-shadow: inset 0 0 0 1.5px var(--region);
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.stat {
  display: grid;
  gap: 1px;
  padding: 9px 10px;
  border-radius: 10px;
  background: var(--panel-2);
}
.stat b {
  font-size: 17px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.stat span {
  font-size: 11px;
  color: var(--text-3);
}
.tlist {
  display: grid;
  align-content: start;
  overflow: auto;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px var(--line);
  scrollbar-width: thin;
  max-height: 300px;
}
.trow {
  display: grid;
  grid-template-columns: 3px 62px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 7px 10px 7px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  text-align: left;
  font-size: 12px;
  color: var(--text-2);
}
.trow:last-child {
  border-bottom: 0;
}
.trow:hover {
  background: var(--panel-2);
}
.trow.here {
  background: var(--accent-soft);
}
.trow .dot {
  align-self: stretch;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: transparent;
}
.trow .dot.hold {
  background: var(--hold);
}
.trow .st {
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.trow .du {
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.trow .du i {
  font-style: normal;
  color: var(--text-3);
  margin-left: 5px;
}
.trow .fe {
  display: flex;
  align-items: center;
  gap: 7px;
  justify-content: flex-end;
  font-size: 11.5px;
  white-space: nowrap;
}
.trow .fe.h {
  color: var(--hold);
  font-weight: 500;
}
.trow canvas {
  width: 34px;
  height: 14px;
  display: block;
}
.empty-p {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 20px 12px;
  border-radius: 10px;
  background: var(--panel-2);
  text-align: center;
  color: var(--text-3);
  font-size: 12px;
}
.empty-p svg.i {
  width: 20px;
  height: 20px;
}
.swatches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.swb {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 38px;
  padding: 0 9px 0 5px;
  border-radius: 9px;
  border: 0;
  background: var(--panel-2);
  font-family: var(--f-mono);
  font-size: 12px;
  text-align: left;
}
.swb:hover {
  background: var(--panel-3);
}
.swb i {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  flex: none;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}
.swb .pc {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-3);
}
.palstrip {
  display: flex;
  height: 52px;
  border-radius: 11px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line);
}
.palstrip button {
  border: 0;
  padding: 0;
  min-width: 16px;
  cursor: pointer;
  transition: transform 0.12s;
}
.palstrip button:hover {
  transform: scaleY(1.06);
}
.palstrip button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.palrow {
  display: flex;
  gap: 6px;
  align-items: center;
}
.palrow .seg {
  flex: 1;
}
.props {
  display: grid;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.prow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  padding: 4px 11px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.prow:last-child {
  border-bottom: 0;
}
.prow > :first-child {
  color: var(--text-2);
  flex: none;
}
.prow > :last-child {
  color: var(--text);
  text-align: right;
  min-width: 0;
  font-variant-numeric: tabular-nums;
}
.prow i {
  font-style: normal;
  color: var(--text-3);
  margin-left: 6px;
}
.prow .trunc {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 170px;
}
