/* The board beside the note (notes-pane.js, Notes, simpler, Phase B; approved try C,
   17 Nov 2026). Scoped to the note view's split (#view-note.nn-split) or its own nn- names. */

/* ── laptop: note | grip | boards. --nn-w is the dragged width of the note column;
   --nn-top / --nn-h are measured by notes-pane.js so the grip and the pane stick at the
   top they start at and end at the bottom of the window. ── */
#view-note.nn.nn-split:not(.nn-phone) .nt-page{display:grid;grid-template-columns:var(--nn-w,minmax(380px,1fr)) 14px minmax(320px,1.05fr);
  align-items:start;max-width:none;margin:0}
#view-note.nn.nn-split:not(.nn-phone) #noteBody{grid-column:1;min-width:0}

.nn-grip{grid-column:2;position:sticky;top:var(--nn-top,0);height:var(--nn-h,70vh);display:flex;align-items:center;justify-content:center;
  cursor:col-resize;touch-action:none;z-index:2;outline:none}
.nn-grip::before{content:"";position:absolute;top:0;bottom:0;left:6px;right:6px;background:var(--rule);transition:background .15s}
.nn-grip i{position:relative;width:12px;height:56px;border-radius:6px;background:var(--surface);
  box-shadow:0 0 0 1px var(--rule-strong,var(--ink-faint)),0 1px 3px rgba(0,0,0,.08);
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;transition:height .18s,box-shadow .15s}
.nn-grip i b{width:3px;height:3px;border-radius:50%;background:var(--ink-soft);transition:background .15s}
.nn-grip:hover::before,.nn-grip.on::before,.nn-grip:focus-visible::before{background:var(--accent)}
.nn-grip:hover i,.nn-grip.on i,.nn-grip:focus-visible i{height:72px;box-shadow:0 0 0 1.5px var(--accent),0 2px 6px rgba(0,0,0,.12)}
.nn-grip:hover i b,.nn-grip.on i b,.nn-grip:focus-visible i b{background:var(--accent)}
body.nn-dragging,body.nn-dragging *{cursor:col-resize!important;user-select:none!important}
body.nn-dragging #nnFrame{pointer-events:none}

.nn-pane{grid-column:3;position:sticky;top:var(--nn-top,0);height:var(--nn-h,70vh);min-width:0;display:flex;flex-direction:column;
  background:var(--surface);overflow:hidden}
.nn-pbar{flex:none;display:flex;align-items:center;gap:2px;height:52px;padding:0 8px 0 12px;border-bottom:1px solid var(--rule)}
.nn-ptabs{flex:1;min-width:0;display:flex;align-items:center;gap:4px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}
.nn-ptabs::-webkit-scrollbar{display:none}
.nn-ptab{flex:none;display:inline-flex;align-items:center;max-width:220px;height:34px;padding:0 14px;border:0;border-radius:999px;background:none;cursor:pointer;
  font-family:'Inter',sans-serif;font-size:14px;font-weight:500;color:var(--ink-soft);white-space:nowrap}
.nn-ptab>span{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis}
.nn-ptab:hover{background:color-mix(in srgb,var(--ink) 6%,transparent);color:var(--ink)}
.nn-ptab.on{background:var(--field);color:var(--ink);font-weight:600}
.nn-ptab-only{cursor:default}
.nn-pbtn{flex:none;width:36px;height:36px;border:0;border-radius:8px;background:none;cursor:pointer;color:var(--ink-soft);display:grid;place-items:center;padding:0}
.nn-pbtn[hidden]{display:none}   /* + on a note she only reads (fix round, 17 Nov 2026) */
.nn-pbtn .nn-ic{width:18px;height:18px}
.nn-pbtn:hover{background:color-mix(in srgb,var(--ink) 6%,transparent);color:var(--ink)}
.nn-pbtn.on{color:var(--ink)}
.nn-pbtn[disabled]{opacity:.4;cursor:default}
.nn-pbtn[disabled]:hover{background:none;color:var(--ink-soft)}
.nn-pbd{position:relative;flex:1;min-height:0}
#nnFrame{position:absolute;inset:0;width:100%;height:100%;border:0;display:block;background:#e7e5dd}
.nn-pempty{position:absolute;inset:0;display:grid;place-content:center;gap:14px;text-align:center;font-family:'Inter',sans-serif;font-size:15px;color:var(--ink-soft)}
.nn-pempty-a{display:flex;gap:8px;justify-content:center}
.nn-psketch{padding:16px;place-content:center;justify-items:center}
.nn-psketch img{display:block;max-width:100%;max-height:calc(100% - 40px);object-fit:contain;border-radius:8px;border:1px solid var(--line, rgba(0,0,0,.12));background:#fff}

/* full screen: the same frame over everything but the app's own pop-ups (.ov is 1000) */
.nn-pane.nn-full{position:fixed;inset:0;z-index:950;height:auto;top:0}

/* ── phone: the board under the note, no grip; a chip per board jumps down to it ── */
#view-note.nn.nn-phone .nn-grip{display:none}
#view-note.nn.nn-phone .nn-pane{position:relative;top:auto;height:460px;margin-top:8px;border-top:1px solid var(--rule)}
#view-note.nn.nn-phone .nn-pane.nn-full{position:fixed;top:0;bottom:0;height:auto;margin:0;border:0}
.nn-lk-board{--edge:#2b6cb0}
