.argus-legacy-dialog {
  box-sizing: border-box;
  width: min(calc(100vw - 32px), 1360px);
  height: min(calc(100dvh - 32px), 900px);
  max-width: none;
  max-height: none;
  padding: 0;
  border: 1px solid #c5c5bb;
  border-radius: 14px;
  color: var(--u6-ink, #22251f);
  background: var(--u6-paper, #f6f5ef);
  overscroll-behavior: contain;
}
.argus-legacy-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.argus-legacy-dialog::backdrop { background: rgb(15 21 19 / 50%); overscroll-behavior: contain; }
.argus-legacy-header, .argus-legacy-controls { display: flex; align-items: center; gap: 12px; }
.argus-legacy-header { justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid #c5c5bb; }
.argus-legacy-summary h2, .argus-legacy-summary p { margin: 0; }
.argus-legacy-summary h2 { font-size: 18px; overflow-wrap: anywhere; }
.argus-legacy-summary p { margin-top: 5px; font-size: 13px; }
.argus-legacy-controls button { border: 1px solid #b7bab0; border-radius: 7px; padding: 6px 9px; background: #fff; color: #26342d; }
.argus-legacy-controls form { margin: 0; }
.argus-legacy-board { display: grid; min-height: 0; grid-template-columns: minmax(0, 1fr) minmax(180px, 24%); }
.argus-legacy-viewport { overflow: auto; overscroll-behavior: contain; background: #dddfd6; }
.argus-legacy-sheet { position: relative; }
.argus-legacy-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.argus-legacy-node { position: absolute; box-sizing: border-box; width: 182px; min-height: 46px; padding: 6px 9px; text-align: left; background: #fcfcf7; color: #25322b; border: 1px solid #a0a698; border-radius: 8px; overflow-wrap: anywhere; }
.argus-legacy-node[data-kind="root"] { background: #26342d; color: #fff; }
.argus-legacy-node[data-kind="category"] { background: #eaf0e5; font-weight: 650; }
.argus-legacy-details { padding: 12px 16px; border-left: 1px solid #c5c5bb; overflow: auto; overflow-wrap: anywhere; white-space: pre-wrap; overscroll-behavior: contain; }
.argus-legacy-details h3 { margin: 0; }
.argus-legacy-preview { display: block; max-width: 100%; margin-top: 12px; border-radius: 5px; }
@media (max-width: 640px) {
  .argus-legacy-header { align-items: flex-start; flex-wrap: wrap; }
  .argus-legacy-board { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 2fr) minmax(0, 1fr); }
  .argus-legacy-details { border-left: 0; border-top: 1px solid #c5c5bb; }
}

