.block-content{
  display:flex;
  justify-content:center;
}

.block_tree{
  width:98%;
  height:100%;
  font-size:18px;
}

.block_tree ul,
.block_tree li{
  list-style:none;
  margin:0;
  padding:0;
}
.block_tree li{
  padding-right:10px;
}

.block_tree .evaluated-row{
  width:100%;
  margin:16px 0;
  border-radius:16px;
}

.block_tree .evaluated{
  width:100%;
}

.block_tree ul{
  margin-top:12px;
}

.block_tree ul ul{
  margin-top:10px;
  padding-left:56px;
  padding-right:14px;
  border-left:1px solid rgba(255,255,255,0.10);
}

.block_tree li{
  width:100%;
  margin-bottom:10px;
}

.block_tree details{
  width:100%;
}

.block_tree summary{
  width:100%;
  cursor:pointer;
  list-style:none;
}

.block_tree summary::-webkit-details-marker{
  display:none;
}

.block_tree li details > summary::marker{
  content:"";
}

.block_tree details[open] > summary .block_control{
  border-color: rgba(45,212,191,0.6);
  box-shadow: 
    0 0 0 1px rgba(45,212,191,0.4),
    0 12px 28px rgba(0,0,0,0.35);
}

.master_row{
  display:flex;
  gap:10px;
  width:100%;
  align-items:center;
}

.command_control{
  width:38px;
  height:38px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(255,255,255,0.10);
  background:rgba(255,255,255,0.04);
  border-radius:12px;
  flex:0 0 auto;
}

.command_control i{
  opacity:0.85;
}

.command_control:hover{
  background:rgba(255,255,255,0.07);
}

.block_control{
  width:100%;
  display:grid;
  grid-template-columns: 26px auto 1fr;
  gap:10px;
  align-items:start;

  padding:10px 12px;
  border-radius:16px;
  background: rgba(4, 40, 72, 0.55);
  border:1px solid rgba(255,255,255,0.14);
  box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}

.block_control{
  transition: 
    background 0.25s ease,
    transform 0.2s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.block_control:hover{
  background: rgba(4, 40, 72, 0.75);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.35);
  border-color: rgba(109,94,249,0.45);
}

.block_control.no-children{
  cursor:default;
  grid-template-columns: auto 1fr;
}

.bc-left{
  display:flex;
  align-items:center;
  justify-content:center;
  width:26px;
}

.arrow-placeholder{
  width:18px;
  height:18px;
  display:inline-block;
  opacity:0.35;
}

.no-children .arrow{
  display:none;
}

.arrow{
  transition: transform 0.25s cubic-bezier(.4,0,.2,1);
}

.block_tree details[open] > summary .arrow{
  transform: rotate(90deg);
}

.bc-meta{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  align-items:center;
}

.func-type{
  border:1px solid rgba(255,255,255,0.14);
  border-radius:999px;
  padding:4px 8px;
  background: rgba(72, 39, 4, 0.55);
  font-size:12px;
  font-weight:700;
  letter-spacing:0.2px;
}

.func-type:hover{
  background: rgba(130, 71, 8, 0.65);
}

.bc-expr{
  min-width:0;
}

.expr-text{
  display:block;
  min-width:0;
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:break-word;
}

.bc-result{
  display:flex;
  align-items:center;
  gap:8px;
  flex:0 0 auto;
  white-space:nowrap;
}

.eq{
  margin: 0 6px;
  opacity:0.7;
  font-weight:700;
}

.func-result{
  display:inline-block;
  border:1px solid rgba(255,255,255,0.14);
  border-radius:999px;
  padding:4px 10px;
  background: rgba(72, 39, 4, 0.55);
  font-size:14px;
  font-weight:800;
  white-space:nowrap;
}

.func-result{
  transition: 
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.block_control:hover .func-result{
  box-shadow: 0 0 12px rgba(109,94,249,0.45);
}

.evaluated-log{
  margin-top:12px;
  height:fit-content;
  border:1px rgba(255, 255, 255, 0.20) solid;
  border-radius:14px;
  background: rgba(255,255,255,0.04);
}

.func-log{
  display:flex;
  flex-direction:column;
}

@media (max-width: 780px){
  .block_control{
    grid-template-columns: 26px 1fr;
    grid-template-areas:
      "left meta"
      "left expr"
      "left result";
    align-items:start;
  }

  .bc-left{ grid-area:left; }
  .bc-meta{ grid-area:meta; }
  .bc-expr{ grid-area:expr; }
  .bc-result{ grid-area:result; justify-content:flex-start; }
}

@media (max-width: 520px){
  .block_tree{
    width:100%;
    font-size:16px;
  }
  .command_control{
    width:34px;
    height:34px;
    border-radius:12px;
  }
  .block_control{
    padding:10px;
  }
}