/* Notes in a project (public/notes.js): the page list on the left, the page on the right; one column on phones. Theme tokens only. */
.nt { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 0; min-height: 60vh; border: 1px solid var(--line); background: var(--paper); position: relative; }
.nt-side { border-right: 1px solid var(--line); padding: 14px 10px 18px; background: var(--wash); min-width: 0; position: sticky; top: var(--hdr, 64px); align-self: start; max-height: calc(100vh - var(--hdr, 64px)); overflow: auto; overscroll-behavior: contain; }
.nt-sh { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 4px 10px; }
.nt-sh h3 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); font-weight: 600; }
.nt-sh .btn svg { margin-right: 4px; }
.nt-find { display: flex; align-items: center; gap: 6px; margin: 0 4px 8px; padding: 0 8px; border: 1px solid var(--line); background: var(--paper); color: var(--mute); }
.nt-find input { border: 0; background: transparent; padding: 7px 0; flex: 1; min-width: 0; font: inherit; font-size: 13px; color: var(--ink); outline: none; }
.nt-tree, .nt-tree ul { list-style: none; margin: 0; padding: 0; }
.nt-row { display: flex; align-items: center; gap: 4px; padding: 5px 6px 5px calc(4px + var(--d, 0) * 16px); border-radius: 3px; cursor: pointer; color: var(--ink-2); font-size: 14px; min-height: 32px; position: relative; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; outline: none; }
.nt-row:hover, .nt-row:focus-visible { background: var(--paper); color: var(--ink); }
.nt-row:focus-visible { box-shadow: inset 0 0 0 2px var(--gold); }
.nt-row.on { background: var(--paper); color: var(--ink); font-weight: 500; box-shadow: inset 3px 0 0 var(--gold); }
.nt-row.dragging { opacity: .4; }
.nt-row.lift { background: var(--paper); box-shadow: 0 0 0 2px var(--gold); }
.nt-row.drop-in { background: var(--note-yellow); color: var(--ink); }
.nt-row.drop-before::before, .nt-row.drop-after::after { content: ''; position: absolute; left: calc(8px + var(--d, 0) * 16px); right: 4px; height: 2px; background: var(--gold); }
.nt-row.drop-before::before { top: -1px; } .nt-row.drop-after::after { bottom: -1px; }
.nt-fold { width: 20px; height: 20px; display: grid; place-items: center; border: 0; background: none; color: var(--mute); padding: 0; border-radius: 3px; flex: none; cursor: pointer; }
.nt-fold.nil { cursor: default; }
.nt-fold svg { transition: transform .15s var(--ease); }
.nt-fold.open svg { transform: rotate(90deg); }
.nt-fold:hover { background: var(--wash); color: var(--ink); }
.nt-ico { width: 20px; text-align: center; flex: none; font-size: 15px; line-height: 1; color: var(--mute); display: grid; place-items: center; }
.nt-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-path { color: var(--mute); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40%; }
.nt-lock { color: var(--mute); display: grid; flex: none; }
.nt-acts { display: none; gap: 2px; flex: none; }
.nt-acts button { width: 24px; height: 24px; display: grid; place-items: center; border: 0; background: none; color: var(--mute); border-radius: 3px; cursor: pointer; padding: 0; }
.nt-acts button:hover { background: var(--wash); color: var(--ink); }
.nt-row:hover .nt-acts, .nt-row:focus-within .nt-acts, .nt-row.on .nt-acts { display: flex; }
.nt-row:hover .nt-lock, .nt-row.on .nt-lock { display: none; }
.nt-addrow { display: flex; align-items: center; gap: 6px; width: 100%; margin-top: 6px; padding: 7px 10px; border: 0; background: none; color: var(--mute); font: inherit; font-size: 13px; cursor: pointer; border-radius: 3px; }
.nt-addrow:hover { background: var(--paper); color: var(--ink); }
.nt-empty, .nt-none { color: var(--mute); font-size: 13px; line-height: 1.5; padding: 6px 6px; }

.nt-main { min-width: 0; position: relative; }
.nt-load, .nt-blank { padding: 48px 24px; color: var(--mute); text-align: center; }
.nt-pagewrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); }
.nt-top { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); min-height: 48px; position: sticky; top: var(--hdr, 64px); background: var(--paper); z-index: 3; }
.nt-back { display: none; align-items: center; gap: 4px; border: 0; background: none; color: var(--ink-2); font: inherit; font-size: 14px; padding: 6px 6px 6px 0; cursor: pointer; }
.nt-crumbs { display: flex; align-items: center; gap: 4px; min-width: 0; flex: 1; font-size: 13px; color: var(--mute); overflow: hidden; white-space: nowrap; }
.nt-crumbs button { border: 0; background: none; color: var(--mute); font: inherit; padding: 2px 4px; border-radius: 3px; cursor: pointer; max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.nt-crumbs button:hover { background: var(--wash); color: var(--ink); }
.nt-crumbs b { color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.nt-pres { display: flex; flex: none; }
.nt-pres i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 600; background: var(--c, var(--ink)); color: var(--on-ink); margin-left: -6px; border: 2px solid var(--paper); }
.nt-pres i:first-child { margin-left: 0; }
.nt-pres i.more { background: var(--wash); color: var(--ink); }
.nt-edited { font-size: 12px; color: var(--mute); white-space: nowrap; flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* the bar never makes the page wider than the window (owner's screenshot, 20 Oct 2026: "Diubah 31 menit lalu oleh kamu" and Layar penuh pushed it 82 px out) */
.nt-top { overflow-x: clip; overflow-clip-margin: 4px; }
@keyframes nt-blink { 50% { opacity: 0; } }
/* saving, saved, not saved (13 Oct 2026): one pill, said in words and an icon, never by colour alone */
.nt-save { display: inline-flex; align-items: center; gap: 5px; flex: none; border: 1px solid transparent; font: inherit; font-size: 12px; font-weight: 500; padding: 3px 9px 3px 7px; border-radius: 999px; cursor: pointer; line-height: 1.3; white-space: nowrap;
  color: var(--ink); background: color-mix(in srgb, var(--ft-green) 12%, var(--paper)); border-color: color-mix(in srgb, var(--ft-green) 45%, transparent); transition: background .2s, border-color .2s; }
.nt-save svg { color: var(--ft-green); }
.nt-save:empty { display: none; }
.nt-save svg { width: 14px; height: 14px; flex: none; }
.nt-save span { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.nt-save[data-st="saving"] { color: var(--ink-2); background: var(--wash); border-color: var(--line); }
.nt-save[data-st="fail"] svg { color: var(--ft-red); }
.nt-save[data-st="clash"] svg { color: var(--ft-amber); }
.nt-save[data-st="fail"] { background: color-mix(in srgb, var(--ft-red) 12%, var(--paper)); border-color: color-mix(in srgb, var(--ft-red) 45%, transparent); }
.nt-save[data-st="clash"] { background: color-mix(in srgb, var(--ft-amber) 14%, var(--paper)); border-color: color-mix(in srgb, var(--ft-amber) 45%, transparent); }
.nt-save[data-st="local"] { background: color-mix(in srgb, var(--ft-blue) 12%, var(--paper)); border-color: color-mix(in srgb, var(--ft-blue) 45%, transparent); }
.nt-save[data-st="local"] svg { color: var(--ft-blue); }
.nt-save .spin { width: 11px; height: 11px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: nt-spin .8s linear infinite; flex: none; }
@keyframes nt-spin { to { transform: rotate(360deg); } }
.nt-save.pop svg { animation: nt-pop .45s cubic-bezier(.2, .8, .2, 1.4); }
@keyframes nt-pop { 0% { transform: scale(.3); opacity: 0; } 60% { transform: scale(1.25); opacity: 1; } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .nt-save .spin { animation-duration: 2.4s; } .nt-save.pop svg { animation: none; } }
.nt-vis { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); font: inherit; font-size: 12px; padding: 4px 9px; cursor: pointer; border-radius: 3px; flex: none; }
.nt-vis.priv { border-color: var(--ink); color: var(--ink); }
.nt-vis:disabled { cursor: default; opacity: .85; }
.nt-tool { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; color: var(--mute); font: inherit; font-size: 13px; padding: 5px 7px; border-radius: 3px; cursor: pointer; }
.nt-tool:hover { background: var(--wash); color: var(--ink); }

/* covers (13 Oct 2026): a colour from the theme's tokens with a pattern laid over it (a mask in the colour's own ink), or a photo */
.nt-cover { position: relative; height: 150px; border-bottom: 1px solid var(--line); overflow: hidden; }
.nt-cover.ph { height: 220px; background: var(--wash); }
.nt-cover.ph img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-select: none; }
.nt-cover.gone { height: 64px; background: var(--wash); display: flex; align-items: center; padding: 0 16px; font-size: 13px; color: var(--mute); }
.nt-cover.moving { cursor: ns-resize; touch-action: none; }
.nt-cover.moving::before { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 2px var(--ink); z-index: 1; pointer-events: none; }
.cv { --cv-a: var(--note-blue); --cv-b: var(--ft-blue); --cv-p: var(--ft-blue); background: linear-gradient(135deg, var(--cv-a) 0%, color-mix(in srgb, var(--cv-a) 55%, var(--cv-b)) 100%); position: relative; }
.cv-gold { --cv-a: var(--note-yellow); --cv-b: var(--ft-amber); --cv-p: var(--ft-amber); }
.cv-green { --cv-a: var(--note-green); --cv-b: var(--ft-green); --cv-p: var(--ft-green); }
.cv-blue { --cv-a: var(--note-blue); --cv-b: var(--ft-blue); --cv-p: var(--ft-blue); }
.cv-red { --cv-a: var(--note-pink); --cv-b: var(--ft-red); --cv-p: var(--ft-red); }
.cv-violet { --cv-a: var(--note-violet); --cv-b: var(--ft-violet); --cv-p: var(--ft-violet); }
.cv-ink { --cv-a: var(--ink-2); --cv-b: var(--ink); --cv-p: var(--paper); background: linear-gradient(135deg, var(--ink-2), var(--ink)); }
.cv[class*=" p-"]::after { content: ''; position: absolute; inset: 0; background: var(--cv-p); opacity: .32; pointer-events: none; }
.cv-ink[class*=" p-"]::after { opacity: .16; }
.cv.p-dots::after { -webkit-mask: radial-gradient(circle, #000 1.7px, transparent 2px) 0 0 / 16px 16px; mask: radial-gradient(circle, #000 1.7px, transparent 2px) 0 0 / 16px 16px; }
.cv.p-grid::after { -webkit-mask: linear-gradient(#000 1px, transparent 1px) 0 0 / 22px 22px, linear-gradient(90deg, #000 1px, transparent 1px) 0 0 / 22px 22px; mask: linear-gradient(#000 1px, transparent 1px) 0 0 / 22px 22px, linear-gradient(90deg, #000 1px, transparent 1px) 0 0 / 22px 22px; }
.cv.p-lines::after { -webkit-mask: repeating-linear-gradient(135deg, #000 0 2px, transparent 2px 13px); mask: repeating-linear-gradient(135deg, #000 0 2px, transparent 2px 13px); }
.cv.p-waves::after { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='22'%3E%3Cpath d='M0 11c12 0 12-8 24-8s12 8 24 8 12-8 24-8 12 8 24 8' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") 0 0 / 96px 22px; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='22'%3E%3Cpath d='M0 11c12 0 12-8 24-8s12 8 24 8 12-8 24-8 12 8 24 8' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") 0 0 / 96px 22px; }
.cv.p-rings::after { -webkit-mask: repeating-radial-gradient(circle at 86% 130%, #000 0 2px, transparent 2px 20px); mask: repeating-radial-gradient(circle at 86% 130%, #000 0 2px, transparent 2px 20px); }
/* its two buttons: on the cover, shown on hover (always on touch) */
.nt-cvtools { position: absolute; right: 14px; bottom: 10px; display: flex; gap: 6px; opacity: 0; transition: opacity .15s; z-index: 2; }
.nt-cover:hover .nt-cvtools, .nt-cvtools:focus-within { opacity: 1; }
@media (hover: none) { .nt-cvtools { opacity: 1; } }
.nt-cover.moving .nt-cvtools { display: none; }
.nt-cvtools button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: color-mix(in srgb, var(--paper) 90%, transparent); color: var(--ink); font: inherit; font-size: 12px; padding: 6px 10px; border-radius: 3px; cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, .14); }
.nt-cvtools button:hover { background: var(--paper); }
.nt-cover.gone .nt-cvtools { position: static; margin-left: auto; opacity: 1; }
.nt-cvmove { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; background: var(--paper); color: var(--ink); padding: 6px 6px 6px 12px; border-radius: 4px; box-shadow: 0 4px 16px rgba(0, 0, 0, .2); z-index: 2; font-size: 13px; white-space: nowrap; cursor: default; }
.nt-cvmove .btn { padding: 5px 10px; font-size: 13px; }
@media (max-width: 760px) {
  .nt-cover { height: 104px; }
  .nt-cover.ph { height: 160px; }
  .nt-cvmove span { display: none; }
}
.nt-paper { max-width: 760px; width: 100%; margin: 0 auto; padding: 18px 40px 80px 56px; min-height: 50vh; cursor: text; }
@media (min-width: 761px) { .nt-pagewrap.wide .nt-paper { max-width: none; padding-right: 48px; } }
.nt-headtools { display: flex; align-items: center; gap: 4px; min-height: 30px; margin-left: -6px; }
.nt-headtools > .nt-tool:not(.nt-sumb) { opacity: 0; transition: opacity .15s; }
.nt-paper:hover .nt-headtools > .nt-tool, .nt-headtools:focus-within > .nt-tool { opacity: 1; }
.nt-bigicon { font-size: 54px; line-height: 1; border: 0; background: none; padding: 4px; margin: 0 0 4px -4px; cursor: pointer; border-radius: 6px; }
.nt-bigicon:hover:not(:disabled) { background: var(--wash); }
.nt-title { font-size: 34px; line-height: 1.2; font-weight: 600; margin: 4px 0 18px; outline: none; color: var(--ink); word-break: break-word; cursor: text; }
.nt-title:empty::before { content: attr(data-ph); color: var(--faint); }
.nt-doc { display: flex; flex-direction: column; gap: 1px; }

/* a block */
.nb { position: relative; display: flex; align-items: flex-start; gap: 6px; padding: 2px 0 2px calc(var(--in, 0) * 26px); border-radius: 3px; }
.nb.hid { display: none; }
.nb.flash { animation: nt-flash 1.2s var(--ease); }
@keyframes nt-flash { 0%, 40% { background: var(--note-yellow); } 100% { background: transparent; } }
.nb.picked { box-shadow: 0 0 0 2px var(--gold); }
.nb.dragging { opacity: .35; }
.nb-h { position: absolute; left: calc(var(--in, 0) * 26px - 30px); top: 3px; width: 24px; height: 26px; display: grid; place-items: center; border: 0; background: none; color: var(--faint); cursor: grab; border-radius: 3px; opacity: 0; padding: 0; touch-action: none; }
.nb:hover .nb-h, .nb:focus-within .nb-h { opacity: 1; }
.nb-h:hover { background: var(--wash); color: var(--ink); }
.nb-m { flex: none; min-width: 22px; text-align: center; padding-top: 3px; line-height: 1.6; color: var(--ink-2); user-select: none; -webkit-user-select: none; }
.nb-m.num { min-width: 26px; text-align: right; padding-right: 2px; font-variant-numeric: tabular-nums; }
.nb-t { flex: 1; min-width: 0; outline: none; font-size: 16px; line-height: 1.6; padding: 3px 2px; word-break: break-word; white-space: pre-wrap; color: var(--ink); caret-color: var(--ink); }
.nb-t:empty::before { content: attr(data-ph); color: var(--faint); pointer-events: none; }
.nb-t.soft:empty::before { content: ''; }
.nb:focus-within .nb-t.soft:empty::before { content: attr(data-ph); }
.nb.k-h1 .nb-t { font-size: 28px; font-weight: 600; line-height: 1.3; padding-top: 18px; }
.nb.k-h2 .nb-t { font-size: 22px; font-weight: 600; line-height: 1.35; padding-top: 14px; }
.nb.k-h3 .nb-t { font-size: 18px; font-weight: 600; line-height: 1.4; padding-top: 10px; }
.nb.k-h1 .nb-h { top: 22px; } .nb.k-h2 .nb-h { top: 16px; } .nb.k-h3 .nb-h { top: 11px; }
.nb.k-todo.done .nb-t { color: var(--mute); text-decoration: line-through; }
.nb-ck { width: 18px; height: 18px; border: 2px solid var(--ink-2); background: var(--paper); border-radius: 3px; margin-top: 3px; cursor: pointer; padding: 0; display: inline-grid; place-items: center; }
.nb-ck.on { background: var(--ink); border-color: var(--ink); }
.nb-ck.on::after { content: ''; width: 9px; height: 5px; border-left: 2px solid var(--on-ink); border-bottom: 2px solid var(--on-ink); transform: rotate(-45deg) translate(1px, -1px); }
.nb-ck:disabled { cursor: default; }
.nb-tg { width: 22px; height: 22px; border: 0; background: none; color: var(--ink-2); cursor: pointer; display: inline-grid; place-items: center; border-radius: 3px; margin-top: 2px; padding: 0; }
.nb-tg svg { transition: transform .15s var(--ease); }
.nb-tg.open svg { transform: rotate(90deg); }
.nb-tg:hover { background: var(--wash); }
.nb.k-quote .nb-t { border-left: 3px solid var(--ink); padding-left: 14px; color: var(--ink-2); font-size: 17px; }
.nb.k-callout { background: var(--note-yellow); padding: 10px 12px 10px calc(10px + var(--in, 0) * 26px); margin: 4px 0; }
.nb.k-callout .nb-h { left: -30px; top: 10px; }
.nb.k-callout .nb-t { color: var(--ink); }
.nb-emo { border: 0; background: none; font-size: 18px; line-height: 1.4; padding: 0 2px; cursor: pointer; border-radius: 3px; }
.nb-emo:disabled { cursor: default; }
.nb.k-code .nb-t { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; background: var(--wash); border: 1px solid var(--line); padding: 12px 14px; white-space: pre-wrap; tab-size: 2; line-height: 1.55; }
.nb.k-divider { padding-top: 8px; padding-bottom: 8px; cursor: pointer; }
.nb-hr { flex: 1; border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.nb-t b { font-weight: 600; }
.nb-t code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: var(--wash); border: 1px solid var(--line); padding: 0 4px; border-radius: 3px; }
.nb-t mark { background: var(--note-yellow); color: var(--ink); padding: 0 1px; } /* the note colour: every theme checks --ink on it (7:1); the --hl-* colours stay light in dark themes */
.nb-t a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 2px; }
.nt-at { background: var(--wash); border: 1px solid var(--line); border-radius: 3px; padding: 0 4px; font-weight: 500; white-space: nowrap; }
a.nt-pl, a.nt-tk { text-decoration: none !important; border-bottom: 1px solid var(--line); padding: 0 2px; white-space: nowrap; cursor: pointer; }
a.nt-pl::before { content: '↗ '; color: var(--mute); }
a.nt-tk::before { content: '☐ '; color: var(--ft-blue); }
a.nt-tk.done::before { content: '☑ '; color: var(--ft-green); }
a.nt-tk.done { color: var(--mute); text-decoration: line-through !important; }
a.nt-pl.gone, a.nt-tk.gone { color: var(--mute); text-decoration: line-through !important; }
.nb-who { position: absolute; right: -34px; top: 4px; font-size: 10px; font-weight: 600; min-width: 22px; height: 18px; padding: 0 4px; border-radius: 9px; display: none; place-items: center; background: var(--c, var(--ink)); color: var(--on-ink); }
.nb.others .nb-who { display: grid; }
.nb.others { box-shadow: inset 2px 0 0 var(--ft-blue); }
.nb-cf { position: absolute; left: 0; right: 0; top: 100%; z-index: 4; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 10px; background: var(--note-pink); border: 1px solid var(--line); font-size: 13px; color: var(--ink); }
.nb-cf + * { margin-top: 32px; }
.nt-typehere { color: var(--faint); padding: 8px 2px; cursor: text; font-size: 16px; }
.nt-emptydoc { color: var(--mute); }

/* the pages inside, the start, templates */
.nt-foot { margin-top: 36px; }
.nt-subs h4 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); font-weight: 600; margin-bottom: 6px; }
.nt-subpg { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; text-align: left; font: inherit; font-size: 15px; color: var(--ink); padding: 6px 6px; border-radius: 3px; cursor: pointer; border-bottom: 1px solid var(--line); }
.nt-subpg .ic { width: 20px; flex: none; text-align: center; color: var(--mute); display: grid; place-items: center; }
.nt-subpg:hover { background: var(--wash); }
.nt-subpg.add { color: var(--mute); border-bottom: 0; }
.nt-start { padding: 34px 28px; max-width: 640px; }
.nt-start h2 { font-size: 22px; margin-bottom: 8px; }
.nt-start p { color: var(--ink-2); line-height: 1.55; margin-bottom: 18px; }
.nt-doc .nt-start { padding: 0 0 8px; }
.nt-tpls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.nt-tpls b { width: 100%; font-size: 13px; color: var(--mute); font-weight: 500; margin-bottom: 2px; }
.nt-tpl { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-size: 14px; padding: 9px 14px; cursor: pointer; border-radius: 3px; }
.nt-tpl:hover { border-color: var(--ink); }
.nt-tpl span { font-size: 18px; line-height: 1; }

/* on this page: the headings, on a wide window */
.nt-toc { display: none; }
@media (min-width: 1380px) {
  .nt-pagewrap:not(.wide) { grid-template-columns: minmax(0, 1fr) 210px; }
  .nt-pagewrap:not(.wide) .nt-top, .nt-pagewrap:not(.wide) .nt-cover { grid-column: 1 / -1; }
  .nt-pagewrap:not(.wide) .nt-toc { display: flex; flex-direction: column; gap: 2px; position: sticky; top: calc(var(--hdr, 64px) + 70px); align-self: start; padding: 24px 14px 0 0; max-height: calc(100vh - 140px); overflow: auto; }
  .nt-toc b { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); font-weight: 600; margin-bottom: 6px; }
  .nt-toc button { border: 0; background: none; text-align: left; font: inherit; font-size: 13px; color: var(--ink-2); padding: 3px 4px; border-radius: 3px; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nt-toc button:hover { background: var(--wash); color: var(--ink); }
  .nt-toc .l2 { padding-left: 14px; } .nt-toc .l3 { padding-left: 24px; font-size: 12px; }
}

/* menus */
.nt-pop, .nt-slash { position: fixed; z-index: 70; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .16); padding: 6px; min-width: 220px; max-width: min(340px, calc(100vw - 16px)); max-height: min(420px, 70vh); overflow: auto; border-radius: 4px; }
.nt-pop.center { left: 50%; top: 18vh; transform: translateX(-50%); width: min(380px, calc(100vw - 24px)); max-width: calc(100vw - 24px); overflow-x: hidden; }
.nt-dl { display: grid; gap: 10px; padding: 8px 6px 4px; }
.nt-dl b { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.nt-dl p { margin: 0; font-size: 13px; color: var(--mute); line-height: 1.45; }
.nt-dlsub { display: flex; flex-direction: row; justify-content: flex-start; text-align: left; gap: 8px; align-items: center; font-size: 14px; color: var(--ink); cursor: pointer; margin: 0; }
.nt-dlsub input { width: auto; margin: 0; }
.nt-dlb { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.nt-dlb .btn { justify-content: center; }
.nt-pop hr { border: 0; border-top: 1px solid var(--line); margin: 4px 2px; }
.nt-mi { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; text-align: left; font: inherit; font-size: 14px; color: var(--ink); padding: 7px 10px calc(7px) calc(10px + var(--d, 0) * 14px); border-radius: 3px; cursor: pointer; }
.nt-mi:hover, .nt-mi:focus-visible { background: var(--wash); outline: none; }
.nt-mi:disabled { color: var(--mute); cursor: default; background: none; }
.nt-mi.danger { color: var(--red); }
.nt-mi svg { color: var(--mute); flex: none; }
.nt-mnote { font-size: 12px; color: var(--mute); padding: 6px 10px 2px; border-top: 1px solid var(--line); margin-top: 4px; }
.nt-pick b, .nt-msec b { display: block; font-size: 12px; color: var(--mute); font-weight: 500; padding: 4px 10px 6px; }
.nt-turn { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding-bottom: 6px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.nt-turn button { display: flex; align-items: center; gap: 8px; border: 0; background: none; font: inherit; font-size: 13px; color: var(--ink); padding: 6px 8px; border-radius: 3px; cursor: pointer; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nt-turn button span { width: 22px; flex: none; text-align: center; color: var(--mute); font-weight: 600; font-size: 12px; }
.nt-turn button:hover { background: var(--wash); } .nt-turn button.on { background: var(--wash); font-weight: 600; }
.nt-slash button { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; text-align: left; font: inherit; color: var(--ink); padding: 6px 8px; border-radius: 3px; cursor: pointer; }
.nt-slash button.on, .nt-slash button:hover { background: var(--wash); }
.nt-slash .g { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border: 1px solid var(--line); background: var(--paper); font-weight: 600; font-size: 13px; border-radius: 3px; }
.nt-slash .t { display: flex; flex-direction: column; min-width: 0; }
.nt-slash .t b { font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-slash .t small { color: var(--mute); font-size: 12px; }
.nt-slash p { padding: 8px 10px; color: var(--mute); font-size: 13px; }
.nt-icons { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; padding: 4px; }
.nt-icons button { border: 0; background: none; font-size: 22px; padding: 6px; border-radius: 4px; cursor: pointer; line-height: 1; }
.nt-icons button:hover, .nt-icons button.on { background: var(--wash); }
/* the cover window */
.nt-cvdlg { width: min(560px, calc(100vw - 24px)); }
.nt-cvdlg form { display: grid; gap: 12px; }
.nt-cvprev { height: 112px; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); }
.nt-cvprev.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nt-cvprev.gone { background: var(--wash); }
.nt-cvtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.nt-cvtabs button { border: 0; border-bottom: 2px solid transparent; background: none; font: inherit; font-size: 14px; color: var(--mute); padding: 6px 10px; margin-bottom: -1px; cursor: pointer; }
.nt-cvtabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 500; }
.nt-cvtabs i { font-style: normal; font-size: 12px; color: var(--mute); }
.nt-cvsec { display: grid; gap: 8px; }
.nt-cvsec > b { font-size: 12px; color: var(--mute); font-weight: 500; }
.nt-cvsw { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.nt-cvsw button { height: 40px; border: 2px solid transparent; border-radius: 4px; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); }
.nt-cvsw button.on { border-color: var(--ink); }
.nt-cvpat { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.nt-cvpat button { display: grid; gap: 4px; border: 2px solid transparent; background: none; padding: 2px; border-radius: 4px; cursor: pointer; font: inherit; color: var(--ink-2); }
.nt-cvpat button span { display: block; height: 44px; border-radius: 3px; overflow: hidden; }
.nt-cvpat button small { font-size: 11px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-cvpat button.on { border-color: var(--ink); color: var(--ink); }
.nt-cvdice { display: inline-flex; align-items: center; gap: 6px; justify-self: start; }
.nt-cvgal { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; max-height: min(320px, 46vh); overflow: auto; padding: 2px; }
.nt-cvgal button { aspect-ratio: 4 / 3; border: 2px solid transparent; padding: 0; border-radius: 4px; overflow: hidden; cursor: pointer; background: var(--wash); }
.nt-cvgal button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nt-cvgal button.on { border-color: var(--ink); }
.nt-cvup { position: relative; aspect-ratio: 4 / 3; display: grid; place-content: center; justify-items: center; gap: 4px; border: 1px dashed var(--line); border-radius: 4px; color: var(--ink-2); font-size: 12px; text-align: center; cursor: pointer; padding: 6px; flex-direction: column; }
.nt-cvup:hover { border-color: var(--ink); color: var(--ink); }
.nt-cvup input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.nt-cvq { width: 100%; }
@media (max-width: 480px) { .nt-cvsw, .nt-cvpat { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* From Links, and saving a page's links there */
.nt-fl { width: min(560px, calc(100vw - 24px)); }
.nt-fl form { display: grid; gap: 10px; }
.nt-fl .hint { margin: 0; }
.nt-flq { width: 100%; }
.nt-fllist { max-height: min(380px, 50vh); overflow: auto; border: 1px solid var(--line); border-radius: 4px; padding: 4px; }
.nt-flg + .nt-flg { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
.nt-flh, .nt-flr { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; text-align: left; font: inherit; color: var(--ink); padding: 7px 8px; border-radius: 3px; cursor: pointer; }
.nt-flh:hover, .nt-flr:hover { background: var(--wash); }
.nt-flh b { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-flh i { font-style: normal; font-size: 12px; color: var(--mute); }
.nt-flr { padding-left: 14px; }
.nt-flt { width: 16px; height: 16px; flex: none; border: 1.5px solid var(--ink-2); border-radius: 3px; display: grid; place-items: center; }
[aria-checked="true"] > .nt-flt { background: var(--ink); border-color: var(--ink); }
[aria-checked="true"] > .nt-flt::after { content: ''; width: 8px; height: 4px; border: solid var(--on-ink); border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); }
[aria-checked="mixed"] > .nt-flt::after { content: ''; width: 8px; height: 2px; background: var(--ink); }
.nt-flic { width: 22px; flex: none; text-align: center; color: var(--mute); font-size: 16px; line-height: 1; }
.nt-flx { display: flex; flex-direction: column; min-width: 0; }
.nt-flx b { font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-flx small { font-size: 12px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-flmode { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.nt-flmode > span { grid-column: 1 / -1; font-size: 12px; color: var(--mute); }
.nt-flmode button { display: grid; gap: 2px; text-align: left; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; padding: 8px 10px; border-radius: 4px; cursor: pointer; }
.nt-flmode button b { font-size: 14px; font-weight: 500; }
.nt-flmode button small { font-size: 12px; color: var(--mute); line-height: 1.35; }
.nt-flmode button[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.nt-fln { font-size: 13px; color: var(--mute); }
.nt-flsec { display: grid; gap: 4px; font-size: 13px; color: var(--ink-2); }
.nt-flsec input { width: 100%; }
@media (max-width: 480px) { .nt-flmode { grid-template-columns: minmax(0, 1fr); } }

/* the bar over picked words */
.nt-fmt { position: fixed; z-index: 72; display: flex; gap: 1px; background: var(--ink); color: var(--on-ink); padding: 3px; border-radius: 4px; box-shadow: 0 8px 24px rgba(0, 0, 0, .22); }
.nt-fmt button { min-width: 32px; height: 32px; border: 0; background: none; color: var(--on-ink); font: inherit; font-size: 14px; cursor: pointer; border-radius: 3px; display: grid; place-items: center; padding: 0 6px; }
.nt-fmt button:hover { background: var(--ink-hover); }
.nt-fmt mark { background: var(--note-yellow); color: var(--ink); padding: 0 3px; }
.nt-linkf { display: flex; gap: 4px; padding: 2px; }
.nt-linkf input { width: 240px; max-width: 60vw; border: 0; padding: 6px 8px; font: inherit; font-size: 13px; background: var(--paper); color: var(--ink); border-radius: 3px; }
.nt-ghost { position: fixed; z-index: 80; pointer-events: none; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0, 0, 0, .18); padding: 5px 10px; font-size: 13px; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-radius: 3px; }
.nt-dropline { position: fixed; z-index: 79; height: 3px; background: var(--gold); pointer-events: none; border-radius: 2px; }

/* a table block: cells are words like a paragraph's; the bar under it shows while the caret is in it (or the mouse over it) */
.nb.k-table { flex-direction: column; align-items: stretch; gap: 4px; padding: 8px 0 4px; }
.nb.k-table .nb-h { top: 10px; }
.nb-tw { overflow-x: auto; overflow-y: hidden; max-width: 100%; position: relative; } /* sideways only: with classic scrollbars the width handles made Chrome add a vertical bar for a fraction of a pixel */
/* a wide table uses the free space to the right of the words, up to --tbl-room (notes.js roomFit); a narrow one keeps the column's width */
.nt-doc .nb.k-table > .nb-tw, .nt-doc .nb-cat > .nb-tw { width: max-content; min-width: 100%; max-width: var(--tbl-room, 100%); }
.nb-tmv { display: inline-flex; gap: 2px; }
/* grips to move a row or a column anywhere (notes.js mvPlace), on the table's inner edge; the line shows where it lands */
.nb-mvs { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; z-index: 3; }
.nb-rg, .nb-cg { position: absolute; display: grid; place-items: center; pointer-events: auto; touch-action: none; cursor: grab; color: var(--mute); background: var(--paper); border: 1px solid var(--line); border-radius: 4px; }
.nb-rgs { position: absolute; width: 0; height: 0; pointer-events: none; z-index: 3; }
.nb-rg { left: -19px; width: 14px; }
.nb:not(:hover):not(:focus-within) > .nb-rgs > :not(.on) { opacity: 0; pointer-events: none; }
.nb-cg { top: 1px; width: 28px; height: 12px; }
.nb-cg svg { transform: rotate(90deg); }
.nb-rg:hover, .nb-cg:hover, .nb-rg.on, .nb-cg.on { color: var(--ink); border-color: var(--gold); cursor: grabbing; }
.nb-tw:not(:hover):not(:focus-within) > .nb-mvs > :not(.on) { opacity: 0; pointer-events: none; }
.nb-dl { position: absolute; background: var(--gold); pointer-events: none; }
.nb-dl.r { height: 3px; } .nb-dl.c { width: 3px; }
.nb-dl.same { opacity: .35; }
.nb-tbl .nb-lift { opacity: .45; }
@media (hover: none) { .nb-rg { width: 20px; left: -24px; } .nb-cg { width: 36px; height: 18px; } }
.nb-tmv button { min-width: 28px; justify-content: center; font-size: 14px; }
.nb-tbl { border-collapse: collapse; min-width: 100%; font-size: 15px; line-height: 1.5; color: var(--ink); }
.nb-tbl .nb-c { border: 1px solid var(--line); padding: 6px 9px; min-width: 96px; max-width: 360px; vertical-align: top; text-align: left; font-weight: 400; overflow-wrap: break-word; word-break: normal; white-space: pre-wrap; outline: none; caret-color: var(--ink); }
.nb-tbl.head tr:first-child .nb-c { background: var(--wash); font-weight: 600; }
.nb-tbl .nb-c:focus { box-shadow: inset 0 0 0 2px var(--gold); }
.nb-tbar { display: flex; flex-wrap: wrap; gap: 4px; opacity: 0; transition: opacity .15s; }
.nb.k-table:hover .nb-tbar, .nb.k-table:focus-within .nb-tbar { opacity: 1; }
.nb-tbar button { display: inline-flex; align-items: center; gap: 3px; border: 1px solid var(--line); background: var(--paper); color: var(--mute); font-size: 12.5px; padding: 3px 8px; border-radius: 3px; }
.nb-tbar button:hover { color: var(--ink); border-color: var(--ink); }
.nb-tbar button[aria-pressed="true"] { color: var(--ink); background: var(--wash); }
.nt.ro .nb-tbl .nb-c { cursor: text; }
@media (hover: none) { .nb.k-table:not(:focus-within) .nb-tbar { display: none; } .nb-tbar button { padding: 7px 10px; font-size: 13.5px; } }
@media (max-width: 760px) { .nb-tbl { font-size: 14.5px; } .nb-tbl .nb-c { min-width: 84px; } }
/* smart cells (20 Oct 2026): amounts and numbers sit to the right; widths a person set; the totals row; the grouped view under the table */
.nb-tbl .nb-c.n, .nb-tbl td.n, .nb-tbl th.n { text-align: right; font-variant-numeric: tabular-nums; }
.nb-tbl.fixed .nb-c { min-width: 0; max-width: none; }
.nb-cws { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; }
.nb-cw { position: absolute; top: 0; width: 10px; cursor: col-resize; pointer-events: auto; touch-action: none; z-index: 2; }
.nb-cw::after { content: ""; position: absolute; left: 4px; top: 0; bottom: 0; width: 2px; background: var(--gold); opacity: 0; transition: opacity .12s; }
.nb.k-table:hover .nb-cw:hover::after, .nb-cw.on::after { opacity: 1; }
@media (hover: none) { .nb.k-table:not(:focus-within) .nb-cws { display: none; } .nb-cw { width: 22px; margin-left: -6px; } .nb-cw::after { left: 10px; opacity: .45; } }
.nb-tbl tfoot .nb-tc { border: 1px solid var(--line); border-top: 2px solid var(--ink); padding: 6px 9px; font-weight: 600; background: var(--wash); white-space: nowrap; }
.nb-tbl tfoot .nb-tc.lab { text-align: left; font-weight: 600; }
.nb-tbl tfoot .nb-tc.lab span { color: var(--mute); font-weight: 400; }
.nb-cat { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.nb-cath { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--mute); }
.nb-cath > span { margin-right: auto; }
.nb-cath b { color: var(--ink); font-weight: 600; }
.nb-cath button { display: inline-flex; align-items: center; gap: 3px; border: 1px solid var(--line); background: var(--paper); color: var(--mute); font-size: 12.5px; padding: 3px 8px; border-radius: 3px; }
.nb-cath button:hover, .nb-cath button[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); }
.nb-gtbl th, .nb-gtbl td { border: 1px solid var(--line); padding: 6px 9px; vertical-align: top; text-align: left; font-weight: 400; overflow-wrap: break-word; min-width: 90px; max-width: 360px; }
.nb-gtbl thead th { background: var(--wash); font-weight: 600; }
.nb-gtbl .nb-gr td { background: color-mix(in srgb, var(--gold) 12%, var(--paper)); font-weight: 600; cursor: pointer; }
.nb-gb { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 2px; font-weight: 600; color: var(--ink); }
.nb-gb:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.nb-gtbl .nb-gk { white-space: nowrap; }
@media (max-width: 760px) { .nb-gtbl .nb-gk { white-space: normal; min-width: 120px; } .nb-gtbl th, .nb-gtbl td { min-width: 80px; } }
.nb-gtbl .nb-gd .nb-gk { border-top-color: transparent; border-bottom-color: transparent; }
.nb-gt { display: inline-block; width: 1em; color: var(--mute); }
.nb-gn { display: inline-block; min-width: 1.6em; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--mute); font-size: 12px; font-weight: 400; text-align: center; }
.nb-gtbl .nb-gall td { border-top: 2px solid var(--ink); background: var(--wash); font-weight: 600; }
.nt-pop .nt-mi small { margin-left: auto; padding-left: 12px; color: var(--mute); font-size: 12px; }
.nt-pop .nt-mi.on { color: var(--ink); background: var(--wash); }

.nt.ro .nt-paper { cursor: default; }

/* touch: what hover shows a mouse */
@media (hover: none) {
  .nt-acts { display: flex; }
  .nt-row .nt-lock { display: none; }
  .nb-h { opacity: .55; }
  .nt-headtools > .nt-tool:not(.nt-sumb) { opacity: 1; }
}

/* a phone: the list, or the page with a way back */
@media (max-width: 760px) {
  .nt { grid-template-columns: minmax(0, 1fr); border-left: 0; border-right: 0; min-height: 50vh; }
  .nt-side { position: static; max-height: none; border-right: 0; background: var(--paper); padding: 10px 6px 18px; }
  .nt[data-v="page"] .nt-side { display: none; }
  .nt[data-v="list"] .nt-main { display: none; }
  .nt.empty .nt-side { display: none; }
  .nt.empty .nt-main { display: block !important; }
  .nt-back { display: inline-flex; }
  .nt-top { padding: 8px 10px; top: calc(var(--top-h, 56px) + var(--safe-t, 0px)); gap: 6px; }
  .nt-crumbs { display: none; }
  .nt-edited { display: none; }
  .nt-paper { padding: 12px 14px 90px 36px; }
  .nt-title { font-size: 26px; }
  .nb-t { font-size: 16px; }
  .nb { padding-left: calc(var(--in, 0) * 18px); }
  .nb-h { left: calc(var(--in, 0) * 18px - 28px); }
  .nb.k-callout .nb-h { left: -28px; }
  .nb-who { right: -6px; top: -8px; }
  .nt-row { min-height: 40px; font-size: 15px; }
  .nt-tpl { flex: 1 1 calc(50% - 8px); }
  .nt-start { padding: 22px 14px; }
  .nt-turn { grid-template-columns: 1fr; }
  .nt-fmt { overflow-x: auto; max-width: calc(100vw - 16px); }
}

/* a narrow editor on a computer (owner's screenshot, 20 Oct 2026: a ~1,000 px laptop window gave the words a 310 px column). .narrow comes
   from notes.js (the editor's own width under 820 px, not the window's): a slimmer page list, smaller margins and title, the writer's
   initials as a dot like on a phone, so the right margin can be small */
@media (min-width: 761px) {
  .nt.narrow:not(.side-off) { grid-template-columns: 196px minmax(0, 1fr); }
  .nt.narrow .nt-side { padding: 12px 6px 16px; }
  .nt.narrow .nt-sh { flex-wrap: wrap; row-gap: 6px; }
  .nt.narrow .nt-paper { padding: 14px 22px 80px 38px; }
  .nt.narrow .nt-title { font-size: 28px; }
  .nt.narrow .nt-edited, .nt.narrow .nt-fullb span { display: none; }
  .nt.narrow .nt-top { padding: 8px 10px; gap: 8px; }
  .nt.narrow .nb-ai { right: -14px; top: 10px; width: 8px; height: 8px; font-size: 0; box-shadow: none; background: var(--ac); }
  .nt.narrow .nb.k-h1 > .nb-ai { top: 20px; } .nt.narrow .nb.k-h2 > .nb-ai { top: 15px; } .nt.narrow .nb.k-h3 > .nb-ai { top: 12px; }
  .nt.narrow .nb-who { right: -6px; top: -8px; }
}

/* fold the page list away, and full screen (12 Oct 2026) */
@media (min-width: 761px) { .nt.side-off { grid-template-columns: minmax(0, 1fr); } .nt.side-off > .nt-side { display: none; } }
.nt-sidet[aria-pressed="true"] { color: var(--ink); }
.nt-fullb span { white-space: nowrap; }
.nt.nt-full { position: fixed; inset: 0; z-index: 82; border: 0; min-height: 0; overflow: auto; overscroll-behavior: contain; --hdr: 0px; padding-bottom: env(safe-area-inset-bottom); }
.nt.nt-full .nt-side { top: 0; max-height: 100vh; height: 100vh; }
.nt.nt-full .nt-pagewrap:not(.wide) .nt-paper { max-width: 820px; }
.nt.nt-full .nt-top { padding-top: calc(10px + env(safe-area-inset-top)); }
html.nt-full-on, html.nt-full-on body { overflow: hidden; }
html.nt-full-on .views, html.nt-full-on .menu-wrap, html.nt-full-on .ckl, html.nt-full-on .chi-peek { display: none !important; }
@media (max-width: 1100px) { .nt-fullb span { display: none; } }
@media (max-width: 760px) {
  .nt-sidet { display: none; }
  .nt.nt-full .nt-top { top: 0; }
  .nt.nt-full .nt-side { position: static; height: auto; max-height: none; }
}

/* a mind map in a page (12 Oct 2026): the picture fits the page width; Actual size lets it scroll sideways */
.nb.k-mind { display: block; padding: 6px 0 10px; }
.nb.k-mind > .nb-h { top: 10px; }
.nb-mind { border: 1px solid var(--line); border-radius: 6px; background: var(--paper); padding: 12px 12px 8px; }
.nb-mm { overflow: auto; max-height: 640px; display: flex; justify-content: safe center; }
.nb-mm[data-mm] { cursor: pointer; }
.nb-mmsvg { width: 100%; height: auto; display: block; flex: none; }
.nb.k-mind.big .nb-mm { justify-content: flex-start; }
.nb.k-mind.big .nb-mmsvg { width: auto; max-width: none; min-width: 0 !important; }
.nb-mmsvg g[data-ln] { transition: opacity .15s; }
.nb.k-mind.editing .nb-mmsvg g[data-ln] { cursor: pointer; }
.nb.k-mind.editing .nb-mmsvg g[data-ln]:hover { opacity: .78; }
.nb-mmempty { color: var(--mute); font-size: 14px; padding: 24px 8px; margin: 0; }
.nb-mbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 8px; font-size: 13px; }
.nb-mbar .link { font-size: 13px; }
.nb-mcount { margin-left: auto; color: var(--mute); font-size: 12px; }
.nb-medit { margin-top: 10px; }
.nb-mt { width: 100%; box-sizing: border-box; font: 14px/1.6 var(--mono, ui-monospace, Menlo, Consolas, monospace); color: var(--ink); background: var(--wash); border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; resize: vertical; tab-size: 2; }
.nb-mt:focus { outline: 2px solid var(--gold); outline-offset: 0; }
.nb-mhint { color: var(--mute); font-size: 12.5px; margin: 6px 0 0; line-height: 1.5; }
@media (max-width: 760px) { .nb-mind { padding: 8px 6px 6px; } .nb-mt { font-size: 16px; } .nb-mcount { width: 100%; margin-left: 0; } }
@media print { .nb-mbar, .nb-medit { display: none; } }

/* a card for something else of the project (public/refs.js) */
.nb.k-ref { display: block; padding: 3px 0 3px calc(var(--in, 0) * 26px); }
.nb.k-ref > .nb-h { top: 10px; }

/* a picture (5 Nov 2026): a gallery photo shown in the page, its width S / M / L, a caption under it */
.nb.k-image { display: block; padding: 6px 0 6px calc(var(--in, 0) * 26px); }
.nb.k-image > .nb-h { top: 10px; }
.nb-fig { margin: 0; display: grid; gap: 4px; max-width: 100%; }
.nb.k-image.sz-s .nb-fig { width: min(100%, 45%); min-width: min(100%, 220px); }
.nb.k-image.sz-m .nb-fig { width: min(100%, 70%); }
.nb.k-image.sz-l .nb-fig { width: 100%; }
.nb.k-image.sz-c .nb-fig { width: var(--iw, 100%); min-width: min(100%, 80px); }
.nb-fig { position: relative; }
.nb-irs { position: absolute; top: 0; right: -9px; width: 18px; height: calc(100% - 26px); padding: 0; border: 0; background: none; cursor: ew-resize; touch-action: none; opacity: 0; transition: opacity .15s; }
.nb-irs::after { content: ''; position: absolute; top: 50%; left: 6px; width: 6px; height: 44px; max-height: 60%; transform: translateY(-50%); border-radius: 3px; background: var(--paper); border: 1px solid var(--ink); }
.nb.k-image:hover .nb-irs, .nb-irs:focus-visible, .nb.k-image.sizing .nb-irs { opacity: 1; }
.nb-irs:focus-visible { outline: none; } .nb-irs:focus-visible::after { background: var(--ink); }
.nb-irw { position: absolute; top: 8px; right: 14px; padding: 3px 7px; border-radius: 4px; background: var(--ink); color: var(--on-ink); font-size: 12px; font-weight: 600; display: none; }
.nb.k-image.sizing .nb-irw { display: block; }
.nb.k-image.sizing { user-select: none; -webkit-user-select: none; }
.nb-img { display: block; padding: 0; border: 0; background: var(--wash); border-radius: 6px; overflow: hidden; cursor: zoom-in; line-height: 0; }
.nb-img img { display: block; width: 100%; height: auto; max-height: 80vh; object-fit: contain; }
.nb-img:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.nb-icap { border: 0; background: none; padding: 2px 0; font: inherit; font-size: 13px; color: var(--mute); width: 100%; outline: none; }
.nb-icap::placeholder { color: var(--faint); opacity: 0; transition: opacity .15s; }
.nb.k-image:hover .nb-icap::placeholder, .nb-icap:focus::placeholder { opacity: 1; }
.nb-icap:focus { color: var(--ink); }
.nb-fig figcaption { font-size: 13px; color: var(--mute); }
.nb-imgone { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border: 1px dashed var(--line); border-radius: 6px; color: var(--mute); font-size: 13.5px; }
.nb-imbar { position: absolute; top: 12px; left: calc(var(--in, 0) * 26px + 8px); display: flex; gap: 2px; padding: 2px; border-radius: 6px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); opacity: 0; transition: opacity .15s; }
.nb.k-image:hover .nb-imbar, .nb.k-image:focus-within .nb-imbar { opacity: 1; }
.nb-imbar button { border: 0; background: none; font-weight: 600; font-size: 12px; line-height: 1; font-family: inherit; color: var(--ink-2); padding: 5px 8px; border-radius: 4px; cursor: pointer; }
.nb-imbar button:hover { background: var(--wash); color: var(--ink); }
.nb-imbar button.on { background: var(--ink); color: var(--on-ink); }
.nb.drop-img { box-shadow: inset 0 -3px 0 var(--gold); }
.nt-imdlg .nt-cvgal button { position: relative; }
.nt-imn { position: absolute; top: 4px; right: 4px; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; font-weight: 600; font-size: 11px; line-height: 1; font-family: inherit; font-style: normal; background: var(--ink); color: var(--on-ink); padding: 0 5px; }
@media (hover: none) { .nb.k-image:not(:focus-within) .nb-imbar, .nb.k-image:not(:focus-within) .nb-irs { display: none; } .nb-irs { opacity: 1; width: 30px; right: -15px; } .nb-irs::after { left: 11px; } .nb-imbar { opacity: 1; } .nb-imbar button { padding: 8px 12px; font-size: 13.5px; } .nb-icap::placeholder { opacity: 1; } }
.nt-usedin .rf-used { max-width: 520px; }

/* a page to another project (13 Oct 2026): move or copy */
.nt-send { width: min(520px, calc(100vw - 32px)); }
.nt-send form { display: grid; gap: 12px; padding: 22px; }
.nt-send h2 { margin: 0; font-size: 20px; overflow-wrap: anywhere; }
.nt-send-how { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.nt-send-how label { display: block; position: relative; cursor: pointer; margin: 0; }
.nt-send-how input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.nt-send-how span { display: grid; gap: 2px; align-content: start; min-width: 0; height: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.nt-send-how input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--wash); }
.nt-send-how input:disabled + span { color: var(--mute); cursor: default; }
.nt-send-how input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.nt-send-how small { color: var(--mute); font-size: 12.5px; line-height: 1.35; }
.nt-send-f { display: grid; gap: 4px; font-size: 13px; margin: 0; }
.nt-send-f[hidden], .nt-send-sub[hidden] { display: none; }
.nt-send-f > span { color: var(--mute); }
.nt-send-f select, .nt-send-f input { font: inherit; font-size: 15px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); min-width: 0; width: 100%; box-sizing: border-box; }
.nt-send-sub { display: flex; flex-direction: row; gap: 8px; align-items: center; font-size: 14px; margin: 0; cursor: pointer; }
.nt-send-sub input { width: auto; margin: 0; }
.nt-send-say { margin: 0; min-height: 1.4em; font-size: 13px; color: var(--mute); line-height: 1.45; }
.nt-send-say.bad { color: var(--red); }
@media (max-width: 480px) { .nt-send-how { grid-template-columns: minmax(0, 1fr); } .nt-send form { padding: 18px 16px; } }
@media (max-width: 760px) { .nt-send-f select, .nt-send-f input { font-size: 16px; } }

/* changed since my last open (13 Oct 2026): a dot in the page list, a lit edge on the paragraphs, one line above them */
.nt-dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-left: 4px; }
.nt-dot.new { background: var(--ft-green); }
.nt-dot.inside { background: transparent; box-shadow: inset 0 0 0 2px var(--gold); }
.nt-freshbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0 0 14px; padding: 9px 12px; border-left: 3px solid var(--gold); background: var(--wash); font-size: 13.5px; color: var(--ink-2); border-radius: 0 4px 4px 0; }
.nt-freshbar span { flex: 1 1 220px; min-width: 0; }
.nt-freshbar .link { font-size: 13.5px; }
.nb.fresh { box-shadow: inset 3px 0 0 var(--gold); background: color-mix(in srgb, var(--gold) 7%, transparent); border-radius: 0 3px 3px 0; }

/* mentions of me, at the top of the page list */
.nt-ment { margin: 0 0 12px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.nt-ment h4 { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: 12px; font-weight: 600; color: var(--ink); text-transform: uppercase; letter-spacing: .06em; }
.nt-ment h4 small { margin-left: auto; min-width: 20px; padding: 1px 6px; border-radius: 10px; background: var(--red); color: var(--on-red); font-size: 11px; text-align: center; letter-spacing: 0; }
.nt-mrow { display: grid; gap: 2px; width: 100%; text-align: left; border: 0; background: none; padding: 6px; border-radius: 4px; font: inherit; color: var(--ink); cursor: pointer; }
.nt-mrow:hover, .nt-mrow:focus-visible { background: var(--wash); }
.nt-mwho { font-size: 13px; overflow-wrap: anywhere; }
.nt-mrow small { font-size: 12.5px; color: var(--mute); line-height: 1.35; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nt-mmore { margin: 4px 6px 0; font-size: 12px; color: var(--mute); }

/* templates of one's own and of the team */
.nt-utpl { display: inline-flex; align-items: stretch; }
.nt-utpl .nt-tpl { border-radius: 3px 0 0 3px; }
.nt-utpl .nt-tpl:only-child { border-radius: 3px; }
.nt-tpl small { font-size: 11.5px; color: var(--mute); margin-left: 2px; }
.nt-utplm { border: 1px solid var(--line); border-left: 0; background: var(--paper); color: var(--mute); padding: 0 8px; cursor: pointer; border-radius: 0 3px 3px 0; }
.nt-utplm:hover, .nt-utplm:focus-visible { color: var(--ink); border-color: var(--ink); }
.nt-tplsave { padding: 8px 8px 4px; }
.nt-tplsave [data-tpl-say] { margin: 0; font-size: 13px; color: var(--mute); line-height: 1.45; }
.nt-tplf { display: grid; gap: 4px; font-size: 13px; margin: 0; }
.nt-tplf > span { color: var(--mute); }
.nt-tplf input { font: inherit; font-size: 15px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); width: 100%; box-sizing: border-box; }
.nt-tplwhere { display: grid; gap: 6px; }
@media (max-width: 760px) { .nt-tplf input { font-size: 16px; } .nt-utpl { flex: 1 1 calc(50% - 8px); } .nt-utpl .nt-tpl { flex: 1 1 auto; } }

/* who wrote what, on team pages (13 Oct 2026): a face per writer under the title with their share of the words, a thin bar in their colour beside
   each paragraph (joined while one person wrote several in a row) and their initials where a new writer begins. Colours are the --ft-* tokens. */
.nt-by { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: -8px 0 18px; font-size: 12.5px; color: var(--mute); }
.nt-by[hidden] { display: none; }
.nt-bymade { white-space: nowrap; }
.nt-byppl { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.nt-byp { display: inline-flex; align-items: center; gap: 6px; max-width: 220px; padding: 2px 10px 2px 2px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-size: 12.5px; line-height: 1; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.nt-byp > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-byp small { color: var(--mute); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.nt-byp:hover { border-color: var(--ac); }
.nt-byp.on { border-color: var(--ac); background: color-mix(in srgb, var(--ac) 12%, var(--paper)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--ac) 25%, transparent); }
.nt-by.solo .nt-byp { cursor: default; }
.nt-by.solo .nt-byp:hover { border-color: var(--line); }
.nt-byp i, .nb-ai, .nt-mk { font-style: normal; display: grid; place-items: center; flex: none; border-radius: 50%; font-weight: 600; letter-spacing: .02em; color: var(--ink); background: color-mix(in srgb, var(--ac) 18%, var(--paper)); box-shadow: inset 0 0 0 1.5px var(--ac); }
.nt-byp i { width: 22px; height: 22px; font-size: 9.5px; }
.nt-bymore { align-self: center; color: var(--mute); }
.nt-byend { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; }
.nt-bytog { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--mute); font: inherit; font-size: 12.5px; padding: 4px 2px; cursor: pointer; }
.nt-bytog .sw { position: relative; width: 26px; height: 15px; border-radius: 9px; background: var(--line); transition: background .15s; }
.nt-bytog .sw::after { content: ''; position: absolute; left: 2px; top: 2px; width: 11px; height: 11px; border-radius: 50%; background: var(--paper); transition: transform .15s; }
.nt-bytog[aria-pressed="true"] { color: var(--ink); }
.nt-bytog[aria-pressed="true"] .sw { background: var(--ink); }
.nt-bytog[aria-pressed="true"] .sw::after { transform: translateX(11px); }
.nt-bybar { flex: 1 0 100%; display: flex; gap: 2px; height: 4px; max-width: 420px; border-radius: 4px; overflow: hidden; }
.nt-bybar > span { background: var(--ac); min-width: 4px; }

.nb-ab { position: absolute; left: -10px; top: 4px; bottom: 4px; width: 3px; border-radius: 3px; background: color-mix(in srgb, var(--ac) 75%, var(--paper)); cursor: pointer; z-index: 1; }
.nb-ab::after { content: ''; position: absolute; inset: -2px -4px; }
.nb:not(.au-s) > .nb-ab { top: -1px; border-top-left-radius: 0; border-top-right-radius: 0; }
.nb:not(.au-e) > .nb-ab { bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.nb-ai { position: absolute; right: -34px; top: 3px; width: 22px; height: 22px; font-size: 9px; cursor: pointer; z-index: 1; }
.nb.k-h1 > .nb-ai { top: 21px; } .nb.k-h2 > .nb-ai { top: 15px; } .nb.k-h3 > .nb-ai { top: 10px; }
.nb.k-callout > .nb-ai, .nb.k-table > .nb-ai, .nb.k-mind > .nb-ai, .nb.k-ref > .nb-ai { top: 9px; }
.nb.others > .nb-ai { display: none; }
.nt-doc > .nb { transition: opacity .2s; }
.nt-doc.au-f > .nb.au-dim { opacity: .3; }
.nt-doc.au-f > .nb:not(.au-dim) > .nb-ab { width: 4px; background: var(--ac); }
.nt-mk { width: 18px; height: 18px; font-size: 8px; margin-left: 2px; }
@media (hover: hover) { .nt-row:hover .nt-mk, .nt-row:focus-within .nt-mk { display: none; } }
@media (prefers-reduced-motion: reduce) { .nt-doc > .nb, .nt-byp, .nt-bytog .sw, .nt-bytog .sw::after { transition: none; } }
@media (max-width: 760px) {
  .nb-ab { left: -9px; }
  .nb-ai { right: -12px; top: 10px; width: 8px; height: 8px; font-size: 0; box-shadow: none; background: var(--ac); }
  .nb.k-h1 > .nb-ai { top: 20px; } .nb.k-h2 > .nb-ai { top: 15px; } .nb.k-h3 > .nb-ai { top: 12px; }
  .nt-byend { margin-left: 0; }
  .nt-byp { padding-right: 8px; }
}
@media print { .nb-ab, .nb-ai, .nt-byend, .nt-bybar { display: none; } }

/* Summary and mind map (13 Oct 2026): the one tool above the title that always shows, at the right; the summary lives in the page under a toggle */
.nt-headtools > .nt-sumb { order: 9; margin-left: auto; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px 4px 9px; background: var(--paper); }
.nt-headtools > .nt-sumb:hover { border-color: var(--gold); background: var(--wash); }
.nt-sumg, .nt-mig { font-size: 13px; line-height: 1; width: 16px; text-align: center; flex: none; }
@media (max-width: 760px) { .nt-headtools { flex-wrap: wrap; } .nt-headtools > .nt-sumb { padding: 6px 12px 6px 9px; } }
@media print { .nt-headtools { display: none; } }

/* several blocks picked: a wash behind them, the words cannot be picked meanwhile, a bar at the foot of the window */
.nt.picking .nb-t, .nt.picking .nb-c { user-select: none; -webkit-user-select: none; caret-color: transparent; }
.nt.picktap .nb-t, .nt.picktap .nb-c, .nt.picktap .nb a { pointer-events: none; }
.nt.picktap .nb { cursor: pointer; }
.nb.picked { background: color-mix(in srgb, var(--gold) 16%, transparent); box-shadow: inset 3px 0 0 var(--gold); border-radius: 0 3px 3px 0; }
.nt.picktap .nb:not(.picked) { box-shadow: inset 3px 0 0 var(--line); }
.nt-doc:focus { outline: none; }
.nt-pickbar { position: fixed; z-index: 81; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; max-width: calc(100vw - 24px); overflow-x: auto;
  background: var(--ink); color: var(--on-ink); padding: 4px; border-radius: 6px; box-shadow: 0 10px 28px rgba(0, 0, 0, .25); font-size: 13.5px; }
.nt-pickbar > b { padding: 0 10px 0 8px; white-space: nowrap; font-weight: 600; }
.nt-pickbar button { height: 34px; min-width: 34px; border: 0; background: none; color: var(--on-ink); font: inherit; cursor: pointer; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 0 9px; white-space: nowrap; flex: none; }
.nt-pickbar button:hover, .nt-pickbar button:focus-visible { background: var(--ink-hover); }
.nt-pickbar button.danger { color: color-mix(in srgb, var(--red) 55%, var(--on-ink)); }
.nt-pickbar button.x { border-left: 1px solid color-mix(in srgb, var(--on-ink) 25%, transparent); border-radius: 0 4px 4px 0; margin-left: 2px; }
.nt-pickbar select { height: 32px; border: 0; border-radius: 4px; background: var(--paper); color: var(--ink); font: inherit; font-size: 13px; padding: 0 6px; margin: 0 4px; flex: none; }
.nt-pickbar svg { width: 16px; height: 16px; }
@media (max-width: 760px) {
  .nt-pickbar { bottom: calc(var(--tabs-h, 64px) + 12px + env(safe-area-inset-bottom, 0px)); left: 12px; right: 12px; transform: none; max-width: none; flex-wrap: wrap; overflow: visible; row-gap: 4px; }
  .nt-pickbar > b { flex: 1 0 calc(100% - 120px); order: 0; padding: 6px 8px; }
  .nt.picking .nt-doc { padding-bottom: 150px; }
  .nt-pickbar button.x { order: 1; border-left: 0; background: color-mix(in srgb, var(--on-ink) 14%, transparent); border-radius: 4px; }
  .nt-pickbar select, .nt-pickbar button:not(.x) { order: 2; }
  .nt-pickbar select { flex: 1 1 120px; margin: 0 4px 0 0; font-size: 16px; }
  .nt-pickbar button span { display: none; }
  .nt-pickbar button.x span, .nt-pickbar button.x { font-size: 13px; }
  .nt-full .nt-pickbar, html.nt-full-on .nt-pickbar { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
}

/* the button beside a link in the words (14 Oct 2026): rests at the link's end while the mouse is on it or the caret is inside */
.nt-lk { position: fixed; z-index: 69; display: inline-flex; align-items: center; gap: 1px; height: 26px; padding: 0 5px; border: 1px solid var(--line); border-radius: 13px;
  background: var(--paper); color: var(--ink); box-shadow: 0 3px 10px rgba(0, 0, 0, .14); cursor: pointer; font: inherit; font-size: 10px; line-height: 1; }
.nt-lk:hover, .nt-lk:focus-visible { border-color: var(--ink); }
.nt-lk span { color: var(--mute); }
.nt-lkpop .nt-msec b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-lkon { display: block; font-size: 11px; color: var(--mute); padding: 0 10px 6px; margin-top: -4px; }
@media (pointer: coarse) { .nt-lk { height: 32px; padding: 0 9px; border-radius: 16px; } }

/* table styles (owner, 20 Oct 2026: "learn from journal style", "suggest a lot of styles"): .s-<style> on the table and its grouped view
   (notes.js tbCls), theme tokens only; HD = the header row in either table, CL = every cell, FT = the totals row */
.nb-tbl:is(.s-journal, .s-hair, .s-stripes, .s-soft, .s-ledger, .s-notepad) :is(th, td) { border: 0; }
/* Jurnal: three rules, like a table in a journal article */
.nb-tbl.s-journal { border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.nb-tbl.s-journal :is(th, td) { padding-inline: 14px; }
.nb-tbl.s-journal.head > tbody > tr:first-child > .nb-c, .nb-tbl.s-journal > thead th { background: transparent; border-bottom: 1px solid var(--ink); }
.nb-tbl.s-journal tfoot .nb-tc { background: transparent; border-top: 1px solid var(--ink); }
/* Garis tipis: rows split by hairlines, a small grey header */
.nb-tbl.s-hair :is(th, td) { border-bottom: 1px solid var(--line); }
.nb-tbl.s-hair.head > tbody > tr:first-child > .nb-c, .nb-tbl.s-hair > thead th { background: transparent; color: var(--mute); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; border-bottom: 1.5px solid var(--ink); }
.nb-tbl.s-hair tfoot .nb-tc { background: transparent; border-top: 1.5px solid var(--ink); border-bottom: 0; }
/* Belang: every other row shaded */
.nb-tbl.s-stripes > tbody > tr:nth-child(even) > :is(th, td) { background: color-mix(in srgb, var(--ink) 6%, var(--paper)); }
.nb-tbl.s-stripes.head > tbody > tr:first-child > .nb-c, .nb-tbl.s-stripes > thead th { background: transparent; border-bottom: 2px solid var(--ink); }
.nb-tbl.s-stripes tfoot .nb-tc { border-top: 2px solid var(--ink); }
/* Kepala tegas: a dark header */
.nb-tbl.s-bold.head > tbody > tr:first-child > .nb-c, .nb-tbl.s-bold > thead th { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.nb-tbl.s-bold.head > tbody > tr:first-child > .nb-c:focus { box-shadow: inset 0 0 0 2px var(--gold); }
/* Lembut: rounded, a light blue header, no lines down */
.nb-tbl.s-soft { border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.nb-tbl.s-soft :is(th, td) { border-bottom: 1px solid var(--line); }
.nb-tbl.s-soft > tbody > tr:last-child > :is(th, td) { border-bottom: 0; }
.nb-tbl.s-soft.head > tbody > tr:first-child > .nb-c, .nb-tbl.s-soft > thead th { background: var(--note-blue); color: var(--ink); }
.nb-tbl.s-soft tfoot .nb-tc { background: color-mix(in srgb, var(--note-blue) 55%, var(--paper)); border-top: 1px solid var(--line); }
/* Pembukuan: a cash book, lines down only, double rules, aligned numbers */
.nb-tbl.s-ledger { background: color-mix(in srgb, var(--note-green) 40%, var(--paper)); font-variant-numeric: tabular-nums; }
.nb-tbl.s-ledger :is(th, td) { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.nb-tbl.s-ledger.head > tbody > tr:first-child > .nb-c, .nb-tbl.s-ledger > thead th { background: transparent; border-bottom: 3px double var(--ink); }
.nb-tbl.s-ledger tfoot .nb-tc { background: transparent; border-top: 1px solid var(--ink); border-bottom: 3px double var(--ink); }
/* Kertas catatan: a ruled yellow pad */
.nb-tbl.s-notepad { background: var(--note-yellow); }
.nb-tbl.s-notepad :is(th, td) { border-bottom: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); }
.nb-tbl.s-notepad.head > tbody > tr:first-child > .nb-c, .nb-tbl.s-notepad > thead th { background: transparent; border-bottom: 2px solid var(--ft-red); }
.nb-tbl.s-notepad tfoot .nb-tc { background: transparent; border-top: 2px solid color-mix(in srgb, var(--ink) 40%, transparent); }
.nb-tbl.s-notepad .nb-gr td, .nb-tbl.s-ledger .nb-gr td { background: color-mix(in srgb, var(--ink) 7%, transparent); }
/* Padat: less space in every row, any style */
.nb-tbl.dense :is(th, td) { padding-top: 2px; padding-bottom: 2px; font-size: 14px; line-height: 1.4; }
/* the style menu: each style drawn small */
.nt-pop.nb-spop { width: 470px; max-width: calc(100vw - 16px); max-height: min(86vh, 520px); overflow: auto; }
.nb-sgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 4px 6px 6px; }
@media (max-width: 520px) { .nb-sgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.nb-sopt { display: flex; flex-direction: column; align-items: stretch; gap: 4px; border: 1px solid var(--line); background: var(--paper); border-radius: 6px; padding: 6px; font: inherit; font-size: 12.5px; color: var(--ink); cursor: pointer; text-align: left; }
.nb-sopt:hover { border-color: var(--ink); }
.nb-sopt.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.nb-spv { display: block; pointer-events: none; }
.nb-spv .nb-tbl { width: 100%; min-width: 0; font-size: 9px; line-height: 1.3; }
.nb-spv .nb-tbl :is(th, td) { min-width: 0; padding: 1px 5px; font-size: 9px; letter-spacing: 0; }
/* a column's heading menu, Show only and the smart Group by (owner, 20 Oct 2026: "smartly create grouping when selecting the header name.. and think
   features users will love"). The ▾ sits in the heading cell's right padding; the bar's Group by turns into one press in a heading that can group */
.nb-tbl tr.nb-off { display: none; }
.nt-doc .nb-tbl.head > tbody > tr:first-child > .nb-c { padding-right: 30px; }
.nt-doc .nb-tbl.fixed.head > tbody > tr:first-child > .nb-c { padding-right: 30px; }
.nb-hms { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; z-index: 3; }
.nb-hm { position: absolute; width: 20px; height: 20px; display: grid; place-items: center; padding: 0; pointer-events: auto; border: 1px solid transparent; border-radius: 4px; background: transparent; color: var(--mute); cursor: pointer; opacity: 0; transition: opacity .12s; }
.nb.k-table:hover .nb-hm, .nb.k-table:focus-within .nb-hm, .nb-hm.grp, .nb-hm.flt { opacity: 1; }
.nb-hm:hover, .nb-hm:focus-visible { color: var(--ink); background: var(--paper); border-color: var(--line); }
.nb-hm.grp, .nb-hm.flt { color: var(--ink); background: var(--paper); border-color: var(--gold); }
.nb-fbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; color: var(--mute); }
.nb-fbar svg { color: var(--ink); flex: none; }
.nb-fbar b { color: var(--ink); font-weight: 600; }
.nb-fbar .link { font-size: 13px; }
.nb-tcol:empty { display: none; }
.nb-tcol { display: contents; }
.nb-tbar .nb-tcb { color: var(--ink); font-weight: 600; max-width: 200px; }
.nb-tbar .nb-tcb svg { flex: none; margin-left: 2px; }
.nb-tbar button.sug { color: var(--on-gold); background: var(--gold); border-color: var(--gold); font-weight: 600; }
.nb-tbar button.sug:hover { color: var(--on-gold); border-color: var(--ink); }
.nt-pop.nb-hpop { width: 330px; max-width: calc(100vw - 16px); max-height: min(86vh, 600px); }
.nb-hhead { padding: 6px 10px 8px; display: flex; flex-direction: column; gap: 2px; }
.nb-hhead > div { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.nb-hhead b { font-size: 15px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.nb-hkind { flex: none; font-size: 11.5px; color: var(--mute); border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; }
.nb-hfact { font-size: 14px; color: var(--ink); font-variant-numeric: tabular-nums; }
.nb-hhead small { font-size: 12px; color: var(--mute); }
.nt-pop .nt-mi > span:not(.nt-mig):not(.nb-hgi) { display: flex; flex-direction: column; min-width: 0; }
.nt-pop .nt-mi > span > small { margin-left: 0; padding-left: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-hgi { width: 16px; text-align: center; flex: none; font-size: 15px; line-height: 1; }
.nt-pop .nt-mi.nb-hsug { background: var(--wash); }
.nt-pop .nt-mi.nb-hsug .nb-hgi { color: var(--gold); }
.nb-h2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px; padding: 0 4px 4px; }
.nb-h2 button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-size: 13px; padding: 6px 6px; border-radius: 3px; cursor: pointer; }
.nb-h2 button:hover { border-color: var(--ink); }
.nb-h2 button:disabled { color: var(--mute); cursor: default; border-color: var(--line); }
.nb-hfl { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 6px 6px; }
.nb-hfl button { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-size: 13px; padding: 4px 9px; border-radius: 999px; cursor: pointer; max-width: 100%; }
.nb-hfl button span { color: var(--mute); font-size: 12px; font-variant-numeric: tabular-nums; }
.nb-hfl button:hover { border-color: var(--ink); }
.nb-hfl button.on { border-color: var(--gold); background: var(--wash); font-weight: 600; }
@media (hover: none) { .nb-h2 button, .nb-hfl button { padding-top: 8px; padding-bottom: 8px; } }
.nb-hms.ink .nb-hm:not(.grp):not(.flt):not(:hover) { color: var(--on-ink); }

/* offline (21 Oct 2026): pages and changes kept on this device until the connection is back */
.nt-up { display: grid; flex: none; color: var(--ft-blue); }
.nt-up.stuck { color: var(--ft-red); }
.nt-up.clash { color: var(--ft-amber); }
.nt-stuck.clash { background: color-mix(in srgb, var(--ft-amber) 12%, var(--paper)); border-color: color-mix(in srgb, var(--ft-amber) 45%, transparent); }
.nt-off { display: flex; gap: 7px; align-items: flex-start; margin: 0 0 10px; padding: 8px 10px; border-radius: 6px; font-size: 12.5px; line-height: 1.4; color: var(--ink);
  background: color-mix(in srgb, var(--ft-blue) 10%, var(--paper)); border: 1px solid color-mix(in srgb, var(--ft-blue) 35%, transparent); }
.nt-off svg { flex: none; width: 14px; height: 14px; margin-top: 1px; color: var(--ft-blue); }
.nt-stuck { margin: 0 0 10px; padding: 8px 10px; border-radius: 6px; font-size: 12.5px; line-height: 1.4; color: var(--ink);
  background: color-mix(in srgb, var(--ft-red) 10%, var(--paper)); border: 1px solid color-mix(in srgb, var(--ft-red) 40%, transparent); }
.nt-stuck p { margin: 0 0 4px; overflow-wrap: anywhere; }
.nt-stuck span { display: flex; gap: 14px; }
.nt-offnone { max-width: 460px; }
.nt-offnone p { margin: 0 0 6px; }

/* a grid that scrolls inside a max-height keeps each row at its full height (owner, 27 Oct 2026: the Move to list squeezed its rows and cut the words in half) */
.nt-cvgal { grid-auto-rows: max-content; }
