.visuals-demo {
  display: grid;
  grid-template-columns: 132px minmax(230px, 1fr) minmax(230px, 1fr) minmax(220px, 0.88fr);
  gap: 8px;
  background: #050609;
  border: 1px solid #32343e;
  border-radius: 10px;
  padding: 8px;
  min-height: 610px;
  color: #e9e4da;
  font-size: 12px;
  line-height: 1.35;
}
.esp-sidebar {
  display: flex;
  flex-direction: column;
  padding: 12px 8px;
  border-right: 1px solid #32343e;
  min-width: 0;
}
.esp-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 25px;
  letter-spacing: -0.03em;
}
.esp-brand svg {
  width: 28px;
  height: 25px;
  fill: var(--ref-yellow);
}
.esp-active {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 9px;
  border: 1px solid #eee8df;
  border-radius: 30px;
  margin-top: 30px;
  font-size: 11px;
}
.esp-active .icon {
  width: 20px;
  height: 20px;
}
.esp-sidebar-foot {
  margin-top: auto;
  padding-top: 30px;
  font-size: 12px;
  line-height: 1.8;
}
.esp-sidebar-foot small {
  display: block;
  color: #737581;
  font-size: 10px;
}
.esp-column {
  background: #08090e;
  border-radius: 6px;
  min-width: 0;
  overflow: hidden;
}
.esp-panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 13px;
  height: 40px;
  padding: 0 13px;
  background: #0a0b10;
}
.esp-panel-title::after {
  content: '';
  height: 1px;
  flex: 1;
  background: #62616a;
}
.esp-panel-title .icon {
  width: 20px;
  height: 20px;
}
.esp-scroll {
  height: 550px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px 12px 20px;
  scrollbar-width: thin;
  scrollbar-color: #6a6b75 #101118;
}
.esp-group {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #a3a29f;
  font-weight: 400;
  font-size: 10px;
  margin: 24px 0 12px;
}
.esp-group::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #62616a;
}
.esp-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 39px;
  border: 1px solid #525461;
  background: #080910;
  color: #ded9cf;
  border-radius: 25px;
  padding: 8px 12px;
  margin-bottom: 6px;
  text-align: left;
  font-size: 11px;
  line-height: 1.25;
}
.esp-pill:hover {
  background: #11131d;
  border-color: #e1d9cd;
}
.esp-pill > span:first-child {
  min-width: 0;
}
.esp-state {
  margin-left: auto;
  color: #96969e;
  font-size: 10px;
}
.esp-arrows {
  white-space: pre;
  letter-spacing: 3px;
  font-size: 17px;
  line-height: 1;
  color: #f6eee0;
}
.esp-color {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 3px 10px;
  font-size: 11px;
}
.esp-color input {
  appearance: none;
  width: 20px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 4px;
  flex-shrink: 0;
  cursor: pointer;
}
.esp-color input::-webkit-color-swatch-wrapper {
  padding: 0;
}
.esp-color input::-webkit-color-swatch {
  border: 0;
  border-radius: 4px;
}
.esp-color input::-moz-color-swatch {
  border: 0;
  border-radius: 4px;
}
.esp-slider {
  display: block;
  border: 1px solid #525461;
  border-radius: 24px;
  padding: 10px 12px;
  margin: 6px 0 12px;
  font-size: 11px;
  background: #080910;
}
.esp-slider-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.esp-slider output {
  color: #92939e;
}
.esp-slider input {
  appearance: none;
  width: 100%;
  height: 5px;
  display: block;
  margin: 10px 0 1px;
  background: #65646e;
  border-radius: 0;
}
.esp-slider input::-webkit-slider-thumb {
  appearance: none;
  width: 5px;
  height: 9px;
  background: #dedbd5;
  border: 0;
}
.esp-slider input::-moz-range-thumb {
  width: 5px;
  height: 9px;
  background: #dedbd5;
  border: 0;
  border-radius: 0;
}
.esp-preview {
  min-width: 0;
  border: 1px solid #343640;
  background: #050609;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  padding-bottom: 10px;
}
.esp-preview-top {
  display: flex;
  justify-content: space-between;
  padding: 9px 10px;
  font-size: 11px;
  background: #090a10;
}
.esp-preview-top span:last-child {
  color: #9b9da6;
}
.esp-figure {
  margin: 12px 12px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}
.esp-character {
  position: relative;
  aspect-ratio: 941/1672;
  width: 100%;
  max-height: 473px;
  margin: auto;
  overflow: hidden;
}
.esp-character > img,
.esp-character > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.esp-character svg {
  pointer-events: none;
  overflow: visible;
  fill: none;
}
.esp-character svg path,
.esp-character svg circle,
.esp-character svg rect {
  vector-effect: non-scaling-stroke;
}
.esp-bones,
.esp-box,
.esp-corners {
  stroke: var(--esp-skeleton, #fff);
  stroke-width: var(--esp-stroke, 2.5);
}
.esp-eyes {
  stroke: #fff;
  stroke-width: 1;
}
.esp-head {
  stroke: var(--esp-head, red);
  stroke-width: 1.7;
}
.esp-joints {
  fill: var(--esp-joints, #0f0);
  stroke: #050609;
  stroke-width: 0.5;
}
.esp-bar {
  height: 6px;
  background: #191b25;
  margin: 2px 6px 0;
  position: relative;
}
.esp-bar::before {
  content: '';
  display: block;
  height: 100%;
  width: var(--bar-value);
  background: var(--bar-color);
}
.esp-bar span {
  position: absolute;
  left: var(--bar-value);
  top: 50%;
  transform: translate(3px, -50%);
  font-size: 7px;
  color: #ded9cf;
}
.esp-health {
  --bar-value: 70%;
  --bar-color: #8cff00;
}
.esp-armor {
  --bar-value: 66%;
  --bar-color: #00afff;
}
.esp-preview-labels {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin: 8px 0;
  font-size: 11px;
  line-height: 1;
}
.esp-preview-labels span {
  background: #051825;
  padding: 2px;
  color: #00d6e5;
}
.esp-preview-labels .esp-device-label {
  color: #00ff00;
}
.esp-demo-foot {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  align-items: center;
  margin: 0.85rem 0.2rem;
  color: var(--color-muted);
  font-size: 0.8125rem;
}
.esp-demo-foot button {
  font-size: inherit;
}
@media (max-width: 1150px) {
  .visuals-demo {
    grid-template-columns: 105px minmax(200px, 1fr) minmax(200px, 1fr) minmax(190px, 0.85fr);
  }
  .esp-sidebar {
    padding: 10px 5px;
  }
  .esp-brand {
    font-size: 21px;
  }
  .esp-scroll {
    padding-left: 8px;
    padding-right: 8px;
  }
  .esp-pill {
    padding: 8px 9px;
    gap: 8px;
  }
  .esp-arrows {
    letter-spacing: 1px;
  }
  .esp-panel-title {
    font-size: 12px;
    padding: 0 9px;
  }
  .esp-color {
    padding: 3px 6px;
  }
}
@media (max-width: 950px) {
  .visuals-demo {
    grid-template-columns: 1fr 1fr 220px;
  }
  .esp-sidebar {
    grid-column: 1/-1;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    border-right: 0;
    border-bottom: 1px solid #32343e;
    padding-bottom: 12px;
  }
  .esp-active {
    margin: 0;
  }
  .esp-sidebar-foot {
    display: none;
  }
  .esp-scroll {
    height: 510px;
  }
  .esp-character {
    max-height: 420px;
  }
  .esp-figure {
    margin: 12px 6px 0;
  }
}
@media (max-width: 720px) {
  .visuals-demo {
    grid-template-columns: 1fr 1fr;
  }
  .esp-preview {
    grid-column: 1/-1;
  }
  .esp-figure {
    width: 240px;
    max-width: 100%;
    align-self: center;
    margin-top: 10px;
  }
  .esp-preview-labels {
    margin-bottom: 12px;
  }
  .esp-scroll {
    height: 440px;
  }
  .esp-character {
    max-height: none;
  }
  .esp-demo-foot {
    align-items: flex-start;
  }
  .esp-demo-foot > span {
    max-width: 28ch;
  }
}
@media (max-width: 440px) {
  .visuals-demo {
    grid-template-columns: 1fr;
    padding: 7px;
  }
  .esp-sidebar {
    gap: 1.3rem;
  }
  .esp-column,
  .esp-preview {
    grid-column: 1;
  }
  .esp-scroll {
    height: 340px;
  }
  .esp-panel-title {
    font-size: 13px;
  }
  .esp-pill {
    min-height: 42px;
    font-size: 12px;
  }
  .esp-color {
    font-size: 12px;
    min-height: 40px;
  }
  .esp-active {
    min-height: 42px;
  }
  .esp-preview {
    margin-top: 4px;
  }
}
