/* 1964: Notes (picture docs/design/sketches/1964-a.html; classes nt-). Theme tokens only. */
body.nt { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font: var(--w-body) var(--t-body)/1.4 var(--ui); -webkit-tap-highlight-color: transparent; }
.nt button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: start; touch-action: manipulation; }
.nt-shell { display: block; max-width: 760px; margin: 0 auto; }
.nt-main { min-width: 0; padding-bottom: 190px; }
.nt-side { display: none; }
.nt-h { display: flex; align-items: baseline; gap: 8px; padding: 6px 20px 4px; }
.nt-t { font: 700 var(--t-title)/var(--lh-title) var(--serif); letter-spacing: -.02em; margin: 0; overflow-wrap: anywhere; }
.nt-sub { color: var(--muted); font-size: var(--t-small); margin-inline-start: auto; white-space: nowrap; }
.nt-h + .nt-sub, .nt-sub.blk { display: block; margin: 0; padding: 0 20px 6px; white-space: normal; }
.nt-pin { margin: 12px 20px 4px; display: flex; gap: 10px; align-items: flex-start; }
.nt-pin i { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; color: var(--accent-ink); font: 700 15px var(--serif); font-style: normal; }
.nt-pin p { margin: 0; padding-top: 3px; }
.nt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 12px 20px 16px; }
.nt .nt-topic { background: var(--surface); border-radius: 20px; padding: 12px 12px 14px; box-shadow: 0 1px 2px #0002, 0 6px 18px #0000000d; border: 1px solid var(--card-edge); min-width: 0; display: block; width: 100%; }
.nt-stack { position: relative; height: 112px; margin-bottom: 12px; }
.nt-slip { position: absolute; inset-inline: 0; background: var(--note); color: var(--note-ink); border-radius: 8px; padding: 8px 10px; font-size: var(--t-tiny); line-height: 1.3; box-shadow: 0 1px 2px #0003; overflow: hidden; }
.nt-slip.a { top: 0; transform: rotate(-3deg); height: 100px; opacity: .55; inset-inline: 4px 6px; color: transparent; }
.nt-slip.b { top: 8px; transform: rotate(2.2deg); height: 100px; opacity: .8; inset-inline: 2px; color: transparent; }
.nt-slip.c { top: 16px; transform: rotate(-.6deg); height: 84px; font-size: var(--t-small); padding: 10px 11px; }
.nt-topic b { display: block; font: 700 1.125rem/1.2 var(--serif); overflow-wrap: anywhere; }
.nt-topic span.n { color: var(--muted); font-size: var(--t-small); }
.nt-back { display: block; margin: 6px 20px 14px; }
.nt .nt-card { margin: 6px 20px 14px; background: var(--surface); border: 1px solid var(--card-edge); border-radius: 20px; padding: 16px; box-shadow: 0 1px 2px #0002, 0 6px 18px #0000000d; width: calc(100% - 40px); display: block; }
.nt-card b { font: 700 var(--t-lead)/1.2 var(--serif); }
.nt-bar { height: 8px; border-radius: 9px; background: var(--surface-2); margin: 12px 0 8px; overflow: hidden; }
.nt-bar i { display: block; height: 100%; background: var(--ok); border-radius: 9px; }
.nt .nt-loose { margin: 0 20px 18px; background: var(--surface); border: 1px solid var(--card-edge); border-radius: 16px; padding: 12px 16px; min-height: 56px; display: block; width: calc(100% - 40px); }
.nt-loose span { display: block; color: var(--muted); font-size: var(--t-small); }
.nt-sec { padding: 12px 20px 4px; font: 700 var(--t-tiny) var(--ui); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.nt-list { padding: 6px 20px 0; display: flex; flex-direction: column; gap: 10px; }
.nt-note { background: var(--note); color: var(--note-ink); border-radius: 14px; padding: 12px 14px; box-shadow: 0 1px 2px #0002; }
.nt-note p { margin: 0; overflow-wrap: anywhere; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.nt-src { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: var(--t-tiny); opacity: .75; }
.nt .nt-more { min-width: 44px; min-height: 44px; margin: -12px -12px -12px 0; display: grid !important; place-items: center; font-size: 20px; }
.nt-link { background: var(--surface); border: 1px solid var(--card-edge); border-radius: 14px; padding: 10px 14px; box-shadow: 0 1px 2px #0002; }
.nt-link a { color: inherit; text-decoration: none; display: block; }
.nt-link b { display: block; font-size: var(--t-small); line-height: 1.3; overflow-wrap: anywhere; }
.nt-link span { font-size: var(--t-tiny); color: var(--muted); }
.nt-make { position: fixed; inset-inline: 0; bottom: 0; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); background: var(--bg); box-shadow: 0 -1px 0 var(--line); z-index: 5; }
.nt-makei { max-width: 728px; margin: 0 auto; }
.nt-makei .nt-sub { display: block; text-align: center; margin: 0 0 8px; white-space: normal; }
.nt .nt-btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; border-radius: 16px; background: var(--accent); color: var(--accent-ink) !important; font-weight: 700; font-size: var(--t-lead); text-align: center; }
.nt-alt { display: flex; gap: 10px; margin-top: 8px; }
.nt .nt-alt button { flex: 1; min-height: 48px; border: 1.5px solid var(--accent); border-radius: 14px; color: var(--accent); font-weight: 600; text-align: center; padding: 0 8px; }
.nt-seg { display: flex; background: var(--surface-2); border-radius: 12px; padding: 3px; margin: 4px 20px 12px; }
.nt .nt-seg button { flex: 1; text-align: center; min-height: 44px; border-radius: 10px; font-weight: 600; color: var(--muted); }
.nt .nt-seg .on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px #0003; }
.nt-paper { background: var(--surface); margin: 0 16px 16px; border-radius: 20px; padding: 20px 18px; box-shadow: 0 1px 2px #0002, 0 8px 24px #0000000d; border: 1px solid var(--card-edge); }
.nt .nt-paper h2 { font: 700 var(--t-heading)/1.2 var(--serif) !important; margin: 0 0 4px !important; color: var(--ink) !important; overflow-wrap: anywhere; }
.nt .nt-step { font: 700 var(--t-tiny) var(--ui); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 20px 0 4px; }
.nt-row { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); align-items: flex-start; width: 100%; min-height: 52px; }
.nt .nt-row .ck { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--muted); display: grid; place-items: center; color: var(--accent-ink); font-weight: 700; margin-top: 0; }
.nt .nt-row.d .ck { background: var(--ok); border-color: var(--ok); }
.nt-row.d .x { color: var(--muted); text-decoration: line-through; }
.nt-row .x { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.nt .nt-chip { display: inline-block; background: var(--note); color: var(--note-ink); border-radius: 6px; padding: 2px 8px; font-size: var(--t-tiny); margin-top: 4px; min-height: 28px; }
.nt .nt-chip.q { background: var(--accent-soft); color: var(--accent); }
.nt-doc p { margin: 10px 0; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.nt-post { font-size: var(--t-lead); line-height: 1.45; white-space: pre-line; margin: 10px 0; overflow-wrap: anywhere; }
.nt-lab { color: var(--muted); font-size: var(--t-small); margin: 12px 0 0; }
.nt-acts { display: flex; gap: 10px; padding: 0 16px 14px; }
.nt .nt-acts button { flex: 1; min-height: 48px; border-radius: 14px; background: var(--surface); border: 1px solid var(--card-edge); text-align: center; font-weight: 600; box-shadow: 0 1px 2px #0002; }
.nt .nt-acts .p { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.nt-keptin { text-align: center; color: var(--muted); font-size: var(--t-small); padding-bottom: 24px; margin: 0; }
[contenteditable=true] { outline: 2px solid var(--sel); outline-offset: 3px; border-radius: 4px; }
.nt-empty { margin: 36px 24px; text-align: center; color: var(--muted); }
.nt .nt-empty h2 { font: 700 var(--t-heading) var(--serif) !important; color: var(--ink) !important; margin: 0 0 8px !important; }
.nt-empty .nt-btn { max-width: 320px; margin: 18px auto 0; text-decoration: none; }
.nt-scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 40; }
.nt-sheet { position: fixed; inset-inline: 0; bottom: 0; z-index: 41; background: var(--surface); border-radius: 24px 24px 0 0; padding: 10px 16px calc(18px + env(safe-area-inset-bottom)); max-width: 560px; margin: 0 auto; max-height: 80vh; overflow: auto; }
.nt-sheet h3 { font: 700 var(--t-lead) var(--serif); margin: 10px 4px 8px; }
.nt .nt-sheet .opt { display: flex; justify-content: space-between; gap: 8px; width: 100%; padding: 13px 6px; border-top: 1px solid var(--line); min-height: 52px; align-items: center; }
.nt .nt-sheet .opt span { color: var(--muted); font-size: var(--t-small); }
.nt-sheet .nt-note { margin: 6px 0 12px; }
.nt-grab { width: 40px; height: 5px; border-radius: 9px; background: var(--line); margin: 0 auto; }
.nt-toast { position: fixed; inset-inline: 16px; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 50; background: var(--ink); color: var(--bg); border-radius: 16px; padding: 12px 14px; max-width: 420px; margin: 0 auto; }
.nt-wait { text-align: center; color: var(--muted); padding: 60px 24px; }
.nt-fail { margin: 12px 20px; padding: 14px; border-radius: 14px; background: var(--accent-soft); }
.nt .nt-fail button { color: var(--accent); font-weight: 700; min-height: 44px; }
.nt button:focus-visible, .nt a:focus-visible { outline: 2px solid var(--sel); outline-offset: 2px; }
@media (min-width: 900px) {
  .nt-shell { max-width: 1180px; display: grid; grid-template-columns: 1fr; }
  .nt-shell.two { grid-template-columns: 340px 1fr; }
  .nt-shell.two .nt-side { display: block; border-inline-end: 1px solid var(--line); min-height: calc(100vh - 56px); }
  .nt-shell.two .nt-grid { grid-template-columns: 1fr; }
  .nt-shell.two .nt-main { max-width: 700px; }
  .nt-main:not(.open) .nt-grid { grid-template-columns: repeat(3, 1fr); }
  .nt-make { position: sticky; inset-inline: auto; margin-top: 24px; padding-inline: 0; }
  .nt-main { padding-bottom: 30px; }
}
@media print {
  .appbar, .nt-side, .nt-seg, .nt-acts, .nt-keptin, .nt-make, .nt-main > .nt-h, .nt-main > .nt-back { display: none !important; }
  body.nt { background: #fff; color: #000; }
  .nt-paper { box-shadow: none; border: 0; margin: 0; }
}
