/* Pro-Editor 2: docked into the diagram page in place of table and preview. */
#app.pro-open .workspace {
  position: relative;
}

#app.pro-open .split-view {
  visibility: hidden;
}

.pro-editor-shell {
  --pro-line: var(--scs-line);
  --pro-muted: var(--scs-ink-3);
  position: absolute;
  z-index: 6;
  margin: 0;
  padding: 0;
  max-width: none;
  max-height: none;
  border: 1px solid var(--pro-line);
  border-radius: var(--scs-radius-l, 10px);
  background: var(--scs-surface);
  color: var(--scs-ink);
  box-shadow: var(--scs-shadow-1, 0 1px 2px #10233414);
  overflow: hidden;
}

.pro-editor-shell[open] {
  display: flex;
  flex-direction: column;
}

.pro-editor-shell[aria-busy=true] .pro-editor-canvas {
  cursor: progress;
}

.pro-editor-shell button {
  min-height: 32px;
}

/* Header: view switch, draft state and the two draft actions. */
.pro-editor-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--pro-line);
  background: var(--scs-surface-2);
}

.pro-view-switch {
  display: inline-flex;
  padding: 2px;
  border: 1px solid var(--pro-line);
  border-radius: var(--scs-radius-m, 8px);
  background: var(--scs-surface);
}

.pro-view-switch button {
  min-height: 28px;
  padding: 3px 12px;
  border: 0;
  border-radius: calc(var(--scs-radius-m, 8px) - 2px);
  background: transparent;
  color: var(--scs-ink-2);
  font-size: var(--scs-text-s, 13px);
}

.pro-editor-shell .pro-view-switch button[aria-pressed=true],
.pro-editor-shell .pro-view-switch button[aria-pressed=true]:hover {
  border: 0;
  background: var(--scs-accent);
  color: var(--scs-accent-ink, #fff);
}

.pro-editor-head strong {
  color: var(--pro-muted);
  font-size: var(--scs-text-xs, 12px);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.pro-editor-status {
  margin-left: auto;
  max-width: 34%;
  overflow: hidden;
  color: var(--pro-muted);
  font-size: var(--scs-text-s, 13px);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pro-changes {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--scs-surface);
  border: 1px solid var(--pro-line);
  color: var(--pro-muted);
  font-size: var(--scs-text-xs, 12px);
  white-space: nowrap;
}

.pro-changes::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--scs-line-strong, #9fb1bd);
}

.pro-changes[data-count]:not([data-count='0']) {
  border-color: var(--scs-warning, #b7791f);
  color: var(--scs-ink);
}

.pro-changes[data-count]:not([data-count='0'])::before {
  background: var(--scs-warning, #b7791f);
}

.pro-editor-shell.is-attention .pro-changes {
  animation: pro-attention .9s ease-in-out 2;
}

@keyframes pro-attention {
  50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--scs-warning, #b7791f) 35%, transparent); }
}

.pro-editor-head #pro-close {
  min-width: 32px;
  padding: 3px 8px;
  font-size: 18px;
  line-height: 1;
}

/* Toolbar: icon groups with tooltips; rare commands through the command search. */
.pro-editor-tools {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 46px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--pro-line);
  overflow-x: auto;
  scrollbar-width: thin;
}

.pro-tool-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding-right: 6px;
  margin-right: 4px;
  border-right: 1px solid var(--pro-line);
}

.pro-tool-group:last-of-type {
  border-right: 0;
}

.pro-tool {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--scs-radius-s, 6px);
  background: transparent;
  color: var(--scs-ink-2);
}

.pro-editor-shell .pro-tool:hover:not(:disabled) {
  border-color: var(--pro-line);
  background: var(--scs-surface-2);
  color: var(--scs-ink);
}

.pro-editor-shell .pro-editor-tools .pro-tool[aria-pressed=true] {
  border-color: color-mix(in srgb, var(--scs-accent) 45%, transparent);
  background: color-mix(in srgb, var(--scs-accent) 14%, transparent);
  color: var(--scs-accent);
}

.pro-tool:disabled {
  opacity: .38;
}

.pro-tool svg,
.pro-command-button svg,
.pro-side-tabs svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pro-tool-label,
.pro-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.pro-zoom-level {
  min-width: 52px;
  padding: 0 4px;
  color: var(--scs-ink-2);
  font-size: var(--scs-text-xs, 12px);
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.pro-command-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  min-width: 190px;
  padding: 4px 8px 4px 10px;
  border: 1px solid var(--pro-line);
  border-radius: var(--scs-radius-m, 8px);
  background: var(--scs-surface-2);
  color: var(--pro-muted);
  font-size: var(--scs-text-s, 13px);
  white-space: nowrap;
}

.pro-command-button kbd,
.pro-commands kbd,
.pro-shortcut-list kbd {
  margin-left: auto;
  padding: 1px 6px;
  border: 1px solid var(--pro-line);
  border-radius: 4px;
  background: var(--scs-surface);
  color: var(--scs-ink-2);
  font: 11px/1.6 var(--scs-font-mono, ui-monospace, monospace);
}

/* Body: side panel, optional list (split view), canvas and inspector. */
.pro-editor-body {
  display: grid;
  grid-template-columns: 236px 0 minmax(0, 1fr) 292px;
  flex: 1;
  min-height: 0;
}

.pro-editor-shell[data-view=split] .pro-editor-body {
  grid-template-columns: 236px minmax(260px, 30%) minmax(0, 1fr) 292px;
}

.pro-editor-side,
.pro-editor-properties,
.pro-editor-table {
  min-height: 0;
  overflow: auto;
  background: var(--scs-surface);
}

.pro-editor-side {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--pro-line);
}

.pro-side-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--pro-line);
}

.pro-side-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--pro-muted);
  font-size: var(--scs-text-s, 13px);
}

.pro-side-tabs button[aria-selected=true] {
  border-bottom-color: var(--scs-accent);
  color: var(--scs-ink);
  font-weight: 600;
}

.pro-editor-palette,
.pro-editor-outline {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 12px;
}

.pro-editor-table {
  border-right: 1px solid var(--pro-line);
}

.pro-editor-side { grid-column: 1; grid-row: 1; }
.pro-editor-table { grid-column: 2; grid-row: 1; }
.pro-editor-canvas { grid-column: 3; grid-row: 1; }
.pro-editor-properties { grid-column: 4; grid-row: 1; }

.pro-editor-shell:not([data-view=split]) .pro-editor-table {
  display: none;
}

.pro-editor-canvas {
  position: relative;
  min-height: 0;
}

.pro-editor-canvas iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--scs-surface);
}

.pro-editor-properties {
  padding: 12px 14px;
  border-left: 1px solid var(--pro-line);
}

/* Status bar. */
.pro-statusbar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 34px;
  padding: 4px 12px;
  border-top: 1px solid var(--pro-line);
  background: var(--scs-surface-2);
  color: var(--pro-muted);
  font-size: var(--scs-text-xs, 12px);
}

.pro-statusbar #pro-selection-info {
  color: var(--scs-ink-2);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pro-statusbar .pro-status-spacer {
  margin-left: auto;
}

.pro-statusbar label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.pro-statusbar button {
  min-height: 26px;
  padding: 2px 8px;
  font-size: var(--scs-text-xs, 12px);
}

/* Palette (add elements and interfaces). */
.pro-editor-palette button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  margin: 5px 0;
  text-align: left;
}

.pro-editor-palette img {
  width: 24px;
  height: 24px;
  padding: 3px;
  border-radius: 4px;
  background: var(--scs-bg);
}

.pro-editor-palette small {
  display: block;
  color: var(--pro-muted);
}

.pro-editor-palette input,
.pro-editor-palette select,
.pro-editor-properties input,
.pro-editor-properties select,
.pro-editor-properties textarea,
.pro-editor-outline input {
  width: 100%;
  min-width: 0;
}

.pro-editor-properties textarea {
  resize: vertical;
}

.pro-editor-palette h3,
.pro-editor-properties h3,
.pro-editor-outline h3 {
  margin: 4px 0 10px;
  font-size: var(--scs-text-m, 14px);
}

.pro-editor-palette details {
  margin: 14px 0;
  padding: 10px 0;
  border-block: 1px solid var(--pro-line);
}

.pro-editor-palette summary {
  padding: 4px 0;
  font-weight: 600;
  cursor: pointer;
}

.pro-editor-palette details input,
.pro-editor-palette details select {
  margin-top: 8px;
}

.pro-editor-palette #pro-catalog-count {
  margin: 8px 0 4px;
}

.pro-editor-palette #pro-catalog-items {
  max-height: 30vh;
  overflow: auto;
}

.pro-editor-palette #pro-catalog-items button {
  min-height: 34px;
  padding: 6px 8px;
  font-size: 13px;
}

.pro-editor-palette #pro-catalog-items span {
  overflow-wrap: anywhere;
}

.pro-editor-palette #pro-catalog-more {
  font-size: 12px;
}

.pro-editor-palette .pro-palette-hint {
  margin-top: 20px;
  color: var(--pro-muted);
  font-size: 12px;
  line-height: 1.5;
}

/* Interfaces in the palette: one tool button in the toolbar style and compact
   defaults, so the block reads like the toolbar above it (4.13.1). */
.pro-connections {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--pro-line);
}

.pro-connections > h3 {
  margin: 0 0 8px;
  color: var(--pro-muted);
  font-size: var(--scs-text-xs, 12px);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.pro-editor-palette .pro-connect-tool {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 32px;
  height: 32px;
  margin: 0 0 8px;
  padding: 0 10px;
  border: 1px solid var(--pro-line);
  border-radius: var(--scs-radius-s, 6px);
  background: var(--scs-surface);
  color: var(--scs-ink);
  font-size: 13px;
  font-weight: 500;
  box-shadow: none;
}

.pro-connect-tool svg {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pro-editor-shell .pro-connect-tool:hover:not(:disabled) {
  background: var(--scs-surface-2);
}

.pro-editor-shell .pro-connections .pro-connect-tool[aria-pressed=true] {
  border-color: color-mix(in srgb, var(--scs-accent) 45%, transparent);
  background: color-mix(in srgb, var(--scs-accent) 14%, transparent);
  color: var(--scs-accent);
}

.pro-connection-defaults {
  display: grid;
  gap: 6px;
}

.pro-connection-defaults .field {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
}

.pro-connections .field {
  margin: 0;
  color: var(--pro-muted);
  font-size: 12px;
}

.pro-connections select {
  height: 30px;
  min-height: 30px;
  margin-top: 0;
  padding-block: 2px;
  font-size: 13px;
}

.pro-editor-palette .pro-link-button {
  width: auto;
  min-height: 26px;
  margin: 2px 0 0;
  padding: 2px 4px;
  border: 0;
  background: transparent;
  color: var(--scs-accent);
  font-size: 12px;
  box-shadow: none;
}

.pro-editor-palette .pro-link-button:hover:not(:disabled) {
  text-decoration: underline;
}

.pro-connections small {
  margin: 6px 0 2px;
  font-size: 12px;
  line-height: 1.45;
}

.pro-hidden-containers {
  margin: 12px 0;
  padding: 4px 0 10px;
  border-block: 1px solid var(--pro-line);
}

.pro-hidden-list {
  max-height: 24vh;
  overflow: auto;
}

.pro-hidden-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  padding: 5px 0;
  font-size: 12px;
}

.pro-hidden-row > span {
  overflow-wrap: anywhere;
}

.pro-hidden-row small {
  font-size: 11px;
  line-height: 1.4;
}

.pro-hidden-row button {
  width: auto;
  min-height: 30px;
  padding: 4px 7px;
  font-size: 12px;
}

.pro-hidden-containers > button,
.pro-hidden-containers > small {
  font-size: 12px;
  line-height: 1.5;
}

/* Inspector: "In this view" and "In the model". */
.pro-editor-properties .field {
  margin-bottom: 10px;
  font-size: 13px;
}

.pro-editor-properties button {
  margin: 4px 0;
}

.pro-inspector-head {
  margin-bottom: 12px;
}

.pro-inspector-head h3 {
  margin: 0;
}

.pro-inspector-head small {
  display: block;
  margin-top: 2px;
  color: var(--pro-muted);
  font-size: 12px;
}

.pro-inspector-section {
  margin: 0 0 14px;
  padding: 10px 0 2px;
  border-top: 1px solid var(--pro-line);
}

.pro-inspector-section > h4 {
  margin: 0 0 10px;
  color: var(--pro-muted);
  font-size: var(--scs-text-xs, 12px);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.pro-impact {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-left: 3px solid var(--scs-info, var(--scs-accent));
  border-radius: 0 var(--scs-radius-s, 6px) var(--scs-radius-s, 6px) 0;
  background: color-mix(in srgb, var(--scs-info, var(--scs-accent)) 9%, transparent);
  color: var(--scs-ink-2);
  font-size: 12px;
  line-height: 1.5;
}

.pro-impact ul {
  margin: 4px 0 0;
  padding-left: 18px;
}

.pro-inspector-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--pro-line);
}

.pro-inspector-actions button {
  margin: 0;
}

.pro-editor-properties .pro-shared-edit,
.pro-hide-container {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 12px 0 5px;
  font-size: 12px;
  line-height: 1.5;
}

.pro-editor-properties .pro-shared-edit input,
.pro-editor-properties .pro-hide-container input {
  flex: none;
  width: auto;
  min-height: 0;
  margin-top: 3px;
}

.pro-editor-properties #pro-new-function {
  margin: -4px 0 12px;
  font-size: 12px;
}

.pro-editor-properties .warning,
.pro-editor-properties small,
.pro-anchor-hint {
  display: block;
  color: var(--pro-muted);
  font-size: 12px;
  line-height: 1.5;
}

.pro-align-grid {
  display: grid;
  grid-template-columns: repeat(4, 32px);
  gap: 4px;
  margin-bottom: 12px;
}

.pro-editor-shell .pro-form {
  padding: 12px;
  border: 1px solid var(--pro-line);
  border-radius: 8px;
}

/* List in the split view, shared selection with the drawing. */
.pro-list-tools {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 10px 12px;
  border-bottom: 1px solid var(--pro-line);
  background: var(--scs-surface);
}

.pro-list-tools input {
  width: 100%;
}

.pro-editor-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.pro-editor-table caption {
  padding: 10px 12px 4px;
  color: var(--pro-muted);
  font-size: var(--scs-text-xs, 12px);
  font-weight: 600;
  letter-spacing: .04em;
  text-align: left;
  text-transform: uppercase;
}

.pro-editor-table td,
.pro-editor-table th {
  padding: 6px 12px;
  border-bottom: 1px solid var(--scs-line-2, var(--pro-line));
  text-align: left;
  vertical-align: top;
}

.pro-editor-table th {
  color: var(--pro-muted);
  font-size: 12px;
  font-weight: 600;
}

.pro-editor-table td:first-child {
  color: var(--pro-muted);
  font: 12px/1.5 var(--scs-font-mono, ui-monospace, monospace);
  white-space: nowrap;
}

.pro-editor-table tr[tabindex] {
  cursor: pointer;
}

.pro-editor-table tr[tabindex]:hover {
  background: var(--scs-surface-2);
}

.pro-editor-table tr[tabindex]:focus-visible {
  outline: 2px solid var(--scs-accent);
  outline-offset: -2px;
}

.pro-editor-table tr[aria-selected=true] {
  background: color-mix(in srgb, var(--scs-accent) 14%, transparent);
  box-shadow: inset 3px 0 0 var(--scs-accent);
}

/* Outline: tree of containers, elements and interfaces; layers and minimap. */
.pro-outline-search {
  margin-bottom: 10px;
}

.pro-outline-tree,
.pro-outline-tree ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pro-outline-tree ul {
  padding-left: 14px;
  border-left: 1px solid var(--scs-line-2, var(--pro-line));
  margin-left: 7px;
}

.pro-outline-tree button {
  display: flex;
  gap: 6px;
  align-items: baseline;
  width: 100%;
  min-height: 28px;
  margin: 1px 0;
  padding: 3px 6px;
  border: 0;
  border-radius: var(--scs-radius-s, 6px);
  background: transparent;
  color: var(--scs-ink);
  font-size: 13px;
  text-align: left;
}

.pro-outline-tree button:hover {
  background: var(--scs-surface-2);
}

.pro-outline-tree button[aria-current=true] {
  background: color-mix(in srgb, var(--scs-accent) 14%, transparent);
  color: var(--scs-ink);
  font-weight: 600;
}

.pro-outline-tree button small {
  margin-left: auto;
  color: var(--pro-muted);
  font-size: 11px;
  white-space: nowrap;
}

.pro-outline-group {
  margin: 14px 0 6px;
  color: var(--pro-muted);
  font-size: var(--scs-text-xs, 12px);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.pro-layers label {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 6px 0;
  font-size: 13px;
}

.pro-layers input {
  width: auto;
}

/* Command search and shortcut overview. */
.pro-commands {
  position: absolute;
  z-index: 20;
  top: 56px;
  left: 50%;
  width: min(560px, calc(100% - 32px));
  transform: translateX(-50%);
  border: 1px solid var(--pro-line);
  border-radius: var(--scs-radius-l, 10px);
  background: var(--scs-surface);
  box-shadow: 0 18px 48px #0f223633;
  overflow: hidden;
}

.pro-commands[hidden] {
  display: none;
}

.pro-commands input {
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid var(--pro-line);
  border-radius: 0;
  background: transparent;
  font-size: 15px;
}

.pro-commands input:focus {
  outline: none;
}

.pro-commands ul {
  max-height: 340px;
  margin: 0;
  padding: 6px;
  overflow: auto;
  list-style: none;
}

.pro-commands li {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 7px 10px;
  border-radius: var(--scs-radius-s, 6px);
  font-size: 13px;
  cursor: pointer;
}

.pro-commands li small {
  color: var(--pro-muted);
  font-size: 11px;
}

.pro-commands li[aria-selected=true] {
  background: color-mix(in srgb, var(--scs-accent) 14%, transparent);
}

.pro-commands li[aria-disabled=true] {
  opacity: .45;
  cursor: default;
}

.pro-commands .pro-commands-empty {
  padding: 14px;
  color: var(--pro-muted);
  font-size: 13px;
}

.pro-shortcut-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 4px 24px;
  margin: 0;
}

.pro-shortcut-list div {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid var(--scs-line-2, var(--pro-line));
  font-size: 13px;
}

.pro-shortcut-list dt {
  flex: 1;
}

.pro-shortcut-list dd {
  margin: 0;
}

/* Below 1400px the split view trades the side panel for the list. */
@media (max-width: 1400px) {
  .pro-editor-head strong {
    display: none;
  }

  .pro-editor-shell[data-view=split] .pro-editor-body {
    grid-template-columns: 0 minmax(250px, 32%) minmax(0, 1fr) 260px;
  }

  .pro-editor-shell[data-view=split] .pro-editor-side {
    display: none;
  }
}

@media (max-width: 1250px) {
  .pro-editor-body {
    grid-template-columns: 204px 0 minmax(0, 1fr) 248px;
  }

  .pro-editor-shell[data-view=split] .pro-editor-body {
    grid-template-columns: 0 minmax(220px, 32%) minmax(0, 1fr) 248px;
  }

  .pro-command-button {
    min-width: 0;
  }

  .pro-command-button span {
    display: none;
  }
}

@media (max-width: 860px) {
  .pro-editor-body,
  .pro-editor-shell[data-view=split] .pro-editor-body {
    grid-template-columns: 170px 0 minmax(0, 1fr);
  }

  .pro-editor-properties {
    grid-column: 1 / -1;
    grid-row: 2;
    max-height: 190px;
    border-top: 1px solid var(--pro-line);
    border-left: 0;
  }

  .pro-editor-status {
    max-width: 50%;
  }
}

/* Line tools: compact two-column tool buttons in the toolbar style (4.13.1). */
.pro-line-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
  margin: 6px 0 8px;
}

.pro-editor-properties .pro-line-actions button {
  width: auto;
  max-width: 100%;
  min-width: 0;
  height: auto;
  min-height: 28px;
  margin: 0;
  padding: 4px 8px;
  border: 1px solid var(--pro-line);
  border-radius: var(--scs-radius-s, 6px);
  background: var(--scs-surface);
  color: var(--scs-ink-2);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  box-shadow: none;
}

.pro-editor-properties .pro-line-actions button:hover:not(:disabled) {
  background: var(--scs-surface-2);
  color: var(--scs-ink);
}

/* Two short fields side by side: ends, IF-ID and perspective, anchors. */
.pro-field-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.pro-editor-properties .pro-coupled-note {
  margin: -4px 0 10px;
}

.pro-inspector-section h4 + .pro-line-actions,
#pro-multi-lines h4 {
  margin-top: 10px;
}

/* Panels at the pointer after drawing a line. */
.pro-popover {
  position: fixed;
  z-index: 40;
  display: grid;
  gap: 8px;
  width: 280px;
  padding: 12px;
  border: 1px solid var(--pro-line);
  border-radius: var(--scs-radius-l, 10px);
  background: var(--scs-surface);
  box-shadow: 0 18px 48px #0f223633;
}

.pro-popover .field {
  margin: 0;
}

.pro-popover small {
  color: var(--pro-muted);
  font-size: 12px;
  line-height: 1.4;
}

.pro-quick-directions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.pro-quick-directions button {
  min-width: 0;
  padding: 6px 4px;
  font-size: 12px;
  white-space: normal;
}

.pro-quick-directions button[aria-pressed="true"] {
  border-color: var(--scs-accent, #147f8c);
  background: color-mix(in srgb, var(--scs-accent, #147f8c) 14%, transparent);
  font-weight: 600;
}

.pro-popover-actions {
  display: flex;
  gap: 6px;
}

.pro-empty-results {
  display: grid;
  gap: 4px;
  max-height: 220px;
  overflow: auto;
}

.pro-empty-results button {
  text-align: left;
  white-space: normal;
}

/* 6.7 Schnellerfassung on the canvas: typing field with suggestions. */
.pro-quick-place {
  width: 300px;
}
.pro-quick-place #pro-quick-name {
  width: 100%;
  border: 1px solid var(--scs-focus);
}
.pro-quick-list {
  display: flex;
  flex-direction: column;
  max-height: 240px;
  overflow: auto;
  margin: 6px 0;
}
.pro-quick-list p {
  margin: 4px 2px;
  font-size: 12px;
  color: var(--scs-ink-3);
}
.pro-quick-option {
  text-align: left;
  border: 0;
  border-radius: 6px;
  padding: 6px 8px;
  background: transparent;
  white-space: normal;
}
.pro-quick-option small {
  display: block;
  font-size: 10.5px;
  color: var(--scs-ink-3);
}
.pro-quick-option.is-active {
  background: var(--scs-accent-soft);
}
.pro-quick-option.is-create {
  color: var(--scs-ok);
  font-weight: 600;
}
.pro-quick-warn {
  border: 1px solid var(--scs-warn-line);
  background: var(--scs-warn-soft);
  color: var(--scs-warn) !important;
  border-radius: 6px;
  padding: 6px 8px;
}
.pro-quick-connect {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 12px;
}
