/* 그림으로 보여 주는 칸: 기기 비율 막대, 신호 해독 */
:root {
  --k1: #2a78d6;
  --k2: #eb6834;
  --k3: #1baf7a;
  --k4: #eda100;
}
@media (prefers-color-scheme: dark) {
  :root {
    --k1: #3987e5;
    --k2: #d95926;
    --k3: #199e70;
    --k4: #c98500;
  }
}
[data-k="1"] {
  --k: var(--k1);
}
[data-k="2"] {
  --k: var(--k2);
}
[data-k="3"] {
  --k: var(--k3);
}
[data-k="4"] {
  --k: var(--k4);
}

/* 기기 비율 막대 */
.share {
  margin: 0;
}
.share-bar {
  display: flex;
  gap: 2px;
  height: 14px;
}
.share-bar i {
  flex: var(--n) 1 0;
  min-width: 8px;
  border-radius: 4px;
  background: var(--k);
  transform-origin: left;
}
.motion .share-bar i {
  scale: 0 1;
  transition: scale 700ms cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--o) * 90ms);
}
.motion .share.shown .share-bar i {
  scale: 1 1;
}
.share-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
}
.share-legend span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.share-legend i {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--k);
}
.share-legend b {
  margin-left: auto;
  color: var(--text);
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

/* 신호 해독 */
.models-side {
  display: grid;
  gap: 14px;
  align-content: start;
}
.decode {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
}
.decode-title {
  font-weight: 700;
}
.decode-src {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}
.decode-bytes {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 4px;
  min-height: 64px;
  margin-top: 8px;
  font:
    600 13px / 1 ui-monospace,
    "SF Mono",
    Menlo,
    monospace;
}
.decode-bytes span {
  padding: 7px 6px;
  border-radius: 6px;
  background: var(--card);
  color: var(--muted);
  transition:
    background 300ms,
    color 300ms;
}
.decode[data-step="1"] .decode-bytes [data-hot],
.decode[data-step="2"] .decode-bytes [data-hot] {
  background: var(--text);
  color: var(--bg);
}
.decode-key,
.decode-name {
  opacity: 0;
  translate: 0 6px;
  transition:
    opacity 300ms,
    translate 300ms;
}
.decode-key {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.decode-name {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.decode-name span {
  flex: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
}
.decode[data-step="1"] .decode-key,
.decode[data-step="2"] .decode-key,
.decode[data-step="2"] .decode-name {
  opacity: 1;
  translate: 0;
}
.decode-dots {
  display: flex;
  gap: 6px;
  margin-top: 16px;
}
.decode-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
}
.decode-dots i[data-on] {
  background: var(--text);
}
