.notes-intro { max-width: 42rem; margin-bottom: 3.5rem; }
.notes-intro .eyebrow [lang="zh"] { margin-left: 1rem; letter-spacing: 0.15em; }
.notes-intro > p:last-child { font-size: 1.2rem; line-height: 1.8; }
.notes-translation { display: block; font-size: 1rem; margin-top: 0.3rem; }
.notes-empty { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--hairline); padding: 3.5rem 0; display: flex; gap: 1.6rem; align-items: center; }
.notes-mark { font-family: var(--serif-zh); font-size: 3.2rem; color: var(--vermillion-deep); line-height: 1; }
.notes-empty h2 { font-size: clamp(1.2rem, 3vw, 1.5rem); font-weight: normal; margin: 0; }
.notes-empty p { color: var(--ink-soft); margin: 0.6rem 0 0; }
.notes-frame .essay-footer { margin-top: 4rem; }
.notes-tools { display: flex; align-items: end; gap: 1rem; margin: 0 0 1.25rem; }
.notes-tools > div { min-width: 0; }
.notes-tools > div:first-child { flex: 1; }
.notes-tools label { display: block; font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 0.45rem; }
.notes-tools label [lang="zh"] { margin-left: 0.4rem; }
.notes-tools input, .notes-tools select { width: 100%; min-height: 2.8rem; font: inherit; border: 1px solid var(--hairline); border-radius: 0; color: var(--ink); background: var(--paper); padding: 0.55rem 0.75rem; }
.notes-tools input::placeholder { color: var(--ink-soft); opacity: 1; }
.notes-tools button { min-height: 2.8rem; padding: 0.4rem 0.6rem; text-decoration: underline; text-underline-offset: 0.2em; }
.notes-count { color: var(--ink-soft); font-size: 0.9rem; }
.notes-no-results { padding: 2rem 0; }
.notes-list .note-summary { font-size: 1rem; color: var(--ink-soft); margin: 0.7rem 0 0; }
.note-origin, .note-credit { font-size: 0.95rem; line-height: 1.7; color: var(--ink-soft); }
.note-origin a { text-decoration: underline; text-underline-offset: 0.2em; }
.note-body table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.95rem; }
.note-body th, .note-body td { text-align: left; padding: 0.65rem 0.85rem; border: 1px solid var(--hairline); min-width: 6rem; }
.note-body th { background: var(--paper-deep); }
.note-body pre { max-width: 100%; overflow: auto; background: var(--paper-deep); padding: 1rem; font-size: 0.95rem; }
.note-body code { font-size: 0.85em; overflow-wrap: anywhere; }
.note-body details { margin: 1.5rem 0; border: 1px solid var(--hairline); padding: 0.8rem 1rem; }
.note-body summary { cursor: pointer; color: var(--vermillion-deep); }
.note-body details[open] summary { margin-bottom: 1rem; }
.note-body img { max-width: 100%; height: auto; }
.notes-frame [hidden] { display: none !important; }
@media (max-width: 600px) {
  .notes-intro { margin-bottom: 2.5rem; }
  .notes-tools { flex-wrap: wrap; }
  .notes-tools > div:first-child { flex-basis: 100%; }
  .notes-tools > div:nth-child(2) { flex: 1; }
  .notes-empty { padding: 2.5rem 0; gap: 1rem; align-items: flex-start; }
  .notes-mark { font-size: 2.5rem; }
}
.notes-thinker{margin:3.5rem 0 4rem;scroll-margin-top:2rem}
.notes-thinker>h2{font-size:1.55rem;font-weight:400;border-bottom:1px solid var(--hairline);padding-bottom:.75rem;margin-bottom:1.5rem}
.notes-thinker>h2>span,.notes-work>h3>span{display:block;color:var(--ink-soft);font-size:.72em;margin-top:.3rem;font-weight:400}
.notes-work{margin:1.8rem 0 2.5rem}
.notes-work>h3{font-size:1.08rem;font-weight:400;margin:0 0 .7rem}
.notes-list h4{font-size:1.05rem;font-weight:400;margin:0;line-height:1.55}
.note-title-zh{display:block;font-size:.87em;color:var(--ink-soft);margin-top:.3rem}
.note-context{font-size:.83rem;line-height:1.7;color:var(--ink-soft);margin-bottom:1.5rem}
.note-body figure{margin:2rem auto;text-align:center}
.note-body figure img{display:block;max-width:100%;height:auto;margin:auto}
.note-body figure img[src$="time-consciousness.png"]{max-height:42rem;width:auto}
.note-body figcaption{font-size:.75rem;line-height:1.6;color:var(--ink-soft);margin:1rem auto;max-width:40rem}
.notes-tools{display:grid;grid-template-columns:minmax(12rem,2fr) minmax(8rem,1fr) minmax(12rem,1.5fr) auto}
.notes-thinker[hidden],.notes-work[hidden]{display:none!important}
@media(max-width:760px){.notes-tools{display:grid;grid-template-columns:1fr 1fr}.notes-tools>div:first-child{grid-column:1/-1}.notes-list h4{font-size:1rem}.notes-thinker>h2{font-size:1.35rem}}
@media(max-width:440px){.notes-tools{display:grid;grid-template-columns:1fr}.notes-list>li>a{grid-template-columns:1fr;gap:.35rem}.notes-thinker{margin-top:2.5rem}}
.note-undated span{display:block;white-space:nowrap}

/* Notes search: one quiet, tactile control panel. */
.notes-tools {
  display: grid;
  grid-template-columns: minmax(15rem, 1.7fr) minmax(9rem, 0.85fr) minmax(13rem, 1.35fr) auto;
  align-items: end;
  gap: 0.9rem;
  margin: 0 0 1rem;
  padding: 1rem;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  background: var(--paper-deep);
  box-shadow: 0 2px 12px rgba(33, 29, 24, 0.035);
}
.notes-tools > div { min-width: 0; }
.notes-tools label {
  display: block;
  margin: 0 0 0.45rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.4;
  letter-spacing: 0.025em;
}
.notes-tools label [lang="zh"] { margin-left: 0.38rem; letter-spacing: 0; }
.notes-tools input,
.notes-tools select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 2.9rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  color: var(--ink);
  background-color: var(--paper);
  font: inherit;
  font-size: 0.98rem;
  line-height: 1.35;
  box-shadow: inset 0 1px 2px rgba(33, 29, 24, 0.035);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.notes-tools select {
  padding-right: 2.35rem;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%234a443b' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
}
:root[data-theme="dark"] .notes-tools select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23c2b89f' stroke-width='1.4'/%3E%3C/svg%3E");
}
.notes-tools input::placeholder { color: var(--faint); opacity: 1; }
.notes-tools input:focus-visible,
.notes-tools select:focus-visible {
  outline: 2px solid var(--vermillion);
  outline-offset: 2px;
  border-color: var(--vermillion);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--vermillion) 12%, transparent);
}
:root:not([data-theme="dark"]) .notes-tools { background: #ece5d6; }
:root:not([data-theme="dark"]) .notes-tools input,
:root:not([data-theme="dark"]) .notes-tools select { color: #211d18; background-color: #f5f0e6; }
:root[data-theme="dark"] .notes-tools { background: #201b14; border-color: #383226; }
:root[data-theme="dark"] .notes-tools input,
:root[data-theme="dark"] .notes-tools select {
  color: #e7dfcc;
  background-color: #1a1712;
  border-color: #504638;
}
.notes-tools button {
  min-height: 2.9rem;
  padding: 0.45rem 0.55rem;
  color: var(--vermillion-deep);
  font-size: 0.9rem;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--vermillion-deep) 45%, transparent);
  text-underline-offset: 0.28em;
  transition: color 0.18s ease, background-color 0.18s ease;
}
.notes-tools button:hover { color: var(--ink); }
.notes-tools button:focus-visible { outline: 2px solid var(--vermillion); outline-offset: 2px; }
.notes-count { margin: 0.6rem 0 2rem; color: var(--ink-soft); font-size: 0.88rem; }
@media (max-width: 760px) {
  .notes-tools { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 0.8rem; }
  .notes-tools > div:first-child { grid-column: 1 / -1; }
  .notes-tools button { justify-self: end; }
}
@media (max-width: 440px) {
  .notes-tools { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr); gap: 0.75rem 0.6rem; padding: 0.85rem; }
  .notes-tools > div:first-child,
  .notes-tools button { grid-column: 1 / -1; }
  .notes-tools label { margin-bottom: 0.35rem; }
  .notes-tools input, .notes-tools select { min-height: 2.75rem; font-size: 0.88rem; }
  .notes-tools select { padding-right: 1.75rem; background-position: right 0.55rem center; }
  .notes-tools button { min-height: 2.35rem; }
}
@media (max-width: 355px) {
  .notes-tools { grid-template-columns: 1fr; }
  .notes-tools > div:first-child { grid-column: auto; }
}
