.ifc-figure {
  margin: 1.5em 0;
  width: 100%;
}

.ifc-viewer {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 420px;
  background: #202428;
  border: 1px solid #444;
  border-radius: 4px;
  overflow: hidden;
  color: #eee;
  font-family: inherit;
}

.ifc-viewer canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.ifc-status {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1em;
  color: #bbb;
  pointer-events: none;
}

.ifc-status.ifc-error {
  color: #ff8a80;
}

.ifc-layers {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 260px;
  max-width: 60%;
  overflow-y: auto;
  padding: 0.6em 0.8em;
  background: rgba(18, 20, 22, 0.82);
  border-left: 1px solid #444;
  font-size: 0.85rem;
  line-height: 1.5;
}

.ifc-layers[hidden] {
  display: none;
}

.ifc-layers h4 {
  margin: 0 0 0.5em;
  font-size: 0.95rem;
}

.ifc-layers ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ifc-layers ul ul {
  padding-left: 1.4em;
}

.ifc-layers li {
  margin: 0.15em 0;
}

.ifc-layers label {
  cursor: pointer;
  display: inline-flex;
  align-items: baseline;
  gap: 0.4em;
}

.ifc-layers .ifc-swatch {
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  border: 1px solid #000;
  border-radius: 2px;
  vertical-align: middle;
}

.ifc-layers .ifc-master > label > .ifc-name {
  font-weight: 600;
}

.ifc-layers .ifc-count {
  color: #999;
  font-size: 0.8em;
}

.ifc-hint {
  position: absolute;
  left: 0.6em;
  bottom: 0.5em;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  pointer-events: none;
}
