/* The board's accent: the dark theme's orange, the light theme's #500000 (owner's palette, 2026-11-03). */
:root{--ng-accent:#ff713e;--ng-accent-strong:#ff591e;--ng-accent-rgb:255,113,62}
.light{--ng-accent:#500000;--ng-accent-strong:#500000;--ng-accent-rgb:80,0,0}
.pb-notes-workspace{width:100%;min-width:0;text-shadow:none}
.pb-notes-tabs{display:flex;gap:6px;margin:0 0 12px;border-bottom:1px solid #35465a;padding-bottom:8px}
.pb-notes-workspace button{appearance:none;background:#222831;color:#edf1f7;border:1px solid #3b4b5e;border-radius:5px;padding:8px 12px;font:inherit;cursor:pointer;text-shadow:none!important;box-shadow:none!important;filter:none!important}
.pb-notes-tabs button[aria-selected=true]{border-color:var(--ng-accent-strong,#ff591e);color:var(--ng-accent,#ff713e)}
.pb-notes-workspace button:disabled{opacity:.45;cursor:default}
.pb-notes-workspace button:focus-visible,.pb-note-graph-viewport:focus-visible,.pb-note-graph-edge:focus-visible{outline:2px solid var(--ng-accent,#ff713e);outline-offset:2px}
.pb-notes-workspace [hidden]{display:none!important}
.pb-notes-text-panel .textarea-notes{box-sizing:border-box;width:100%;margin:0;min-height:320px}
.pb-note-graph{--ng-bg:#181c21;--ng-panel:#222831;--ng-text:#edf1f7;--ng-muted:#aab6c5;--ng-border:#3b4b5e;--ng-line:#859aaf;min-width:0;color:var(--ng-text)}
.pb-note-graph-toolbar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:10px}
.pb-note-graph-toolbar>button{width:auto;flex:0 0 auto}
.pb-note-graph-status{font-size:.85em;color:var(--ng-muted)}
.pb-note-graph-layout{display:flex;gap:12px;min-width:0;align-items:stretch}
.pb-note-graph-viewport{position:relative;flex:1;min-width:180px;height:560px;overflow:clip;border:1px solid var(--ng-border);border-radius:6px;background-color:var(--ng-bg);background-image:radial-gradient(var(--ng-border) 1px,transparent 1px);background-size:var(--ng-grid-size,22px) var(--ng-grid-size,22px);background-position:var(--ng-grid-x,0) var(--ng-grid-y,0);isolation:isolate;touch-action:none;cursor:grab}
/* The world has no size or edge: cards and lines are placed by coordinates, the grid is the viewport background. */
.pb-note-graph-world{position:absolute;left:0;top:0;width:0;height:0;transform-origin:0 0}
.pb-note-graph-viewport.panning,.pb-note-graph-viewport.panning *{cursor:grabbing!important}
.pb-note-graph-zoom,.pb-note-graph-board-size{font-size:.85em;color:var(--ng-muted);white-space:nowrap}
.pb-note-graph-error{color:#ffb19d;font-size:.9em;line-height:1.4;margin:0 0 10px}
.pb-note-graph-lines,.pb-note-graph-cards{position:absolute;left:0;top:0;width:0;height:0;overflow:visible}
/* A zero-size svg is not rendered at all; 1 px keeps the overflowing lines painted. */
.pb-note-graph-lines{width:1px;height:1px}
.pb-note-graph-cards{pointer-events:none}
/* The global dice control stays above graph content and below native backdrops (8). */
#dice-switch{z-index:7}
.pb-note-graph-card{position:absolute;display:flex;flex-direction:column;width:220px;min-height:72px;box-sizing:border-box;border:1px solid var(--ng-border);border-radius:7px;background:var(--ng-node-color,var(--ng-panel));color:var(--ng-text);pointer-events:auto;overflow:visible}
.pb-note-graph-card.selected{border-color:var(--ng-accent,#ff713e);box-shadow:0 0 3px rgba(var(--ng-accent-rgb,255,113,62),.11)}
.pb-note-graph-card.related{border-color:#ff9b70;box-shadow:0 0 3px #ff9b7020}
.pb-notes-workspace .pb-note-graph-card-heading{display:block;flex:none;width:100%;min-height:42px;box-sizing:border-box;text-align:left;border:0;border-bottom:1px solid var(--ng-border);border-radius:0;background:transparent;color:inherit;overflow-wrap:anywhere;font-weight:600;touch-action:none;cursor:grab;user-select:none}
.pb-note-graph-card-heading:active{cursor:grabbing}
.pb-note-graph-card-preview{white-space:pre-wrap;overflow-wrap:anywhere;display:block;flex:1;min-height:0;overflow:hidden;margin:10px 12px;font-size:.9em;line-height:1.35}
.pb-notes-workspace .pb-note-resize{position:absolute;z-index:2;display:block;min-width:0;min-height:0;padding:0;margin:0;border:1px solid #8ea6be;border-radius:3px;background:#37536f;opacity:0;touch-action:none}
.pb-note-graph-card:hover .pb-note-resize,.pb-note-graph-card:focus-within .pb-note-resize,.pb-note-graph-card.selected .pb-note-resize{opacity:1}
.pb-note-resize-n,.pb-note-resize-s{width:calc(28px * var(--ng-inverse-zoom,1))!important;height:calc(8px * var(--ng-inverse-zoom,1))!important;left:calc(50% - 14px * var(--ng-inverse-zoom,1));cursor:ns-resize}
.pb-note-resize-n{bottom:calc(100% + 1px + 2px * var(--ng-inverse-zoom,1))}.pb-note-resize-s{top:calc(100% + 1px + 2px * var(--ng-inverse-zoom,1))}
.pb-note-resize-e,.pb-note-resize-w{width:calc(8px * var(--ng-inverse-zoom,1))!important;height:calc(28px * var(--ng-inverse-zoom,1))!important;top:calc(50% - 14px * var(--ng-inverse-zoom,1));cursor:ew-resize}
.pb-note-resize-e{left:calc(100% + 1px + 2px * var(--ng-inverse-zoom,1))}.pb-note-resize-w{right:calc(100% + 1px + 2px * var(--ng-inverse-zoom,1))}
.pb-note-graph-edge line{stroke:var(--ng-edge-color,var(--ng-line));stroke-width:2;vector-effect:non-scaling-stroke}
.pb-note-graph-edge .pb-note-graph-edge-hit{stroke:transparent;stroke-width:16;cursor:pointer}
.pb-note-graph-edge.selected line:not(.pb-note-graph-edge-hit){stroke:var(--ng-edge-color,var(--ng-accent,#ff713e));stroke-width:3}
.pb-note-graph-edge text{fill:var(--ng-text);stroke:var(--ng-bg);stroke-width:5px;paint-order:stroke;stroke-linejoin:round;text-anchor:middle;font:13px sans-serif;cursor:pointer}
.pb-note-graph-hint{position:absolute;top:20px;left:20px;max-width:380px;pointer-events:none;color:var(--ng-muted);line-height:1.5}
.pb-note-graph-editor{flex:0 0 255px;box-sizing:border-box;padding:14px;border:1px solid var(--ng-border);border-radius:6px;background:var(--ng-panel);display:flex;flex-direction:column;gap:10px;max-height:560px;overflow:auto}
.pb-note-graph-editor h3{margin:0 0 4px;font-size:1.1em}
.pb-note-graph-field{display:flex;flex-direction:column;gap:5px;font-size:.9em}
.pb-note-graph-field input,.pb-note-graph-field textarea,.pb-note-graph-field select{box-sizing:border-box;width:100%;min-width:0;margin:0;padding:8px;border:1px solid var(--ng-border);border-radius:4px;background:var(--ng-bg);color:var(--ng-text);font:inherit;text-shadow:none;box-shadow:none}
.pb-note-graph-field textarea{resize:vertical;min-height:100px}
.pb-note-graph-field input[type=color]{height:38px;padding:3px;cursor:pointer}
.pb-note-graph-editor .pb-note-graph-delete{color:#ffad97}
.light .pb-note-graph{--ng-bg:#faf8f0;--ng-panel:#fffdf7;--ng-text:#292523;--ng-muted:#665e55;--ng-border:#b6ada0;--ng-line:#7d6c5e}
.light .pb-notes-workspace button{background:#fffdf7;color:#292523;border-color:#b6ada0}
.light .pb-notes-tabs button[aria-selected=true]{color:#500000;border-color:#500000}
.light .pb-note-graph-editor .pb-note-graph-delete{color:#9d3022}
.light .pb-note-graph-error{color:#9d3022}
@media(max-width:1000px){.pb-note-graph-layout{flex-wrap:wrap}.pb-note-graph-viewport{flex-basis:100%;height:440px}.pb-note-graph-editor{flex:1 1 100%;max-height:none}}

/* Content clips independently; all four resize grips remain outside the card. */
.pb-note-card-surface{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden;border-radius:6px;background:inherit}
.pb-notes-workspace .pb-note-graph-card-heading{min-height:32px;max-height:50%;padding:7px 10px;overflow:hidden}
.pb-note-graph-card-preview{flex:1;margin:5px 10px;min-height:0}
.pb-note-graph-card.has-image .pb-note-graph-card-preview{flex:0 1 auto;max-height:30%;margin:3px 10px}
.pb-note-graph-card.has-image .pb-note-graph-card-preview:empty{display:none}
.pb-note-card-image{display:block;flex:1;width:100%;height:0;min-height:0;object-fit:contain;pointer-events:none;user-select:none}
.pb-note-graph-edge.related line:not(.pb-note-graph-edge-hit){stroke-width:2.5;filter:drop-shadow(0 0 1.5px color-mix(in srgb,var(--ng-edge-color,#ff9b70) 50%,transparent))}
.pb-note-color-picker{display:flex;flex-direction:column;gap:8px;border:1px solid var(--ng-border);border-radius:5px;padding:10px;background:var(--ng-bg)}
.pb-note-color-preview{height:30px;border:1px solid var(--ng-border);border-radius:4px}
.pb-note-color-picker input[type=range]{padding:0;accent-color:var(--ng-accent,#ff713e)}
.pb-note-graph-field>button{text-align:left}

/* The workspace occupies the remaining Details height, without a fixed canvas height. */
.div-notes>.pb-notes-workspace{display:flex;flex:1;flex-direction:column;min-height:0}
.pb-notes-tabs{flex:0 0 auto}
.pb-notes-text-panel{display:flex;flex:1;min-height:0}
.pb-notes-text-panel .textarea-notes{flex:1;min-height:0;height:100%;resize:none}
.pb-note-graph{display:flex;flex:1;flex-direction:column;min-height:0}
.pb-note-graph-toolbar,.pb-note-graph-error{flex:0 0 auto}
.pb-note-graph-layout{flex:1;min-height:0}
.pb-note-graph-viewport{height:auto;min-height:0}
.pb-note-graph-editor{height:auto;max-height:100%;min-height:0}
@media(max-width:1000px){.pb-note-graph-layout{flex-wrap:nowrap}.pb-note-graph-viewport{flex-basis:auto}.pb-note-graph-editor{flex:0 0 220px}}
@media(max-width:650px){.pb-note-graph-layout{flex-direction:column;overflow:auto}.pb-note-graph-viewport{flex:1 0 180px;min-width:0}.pb-note-graph-editor{flex:0 0 auto;max-height:240px}}

/* A photo card has one caption: its title, with no additional body text. */
.pb-note-graph-card.has-image .pb-note-graph-card-preview{display:none}

/* Card bodies, text and photos are one drag surface; grips keep resizing. */
.pb-note-graph-card{cursor:grab;touch-action:none;user-select:none}
.pb-note-graph-card:active{cursor:grabbing}

.pb-notes-workspace .pb-note-graph-card-heading{text-align:var(--ng-title-align,left)}

.pb-notes-workspace .pb-note-graph-card-heading{font-weight:var(--ng-heading-weight,600)}

.pb-notes-workspace .pb-note-graph-card.pb-note-font-custom .pb-note-graph-card-heading{font-family:inherit!important}

/* Explicit card size applies equally to title and body; editor and controls retain their size. */
.pb-note-graph-card[data-pb-font-size] .pb-note-graph-card-preview { font-size:inherit; }

/* Connections in a separate window: the board fills the window; the tab shows a placeholder. */
body.pb-connections-window{margin:0;height:100vh;overflow:hidden;display:flex;flex-direction:column;background:#181c21}
.light body.pb-connections-window{background:#faf8f0}
body.pb-connections-window>.pb-notes-workspace{display:flex;flex:1;flex-direction:column;min-height:0;box-sizing:border-box;padding:10px}
body.pb-connections-window .pb-note-graph-popout{display:none!important}
.pb-note-graph-placeholder{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:24px;border:1px dashed #3b4b5e;border-radius:6px}
.pb-note-graph-placeholder p{margin:0}
.pb-note-graph-placeholder-actions{display:flex;gap:8px}
.pb-note-graph-placeholder button{white-space:nowrap}
.light .pb-note-graph-placeholder{border-color:#b6ada0}.pb-note-graph-window-message{position:fixed;inset:0;z-index:10;display:flex;align-items:center;justify-content:center;padding:24px;box-sizing:border-box;background:rgba(24,28,33,.86);color:#edf1f7;font-size:1.1em;text-align:center}
.light .pb-note-graph-window-message{background:rgba(250,248,240,.88);color:#292523}
/* Part 2: the left button selects with a frame; Space or the middle button pans. */
.pb-note-graph-viewport{cursor:default}
.pb-note-graph-viewport.space-pan,.pb-note-graph-viewport.space-pan *{cursor:grab!important}
.pb-note-graph-marquee{position:absolute;z-index:3;box-sizing:border-box;border:1px dashed var(--ng-accent,#ff713e);background:rgba(var(--ng-accent-rgb,255,113,62),.12);pointer-events:none}
/* Part 2: search, minimap, shortcuts help. */
.pb-note-graph{position:relative}
.pb-note-graph-search{display:inline-flex;align-items:center;gap:6px}
.pb-note-graph-search input{width:180px;box-sizing:border-box}
.pb-note-graph-search-count{color:var(--ng-muted);font-size:.9em;white-space:nowrap}
.pb-dimmed{opacity:.25}
.pb-note-graph-minimap{position:absolute;right:10px;bottom:10px;z-index:4;width:180px;height:180px;box-sizing:content-box;border:1px solid var(--ng-border);border-radius:4px;overflow:hidden;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.35)}
.pb-note-graph-minimap canvas{display:block;width:180px;height:180px}
.pb-note-graph-help{position:absolute;inset:0;z-index:20;display:flex;align-items:center;justify-content:center;padding:16px;box-sizing:border-box;background:rgba(0,0,0,.45)}
.pb-note-graph-help-panel{max-width:560px;max-height:100%;overflow:auto;box-sizing:border-box;padding:16px 20px;border:1px solid var(--ng-border);border-radius:8px;background:var(--ng-panel);color:var(--ng-text)}
.pb-note-graph-help h3{margin:0}
.pb-note-graph-help dl{display:grid;grid-template-columns:auto 1fr;gap:6px 16px;margin:12px 0 14px}
.pb-note-graph-help dt{white-space:nowrap;font-weight:600}
.pb-note-graph-help dd{margin:0}
/* Minors: compact toolbar so it fits one line. */
.pb-note-graph-toolbar{gap:4px}
.pb-note-graph-search input{width:140px}.pb-note-graph-toolbar{position:relative}
.pb-note-graph-search{position:absolute;top:calc(100% + 4px);z-index:6;padding:6px 8px;border:1px solid var(--ng-border);border-radius:6px;background:var(--ng-panel);box-shadow:0 4px 12px rgba(0,0,0,.35)}
/* Part 3: visual text editor and formatted card text. */
.pb-note-rich-toolbar{display:flex;flex-wrap:wrap;gap:3px;margin:2px 0 4px}
.pb-notes-workspace .pb-note-rich-toolbar button{min-width:28px;padding:3px 6px;line-height:1.2}
.pb-notes-workspace .pb-note-rich-bold{font-weight:700}
.pb-notes-workspace .pb-note-rich-italic{font-style:italic}
.pb-notes-workspace .pb-note-rich-strike{text-decoration:line-through}
.pb-note-rich-editor{min-height:120px;max-height:320px;overflow:auto;box-sizing:border-box;padding:8px 10px;border:1px solid var(--ng-border);border-radius:5px;background:var(--ng-bg);color:var(--ng-text);line-height:1.4;overflow-wrap:anywhere;cursor:text}
.pb-note-rich-editor:focus{outline:2px solid var(--ng-accent,#ff713e);outline-offset:1px}
.pb-note-rich-editor p,.pb-rich p{margin:0}
.pb-note-rich-editor h3,.pb-rich h3{margin:4px 0 2px;font-size:1.12em;line-height:1.25}
.pb-note-rich-editor ul,.pb-note-rich-editor ol,.pb-rich ul,.pb-rich ol{margin:0;padding-left:1.4em}
.pb-note-rich-editor .pb-task-list,.pb-rich .pb-task-list{list-style:none;padding-left:.2em}
.pb-task-list>li>input[type=checkbox]{margin:0 .4em 0 0;vertical-align:-2px;cursor:pointer}
.pb-rich a,.pb-note-rich-editor a{color:#8fbcff;text-decoration:underline}
.light .pb-rich a,.light .pb-note-rich-editor a{color:#1d5fb8}
.pb-note-graph-card-preview.pb-rich{white-space:normal}
/* Part 3 rework: toolbar over the board, settings window, card buttons, typing in the card. */
.pb-note-graph-toolbar{position:absolute;left:8px;top:8px;z-index:7;display:flex;flex-wrap:wrap;align-items:center;gap:4px;max-width:calc(100% - 16px);box-sizing:border-box;padding:4px;border:1px solid var(--ng-border);border-radius:7px;background:var(--ng-panel);box-shadow:0 2px 10px rgba(0,0,0,.3);opacity:.45;transition:opacity .15s}
.pb-note-graph-toolbar:hover,.pb-note-graph-toolbar:focus-within{opacity:1}
.pb-note-graph-toolbar.collapsed>:not(.pb-note-graph-toolbar-toggle){display:none!important}
.pb-note-graph-hint{top:64px}
.pb-note-graph-overlay{position:absolute;inset:0;z-index:6;pointer-events:none;overflow:hidden}
.pb-note-graph-overlay>*{pointer-events:auto}
.pb-notes-workspace .pb-note-graph-gear,.pb-notes-workspace .pb-note-graph-link{position:absolute;width:26px;height:26px;min-width:0;padding:0;border-radius:50%;line-height:24px;font-size:15px;text-align:center;box-shadow:0 1px 5px rgba(0,0,0,.4)}
.pb-note-graph-popover{position:absolute;z-index:8;width:270px;max-height:min(60%,440px);overflow:auto;box-sizing:border-box;padding:12px;border:1px solid var(--ng-border);border-radius:8px;background:var(--ng-panel);color:var(--ng-text);display:flex;flex-direction:column;gap:9px;box-shadow:0 6px 18px rgba(0,0,0,.45)}
.pb-note-graph-popover h3{margin:0;font-size:1em}
.pb-note-rich-toolbar{position:absolute;z-index:8;margin:0;padding:3px;border:1px solid var(--ng-border);border-radius:6px;background:var(--ng-panel);box-shadow:0 2px 8px rgba(0,0,0,.35)}
.pb-notes-workspace .pb-note-graph-title-input{display:block;width:100%;box-sizing:border-box;min-height:32px;padding:6px 9px;border:0;border-bottom:1px solid var(--ng-border);background:var(--ng-bg);color:inherit;font:inherit;font-weight:600}
.pb-note-graph-card .pb-note-card-text-input{flex:1;min-height:0;max-height:none;margin:4px 6px;padding:3px 4px;border:0;border-radius:4px;background:var(--ng-bg);color:inherit;font:inherit;font-size:.9em;resize:none;overflow:auto;cursor:text}
.pb-notes-workspace .pb-note-graph-label-input{position:absolute;width:160px;padding:3px 6px;border:1px solid var(--ng-accent,#ff713e);border-radius:4px;background:var(--ng-panel);color:var(--ng-text);font:inherit}
.pb-note-graph-connect{position:absolute;inset:0;width:100%;height:100%;pointer-events:none!important}
.pb-note-graph-connect-line{stroke:var(--ng-accent,#ff713e);stroke-width:2;stroke-dasharray:6 5}
.pb-note-graph-viewport.connecting,.pb-note-graph-viewport.connecting *{cursor:copy!important}/* Docked toolbar: bottom (default) and top are horizontal and centred, left and right are vertical and centred. */
.pb-note-graph-toolbar{left:auto;top:auto}
.pb-note-graph-toolbar.dock-bottom{left:50%;bottom:8px;transform:translateX(-50%)}
.pb-note-graph-toolbar.dock-top{left:50%;top:8px;transform:translateX(-50%)}
.pb-note-graph-toolbar.dock-left,.pb-note-graph-toolbar.dock-right{top:50%;transform:translateY(-50%);flex-direction:column;align-items:stretch;max-width:none;max-height:calc(100% - 16px)}
.pb-note-graph-toolbar.dock-left{left:8px}
.pb-note-graph-toolbar.dock-right{right:8px}
.pb-note-graph-toolbar.dragging{right:auto;bottom:auto;transform:none;opacity:1;transition:none}
.pb-notes-workspace .pb-note-graph-toolbar-grip{cursor:grab;padding-left:6px;padding-right:6px;touch-action:none}
.pb-note-graph-toolbar.dragging .pb-note-graph-toolbar-grip{cursor:grabbing}
.pb-note-graph-toolbar.dock-bottom .pb-note-graph-search{top:auto;bottom:calc(100% + 4px)}
.pb-note-graph-toolbar.dock-left .pb-note-graph-search{left:calc(100% + 4px)}
.pb-note-graph-toolbar.dock-right .pb-note-graph-search{left:auto;right:calc(100% + 4px)}
.pb-note-graph-hint{top:20px}
.pb-note-graph-viewport:has(.pb-note-graph-toolbar.dock-top) .pb-note-graph-hint{top:64px}.pb-note-graph-toolbar.dock-bottom,.pb-note-graph-toolbar.dock-top{left:0;right:0;margin-inline:auto;width:max-content;transform:none}
.pb-note-graph-toolbar.dock-left,.pb-note-graph-toolbar.dock-right{top:0;bottom:0;margin-block:auto;height:max-content;transform:none}
.pb-note-graph-toolbar.dragging{margin:0}.pb-note-graph-overlay{z-index:8}
.pb-note-rich-toolbar{width:max-content;max-width:calc(100% - 16px)}.pb-notes-workspace .pb-note-rich-toolbar button{display:inline-block;width:auto;flex:none}

/* Part 3: tags on cards, in the settings window and in the filter. */
.pb-note-card-tags{display:flex;flex:none;gap:3px;overflow:hidden;margin:5px 8px 0}
.pb-tag{display:inline-flex;align-items:center;gap:2px;flex:none;padding:1px 7px;border-radius:9px;color:#fff;font-size:.72em;line-height:1.5;white-space:nowrap;text-shadow:none}
.pb-tag-more{background:var(--ng-border)}
.pb-note-tag-list{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:4px}
.pb-notes-workspace .pb-tag-remove{min-width:0;padding:0 2px;border:0;background:transparent;color:#fff;font-size:1.1em;line-height:1;cursor:pointer}
.pb-note-graph-search.pb-note-graph-tag-filter{flex-direction:column;align-items:stretch;max-height:260px;overflow:auto;min-width:180px}
.pb-note-graph-tag-filter input{width:auto}
.pb-tag-filter-item{display:flex;align-items:center;gap:6px;cursor:pointer}
.pb-note-graph-card.pb-tag-dimmed{opacity:.25}.pb-tag-count{color:var(--ng-muted);font-size:.9em;white-space:nowrap}

/* Part 3: icons, borders, fields. */
.pb-note-card-icon{width:1.15em;height:1.15em;flex:none;margin-right:5px;vertical-align:-.22em;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.pb-note-icon-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:4px;margin-bottom:4px}
.pb-notes-workspace .pb-note-icon-choice{display:flex;align-items:center;justify-content:center;min-width:0;padding:5px 0}
.pb-notes-workspace .pb-note-icon-choice .pb-note-card-icon{margin:0}
.pb-notes-workspace .pb-note-icon-choice[aria-pressed=true]{border-color:var(--ng-accent,#ff713e);color:var(--ng-accent,#ff713e)}
.pb-note-border-field{display:flex;flex-direction:column;gap:6px}
.pb-note-field-rows{display:flex;flex-direction:column;gap:4px;margin-bottom:4px}
.pb-note-field-row{display:grid;grid-template-columns:1fr 1.3fr auto auto auto;gap:3px}
.pb-note-field-row input{min-width:0;box-sizing:border-box;padding:5px;border:1px solid var(--ng-border);border-radius:4px;background:var(--ng-bg);color:var(--ng-text);font:inherit}
.pb-notes-workspace .pb-note-field-move{min-width:0;padding:2px 6px}
.pb-note-card-fields{flex:none;margin:2px 10px 6px;border-collapse:collapse;font-size:.78em;line-height:1.35}
.pb-note-card-fields th{padding:0 8px 0 0;color:var(--ng-muted);font-weight:600;text-align:left;white-space:nowrap;vertical-align:top}
.pb-note-card-fields td{padding:0;overflow-wrap:anywhere}/* The toolbar stays above the card buttons; the settings window is placed clear of the toolbar. */
.pb-note-graph-overlay{z-index:6}
/* The text area keeps at least one line so it can always be opened for typing; the fields table gives way. */
.pb-note-graph-card-preview{min-height:1.4em}
.pb-note-card-fields{display:block;flex:0 1 auto;min-height:0;overflow:hidden}

/* Part 3.1: icon toolbar, the tabbed settings window. */
.pb-note-tool-icon{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.pb-notes-workspace .pb-note-graph-toolbar>button{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;min-width:0;padding:0;border-color:transparent;background:transparent}
.pb-notes-workspace .pb-note-graph-toolbar>button:hover:not(:disabled),.pb-notes-workspace .pb-note-graph-toolbar>button[aria-pressed=true]{background:var(--ng-bg);border-color:var(--ng-border)}
.pb-notes-workspace .pb-note-graph-toolbar>button[aria-pressed=true]{color:var(--ng-accent,#ff713e)}
.pb-note-graph-toolbar.dock-left>button,.pb-note-graph-toolbar.dock-right>button{align-self:center}
.pb-note-graph-popover{width:300px;max-height:calc(100% - 16px);padding:0;gap:0;overflow:hidden;border-radius:10px;box-shadow:0 10px 30px rgba(0,0,0,.5)}
.pb-note-popover-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 10px 6px 14px}
.pb-note-popover-head h3{margin:0;font-size:.95em;font-weight:600;color:var(--ng-muted);text-transform:uppercase;letter-spacing:.04em}
.pb-notes-workspace .pb-note-popover-close{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;min-width:0;padding:0;border-color:transparent;background:transparent;border-radius:6px}
.pb-notes-workspace .pb-note-popover-close:hover{background:var(--ng-bg)}
.pb-note-popover-close .pb-note-tool-icon{width:16px;height:16px}
.pb-note-popover-tabs{display:flex;gap:2px;margin:0 10px;padding:3px;border-radius:8px;background:var(--ng-bg)}
.pb-notes-workspace .pb-note-popover-tab{flex:1;min-width:0;padding:6px 4px;border:0;border-radius:6px;background:transparent;color:var(--ng-muted);font-size:.88em}
.pb-notes-workspace .pb-note-popover-tab[aria-selected=true]{background:var(--ng-panel);color:var(--ng-text);box-shadow:0 1px 3px rgba(0,0,0,.35)!important}
/* The open tab scrolls; the header, tabs and delete button stay in view. */
.pb-note-popover-panel{display:flex;flex-direction:column;gap:10px;flex:1 1 auto;min-height:0;overflow:auto;padding:12px 14px}
.pb-note-popover-head,.pb-note-popover-tabs,.pb-note-graph-popover>.pb-note-graph-delete{flex:none}
.pb-note-graph-popover>.pb-note-graph-delete{margin:0 14px 12px;border-color:transparent;background:transparent;color:#ffad97;text-align:left;padding:6px 4px}
.pb-notes-workspace .pb-note-graph-popover>.pb-note-graph-delete:hover{background:rgba(255,120,90,.12)}
.pb-note-popover-section{display:flex;flex-direction:column;gap:8px}
.pb-note-popover-section+.pb-note-popover-section{padding-top:10px;border-top:1px solid var(--ng-border)}
.pb-note-popover-section h4{margin:0;font-size:.8em;font-weight:600;color:var(--ng-muted);text-transform:uppercase;letter-spacing:.04em}
.pb-note-graph-popover .pb-note-graph-field{gap:4px;font-size:.86em}
.pb-note-graph-popover .pb-note-graph-field>span{color:var(--ng-muted)}
.pb-note-graph-popover .pb-note-graph-field input,.pb-note-graph-popover .pb-note-graph-field select{padding:6px 8px;border-radius:6px}
.pb-note-align-group{display:flex;gap:2px;padding:3px;border-radius:8px;background:var(--ng-bg);align-self:flex-start}
.pb-notes-workspace .pb-note-align-group button{display:inline-flex;align-items:center;justify-content:center;width:34px;height:28px;min-width:0;padding:0;border:0;border-radius:6px;background:transparent;color:var(--ng-muted)}
.pb-notes-workspace .pb-note-align-group button[aria-pressed=true]{background:var(--ng-panel);color:var(--ng-accent,#ff713e);box-shadow:0 1px 3px rgba(0,0,0,.35)!important}
.pb-note-field-row{display:grid;grid-template-columns:1fr 1fr auto auto auto;gap:4px;align-items:center}
.pb-note-field-row input{min-width:0;box-sizing:border-box;padding:5px 7px;border:1px solid var(--ng-border);border-radius:6px;background:var(--ng-bg);color:var(--ng-text);font:inherit}
.light .pb-note-graph-popover>.pb-note-graph-delete{color:#9d3022}
/* A photo card: the fields table sits under the photo and keeps its rows visible. */
.pb-note-graph-card.has-image .pb-note-card-fields{flex:none;max-height:45%;overflow:hidden}
/* Part 3.2: lower title band, card parts, the parts list, ready colours, text colour buttons. */
.pb-notes-workspace .pb-note-graph-card-heading,.pb-notes-workspace .pb-note-graph-title-input{min-height:0;padding-top:5px;padding-bottom:5px;line-height:1.25}
.pb-note-card-part.pb-note-graph-card-preview{flex:0 1 auto;min-height:1.4em;margin:4px 10px}
.pb-note-card-part.pb-note-part-grow,.pb-note-graph-card .pb-note-card-text-input.pb-note-part-grow{flex:1 1 auto}
.pb-note-graph-card .pb-note-card-text-input{flex:0 1 auto;min-height:2.6em}
.pb-note-card-image.pb-note-card-part{flex:1 1 0;height:auto;min-height:24px}
.pb-note-parts-field>span{color:var(--ng-muted)}
.pb-note-part-rows{display:flex;flex-direction:column;gap:4px}
.pb-note-part-row{display:grid;grid-template-columns:1fr auto auto auto;gap:3px;align-items:center}
.pb-notes-workspace .pb-note-part-pick{display:flex;flex-direction:column;align-items:flex-start;min-width:0;padding:5px 8px;text-align:left;border-radius:6px}
.pb-notes-workspace .pb-note-part-pick[aria-pressed=true]{border-color:var(--ng-accent,#ff713e)}
.pb-note-part-kind{font-size:.85em;font-weight:600}
.pb-note-part-preview{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.8em;color:var(--ng-muted)}
.pb-notes-workspace .pb-note-part-move{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;min-width:0;padding:0;border-radius:6px}
.pb-note-part-move .pb-note-tool-icon{width:14px;height:14px}
.pb-note-part-add{display:flex;gap:6px;margin-top:6px}
.pb-notes-workspace .pb-note-part-add button{flex:1;padding:6px}
.pb-note-color-presets{display:grid;grid-template-columns:repeat(6,1fr);gap:5px}
.pb-notes-workspace .pb-note-color-preset{width:100%;height:24px;min-width:0;padding:0;border:1px solid var(--ng-border);border-radius:5px}
.pb-notes-workspace .pb-note-color-preset:hover{outline:2px solid var(--ng-accent,#ff713e);outline-offset:1px}
.pb-notes-workspace .pb-note-text-color{display:flex;align-items:center;gap:8px;text-align:left}
.pb-note-text-color::before{content:'';flex:none;width:14px;height:14px;border:1px solid var(--ng-border);border-radius:3px;background:var(--pb-swatch,transparent)}
/* Resize grips stand outside the border whatever its width, with a larger invisible hit area. */
.pb-notes-workspace .pb-note-resize{border:1px solid #8ea6be;border-radius:4px;background:#37536f;box-shadow:0 1px 3px rgba(0,0,0,.4)!important}
.pb-note-resize-n,.pb-note-resize-s{width:calc(32px * var(--ng-inverse-zoom,1))!important;height:calc(9px * var(--ng-inverse-zoom,1))!important;left:calc(50% - 16px * var(--ng-inverse-zoom,1))}
.pb-note-resize-n{bottom:calc(100% + var(--ng-border-w,1px) + 3px * var(--ng-inverse-zoom,1))}
.pb-note-resize-s{top:calc(100% + var(--ng-border-w,1px) + 3px * var(--ng-inverse-zoom,1))}
.pb-note-resize-e,.pb-note-resize-w{width:calc(9px * var(--ng-inverse-zoom,1))!important;height:calc(32px * var(--ng-inverse-zoom,1))!important;top:calc(50% - 16px * var(--ng-inverse-zoom,1))}
.pb-note-resize-e{left:calc(100% + var(--ng-border-w,1px) + 3px * var(--ng-inverse-zoom,1))}
.pb-note-resize-w{right:calc(100% + var(--ng-border-w,1px) + 3px * var(--ng-inverse-zoom,1))}
.pb-notes-workspace .pb-note-resize::after{content:'';position:absolute;inset:calc(-6px * var(--ng-inverse-zoom,1))}
/* Card and connection buttons share the grips' look. */
.pb-notes-workspace .pb-note-graph-gear,.pb-notes-workspace .pb-note-graph-link{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border:1px solid #8ea6be;border-radius:6px;background:#37536f;color:#e6eef7;line-height:1;box-shadow:0 1px 3px rgba(0,0,0,.4)!important}
.pb-notes-workspace .pb-note-graph-gear:hover,.pb-notes-workspace .pb-note-graph-link:hover{background:#456a8e}
.pb-note-graph-gear .pb-note-tool-icon,.pb-note-graph-link .pb-note-tool-icon{width:15px;height:15px}
/* Review fixes: the grips and card buttons keep their look in the light theme; hidden grips catch nothing. */
.pb-notes-workspace .pb-note-graph-card .pb-note-resize{border:1px solid #8ea6be;background:#37536f;color:#e6eef7}
.pb-notes-workspace .pb-note-graph-overlay .pb-note-graph-gear,.pb-notes-workspace .pb-note-graph-overlay .pb-note-graph-link{border:1px solid #8ea6be;background:#37536f;color:#e6eef7}
.pb-notes-workspace .pb-note-graph-overlay .pb-note-graph-gear:hover,.pb-notes-workspace .pb-note-graph-overlay .pb-note-graph-link:hover{background:#456a8e;color:#fff}
.pb-note-graph-card:not(:hover):not(.selected):not(:focus-within) .pb-note-resize{pointer-events:none}
.pb-notes-workspace .pb-note-resize::after{inset:calc(-4px * var(--ng-inverse-zoom,1))}
/* Part 3.4: divider parts, a card without a title band, an empty title keeps its line. */
.pb-note-card-divider{flex:none;height:0;margin:4px 0;border-top:1px solid var(--ng-border)}
.pb-notes-workspace .pb-note-graph-card-heading{min-height:calc(1.25em + 10px)}
.pb-note-check{display:flex;align-items:center;gap:8px;font-size:.88em;cursor:pointer}
.pb-note-check input{width:auto;margin:0}
/* Part 3.5: typing right on the card, one-time hints, the format bar grip. */
.pb-notes-workspace .pb-note-graph-card .pb-note-card-text-input,.pb-notes-workspace .pb-note-graph-card .pb-note-card-text-input:focus{margin:4px 10px;padding:0;border:0;border-radius:0;background:transparent;color:inherit;outline:none;box-shadow:none;font-size:.9em;line-height:1.35}
.pb-notes-workspace .pb-note-graph-title-input,.pb-notes-workspace .pb-note-graph-title-input:focus{background:transparent;outline:none;box-shadow:none}
.pb-note-part-hint{opacity:.45;font-style:italic;font-weight:400;pointer-events:none}
.pb-notes-workspace .pb-note-rich-toolbar .pb-note-rich-grip{cursor:grab;touch-action:none;display:inline-flex;align-items:center;justify-content:center}
.pb-note-rich-grip .pb-note-tool-icon{width:14px;height:14px}
/* Part 3.7: a task line shows only its box, also while typing (the editor's list has no task-list class yet). */
.pb-note-rich-editor li[data-task="1"]{list-style:none}
.pb-note-rich-editor ul:has(> li[data-task="1"]){padding-left:.2em}

/* «Связи» in real time (08.11): the sync's state in the toolbar, «Обновить сейчас», another device's edits. */
.pb-note-graph-conflict{display:flex;align-items:center;gap:8px;margin:0 0 8px;padding:6px 10px;border:1px solid var(--ng-border);border-radius:6px;background:var(--ng-panel);color:var(--ng-text)}
.pb-note-graph-conflict>span{flex:1;min-width:0}
.pb-note-graph-conflict button{white-space:nowrap;flex:0 0 auto}
.pb-note-graph-ask{display:flex;align-items:center;gap:8px;margin:0 0 8px;padding:6px 10px;border:1px solid var(--ng-accent,#ff713e);border-radius:6px;background:var(--ng-panel);color:var(--ng-text)}
.pb-note-graph-ask>span{flex:1;min-width:0}
.pb-note-graph-ask button{white-space:nowrap;flex:0 0 auto}
/* 14.11: the site's global button rule (width:100%; display:block) stretched the buttons of both bars over the whole line and squeezed the text into a
   column of one word per row. The buttons keep their own width; on a narrow screen the line wraps (text above, buttons below). */
.pb-note-graph-ask,.pb-note-graph-conflict{flex-wrap:wrap}
.pb-note-graph-ask>span,.pb-note-graph-conflict>span{flex:1 1 12em}
.pb-note-graph-ask button,.pb-note-graph-conflict button{width:auto;display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:6px 14px}
.pb-note-graph-sync-hint{position:absolute;left:12px;bottom:8px;z-index:6;max-width:calc(100% - 150px);font-size:.78em;line-height:1.3;color:var(--ng-muted);opacity:0;transition:opacity .5s;pointer-events:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pb-note-graph-sync-hint.shown{opacity:.9}
.pb-note-graph-toolbar.dock-bottom~.pb-note-graph-sync-hint{top:8px;bottom:auto}
/* A line taken out of a list comes wrapped by the browser in a span with the item's computed look (font-size .9em ...): shown in the editor's own size. */
.pb-note-rich-editor span[style]{font-size:inherit!important}
