/* Shapes, labels and free arrows. */

/* free arrows */
.link { fill: none; stroke: var(--ink); stroke-width: 2; }
.link-head { fill: var(--ink); stroke: none; }
.link[data-author="agent"] { stroke: var(--agent); }
.link-head[data-author="agent"] { fill: var(--agent); }
.link-label { fill: var(--ink-2); }
.link-label[data-author="agent"] { fill: var(--agent-ink); }

/* shapes drawn on the canvas */
.shape { position: absolute; display: grid; place-items: center; text-align: center; cursor: grab; font-size: 13px; font-weight: 500; line-height: 1.3; }
.shape.rect, .shape.ellipse { background: var(--surface); border: 1.5px solid var(--ink); border-radius: var(--r2); }
.shape.ellipse { border-radius: 50%; }
.shape[data-author="agent"] { color: var(--agent-ink); }
.shape.rect[data-author="agent"], .shape.ellipse[data-author="agent"] { border-color: var(--agent); background: var(--agent-tint); }
.shape.is-selected, .widget.is-selected { outline: 2px solid var(--you); outline-offset: 2px; }
.shape-text { padding: 6px 8px; white-space: pre-wrap; overflow: hidden; max-height: 100%; }
.shape-edit { width: 100%; height: 100%; border: 0; background: transparent; resize: none; text-align: inherit; font: inherit; color: inherit; }
.sticky-body { white-space: pre-wrap; overflow-wrap: anywhere; }

/* notes laid out from a notebook */
.shape.label { place-items: start; text-align: left; font-weight: 400; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r2); }
.shape.label .shape-text { padding: 10px 12px; }
