/* /attack-tree/ — SVG canvas (left) + node property panel (right). Flat, square. */

#root-probability { margin: 0; font-weight: 700; }

.attack-tree-layout {
  display: grid;
  grid-template-columns: 1fr minmax(15rem, 22rem);
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 760px) {
  .attack-tree-layout { grid-template-columns: 1fr; }
}

/* SVG canvas: scale large diagram down to fit, scroll if needed */
.attack-tree-layout > section { padding: 0.5rem; }
#attack-tree-svg {
  display: block;
  max-width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid #ccc;
}

/* Property panel */
#property-panel { display: flex; flex-direction: column; gap: 0.6rem; }
#property-panel p { margin: 0; }
#property-panel label { display: flex; flex-direction: column; gap: 0.25rem; font-weight: 600; font-size: 0.9rem; }
#property-panel select,
#property-panel input { align-self: flex-start; min-width: 8rem; }
#property-panel-empty { color: #555; font-style: italic; }

/* Inline label editor overlaid on the SVG */
.inline-edit-overlay {
  border: 1px solid #2a2a2a;
  background: #fffdf5;
  font: inherit;
  padding: 0.15rem 0.3rem;
}
