:root {
  --demo-ribbon-h: 28px;
  --staging-dbh: calc(var(--dbh) + var(--demo-ribbon-h));
}
#demo-ribbon {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  height: var(--demo-ribbon-h);
  background: #b05000;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.3px;
  border-bottom: 2px solid #8a3e00;
}
#dbar {
  top: var(--demo-ribbon-h);
}
#app {
  padding-top: var(--staging-dbh);
}
.dtab-territorio {
  --tc: #1a5c56;
}
.iframe-fill {
  border: none;
  width: 100%;
  flex: 1;
  min-height: 0;
  background: #fff;
}
.main-iframe {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}
#dv-territorio {
  min-height: 0;
}
#dv-territorio .main.main-iframe {
  height: calc(100vh - var(--staging-dbh));
}
#p-territorio-mapa {
  display: none;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
#p-territorio-mapa.active {
  display: flex;
}
#p-territorio-mapa .iframe-fill {
  flex: 1;
  min-height: 600px;
  width: 100%;
  height: 100%;
}
#p-territorio-corozal.active {
  display: block;
  overflow-y: auto;
  flex: 1;
}
.hipotesis-paso .ch {
  background: #fff8ef;
}
.src-tag {
  font-size: 10px;
  color: var(--mid);
  margin-top: 4px;
}
.src-tag a {
  color: var(--cth-deep-blue);
  font-weight: 600;
}
.link-edge {
  border-left: 3px solid var(--a, var(--cth-deep-blue));
  padding: 10px 12px;
  margin-bottom: 8px;
  background: #fafcff;
  border-radius: 0 8px 8px 0;
  font-size: 12px;
}
.link-edge.por-validar {
  border-left-color: #f59e0b;
  background: #fffbf5;
}
.entity-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  background: var(--ab);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  margin: 4px;
}
.entity-chip:hover {
  border-color: var(--a);
}
.story-step {
  margin-bottom: 22px;
}
.story-step h3 {
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--text);
}
