@font-face {
  font-family: Inter;
  src: url(/notebook-assets/inter.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Instrument Serif;
  src: url(/notebook-assets/instrument-serif.woff2) format("woff2");
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink:#1a1925;
  --muted:#67635e;
  --cobalt:#293cd8;
  --cream:#fbf7ee;
  --rule:#dcd6c9;
  --serif:"Instrument Serif",Georgia,serif;
  --body:Inter,"Helvetica Neue",Arial,sans-serif;
  --mono:"IBM Plex Mono",ui-monospace,SFMono-Regular,Consolas,monospace;
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  font-size: 15px;
  -webkit-text-size-adjust: 100%;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
textarea,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button {
  background: transparent;
  border: 0;
}
a {
  color: var(--cobalt);
  text-underline-offset: .2em;
}
button:disabled {
  cursor: default;
  opacity: .48;
}
:focus-visible {
  outline: 2px solid #535bff;
  outline-offset: 3px;
}
textarea:focus-visible {
  outline-offset: 6px;
}
::selection {
  background: #dcd9ff;
}
[hidden] {
  display: none !important;
}
.sr,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus {
  position: fixed;
  z-index: 10;
  background: var(--cream);
  padding: 12px;
}
i[data-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 17px;
  height: 17px;
  font-style: normal;
}
i[data-icon] svg {
  width: 100%;
  height: 100%;
  display: block;
}
.mast {
  height: 66px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 clamp(17px, 2.6vw, 40px);
  background: #f6efdf;
  border-bottom: 1px solid #cfc8ba;
  position: sticky;
  top: 0;
  z-index: 2;
}
/* Keep the notebook signature and publisher credit together. */
.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.product-mark { display: block; width: 38px; height: 38px; }
.brand-words { display: grid; justify-items: start; gap: 4px; }
.product-name { font: 400 32px/.85 var(--serif); letter-spacing: -.035em; }
.byline { display: flex; align-items: baseline; gap: 4px; font: 500 10px/1 var(--body); color: #524c49; }
.byline img { display: block; width: 72px; height: auto; }
.mast-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}
.mast-actions a,
.mast-actions button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 560;
  white-space: nowrap;
}
.workspace-link {
  color: var(--ink);
  text-decoration: none;
}
.workspace-link:hover {
  text-decoration: underline;
}
.workspace-link i {
  width: 15px;
  height: 15px;
}
.sync-status {
  padding: 3px 11px;
  border: 1px solid #cec6b7;
  border-radius: 20px;
}
.state-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #73766d;
}
.sync-status[data-state=synced] .state-dot {
  background: #497344;
}
.sync-status[data-state=syncing] .state-dot,
.sync-status[data-state=saving] .state-dot {
  background: #424ae2;
}
.sync-status[data-state=offline] .state-dot,
.sync-status[data-state=error] .state-dot {
  background: #c4512e;
}
.mast-actions .mobile-library {
  display: none;
}
.desk {
  display: grid;
  grid-template-columns: clamp(182px, 16.4vw, 258px) clamp(226px, 21vw, 354px) minmax(0, 1fr);
  min-height: calc(100dvh - 66px);
  align-items: stretch;
}
.rail {
  position: sticky;
  top: 66px;
  height: calc(100dvh - 66px);
  min-height: 440px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 30px clamp(13px, 1.45vw, 23px) 20px;
  background: #171621;
  color: #f8f2e5;
  isolation: isolate;
}
.rail::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 122% 21% at 26% 111%,
      #e56942 4%,
      #8d4970 37%,
      #4f347e 59%,
      transparent 91%),
    radial-gradient(
      ellipse 100% 33% at -20% 98%,
      #2a36ac 0%,
      #23254a 45%,
      transparent 76%);
}
.rail-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 6px 24px;
}
.rail h1 {
  font: 400 clamp(2rem, 2.4vw, 2.55rem)/1 var(--serif);
  letter-spacing: -.028em;
  margin: 0;
}
.new-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #f4eedf;
  color: #201e27;
  border: 1px solid #f3eddd;
  border-radius: 5px;
  padding: 10px 8px;
  font-weight: 650;
  min-height: 39px;
  margin-bottom: 23px;
}
.new-note:hover {
  background: #fffbf4;
}
.rail-main,
.rail-foot,
.taxonomy {
  display: grid;
  gap: 3px;
}
.side-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 36px;
  text-align: left;
  padding: 8px 10px;
  color: #ded9df;
  font-size: .85rem;
  font-weight: 470;
  border-radius: 5px;
  text-decoration: none;
  overflow-wrap: anywhere;
  line-height: 1.25;
}
.side-item.active {
  background: #34313e;
  color: #fffbf4;
}
.side-item:hover {
  background: #302e3d;
}
.side-item i {
  width: 16px;
  height: 16px;
  color: #bcb6ca;
}
.side-item.active i {
  color: #d7ccff;
}
.count,
.side-item .end {
  margin-left: auto;
  color: #bab2c8;
}
.count {
  font: 11px/1.3 var(--mono);
}
.rail-foot {
  margin-top: auto;
  padding-top: 24px;
}
.rail-foot .side-item {
  font-size: .79rem;
}
.taxonomy {
  margin: 22px 0 7px;
}
.taxonomy h2 {
  margin: 0 10px 3px;
  font: 600 .68rem var(--body);
  color: #b6adbf;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.taxonomy .side-item {
  font-size: .79rem;
  min-height: 31px;
}
.library {
  height: calc(100dvh - 66px);
  min-height: 440px;
  position: sticky;
  top: 66px;
  overflow-y: auto;
  background: #ede8dc;
  border-right: 1px solid var(--rule);
  color: var(--ink);
}
.library-head {
  padding: 30px clamp(15px, 1.5vw, 26px) 12px;
}
.library h2 {
  font: 400 clamp(2rem, 2.6vw, 2.8rem)/1.08 var(--serif);
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
  margin: 0 0 18px;
}
.search {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #c9c0b0;
  border-radius: 5px;
  background: #f7f2e8;
  color: #625f5a;
  padding: 0 10px;
}
.search i {
  width: 15px;
  height: 15px;
}
.search:focus-within {
  outline: 2px solid #6c66bb;
  outline-offset: 2px;
}
.search input {
  width: 100%;
  min-width: 0;
  background: transparent;
  color: var(--ink);
  border: 0;
  outline: 0;
  font-size: .83rem;
  padding: 8px 0;
}
.search kbd {
  font: 11px var(--mono);
  border: 1px solid #c7c0b4;
  padding: 1px 4px;
  border-radius: 2px;
}
.sort-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 17px;
  font: 11px var(--body);
  color: #625e57;
}
.sort-row label {
  white-space: nowrap;
}
.sort-row select {
  font-size: 11px;
  border: none;
  background: transparent;
  max-width: 74px;
  font-weight: 600;
  padding: 3px 0;
}
.list {
  padding: 0 10px 20px;
}
.note-row {
  display: block;
  text-align: left;
  color: var(--ink);
  width: 100%;
  padding: 14px 13px 12px;
  margin: 2px 0;
  border: 1px solid transparent;
  border-bottom-color: #d5d0c3;
  border-radius: 0;
  min-height: 71px;
  position: relative;
}
.note-row:hover {
  background: #f4efe4;
}
.note-row[aria-current=true] {
  background: #fbf7ec;
  border: 1px solid #cfc5b5;
  border-radius: 5px;
  box-shadow: inset 3px 0 0 #4a43ab;
}
.row-title {
  font-weight: 650;
  font-size: .91rem;
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-wrap: anywhere;
  line-height: 1.34;
}
.row-title i {
  width: 13px;
  height: 13px;
  color: #59528b;
}
.row-preview {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 5px 0 8px;
  color: #625d54;
  font-size: .79rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.row-meta {
  display: block;
  color: #696456;
  font: 10px/1.5 var(--mono);
  overflow-wrap: anywhere;
}
.empty-list {
  padding: 15px 10px;
  font-size: .83rem;
  line-height: 1.55;
  color: var(--muted);
}
.empty-list button {
  display: block;
  margin: 8px 0 0;
  padding: 0;
  color: var(--cobalt);
  text-decoration: underline;
  text-underline-offset: .2em;
  font-weight: 560;
}
.sheet {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #fbf8ef;
}
.sheet-toolbar {
  min-height: 63px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 15px;
  border-bottom: 1px solid var(--rule);
  padding: 10px clamp(15px, 2.5vw, 42px);
}
.mode-switch {
  display: inline-flex;
  gap: 1px;
  padding: 3px;
  background: #eeeadf;
  border: 1px solid #dcd6c8;
  border-radius: 6px;
}
.mode-switch button {
  font-size: .78rem;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  min-height: 29px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #625e58;
}
.mode-switch [aria-pressed=true] {
  color: var(--ink);
  font-weight: 620;
  background: #fffdf6;
  border-color: #d6cfc0;
  box-shadow: 0 1px 2px #2c23480b;
}
.mode-switch i {
  width: 14px;
  height: 14px;
}
.writing-surface {
  align-self: center;
  width: 100%;
  max-width: 964px;
  padding: clamp(28px, 5vw, 79px) clamp(22px, 5.8vw, 92px) 28px;
  flex: 1;
  min-width: 0;
}
.sheet-meta,
.sheet-folder,
.sheet-options,
.tags,
.format-bar,
.sheet-foot,
.sheet-foot > span {
  display: flex;
  align-items: center;
}
.sheet-meta {
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  margin-bottom: 10px;
}
.sheet-folder {
  gap: 7px;
  font: 11px/1.4 var(--mono);
  overflow-wrap: anywhere;
}
.sheet-folder i {
  width: 14px;
  height: 14px;
}
.sheet-options {
  gap: 3px;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #655e55;
  padding: 5px;
  width: 31px;
  height: 31px;
  border-radius: 4px;
}
.icon-button:hover,
.format-bar button:hover {
  background: #ebe5d9;
  color: var(--ink);
}
.icon-button[aria-pressed=true] {
  background: #e9e5ff;
  color: #4935a0;
}
.note-title,
.note-body {
  border: 0;
  resize: none;
  display: block;
  width: 100%;
  background: transparent;
  border-radius: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  box-shadow: none;
}
.note-title:focus,
.note-body:focus {
  outline: none;
}
.note-title {
  font: 400 clamp(2.7rem, 4.4vw, 4.9rem)/1.07 var(--serif);
  letter-spacing: -.035em;
  min-height: 1.13em;
  color: var(--ink);
}
.note-title::placeholder {
  color: #8e8577;
  opacity: 1;
}
.tags {
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 0;
}
.tags:empty {
  display: none;
}
.tag {
  background: #efeadf;
  color: #665a4b;
  font: 11px var(--mono);
  padding: 4px 7px;
  border-radius: 4px;
  overflow-wrap: anywhere;
}
.format-bar {
  flex-wrap: wrap;
  gap: 3px;
  border-top: 1px solid var(--rule);
  margin: 22px 0 16px;
  padding: 8px 0 0;
}
.format-bar button {
  padding: 3px 6px;
  min-width: 30px;
  min-height: 28px;
  color: #625c57;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 600 15px Georgia, serif;
}
.format-bar .ask-selection {
  margin-left: auto;
  gap: 6px;
  padding: 4px 9px;
  font: 600 .78rem/1.35 var(--body);
  color: #513897;
  background: #f0eafa;
}
.note-body.passage-measure {
  position: fixed;
  visibility: hidden;
  pointer-events: none;
  top: 0;
  left: 0;
  white-space: pre-wrap;
  min-height: 0;
}
.format-bar button > span {
  font-size: 10px;
  align-self: flex-end;
}
.format-bar [data-format=link] {
  border-left: 1px solid var(--rule);
  border-radius: 0;
  margin-left: 4px;
  padding-left: 12px;
}
.format-bar i {
  width: 15px;
  height: 15px;
}
.note-body,
.preview {
  font: 400 clamp(.98rem, 1.07vw, 1.1rem)/1.72 var(--body);
  color: #2e2b2b;
  min-height: 275px;
  tab-size: 2;
  overflow-wrap: anywhere;
}
.note-body::placeholder {
  color: #797166;
  opacity: 1;
}
.starter {
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: .78rem;
  color: #70695e;
}
.starter > span {
  margin-right: 5px;
}
.starter button,
.trash-panel button {
  padding: 6px 9px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: #f6f1e7;
  color: #443d36;
  font-weight: 520;
}
.starter button span {
  color: #7661b3;
}
.sheet-foot {
  flex-wrap: wrap;
  gap: 10px 18px;
  border-top: 1px solid var(--rule);
  min-height: 42px;
  color: #6b645b;
  padding: 11px clamp(16px, 2.5vw, 42px);
  font: 11px/1.5 var(--mono);
}
.sheet-foot > span {
  gap: 6px;
}
.sheet-foot i {
  width: 13px;
  height: 13px;
}
.save-label {
  margin-left: auto;
}
.connections {
  border-top: 1px solid var(--rule);
  padding-top: 18px;
  margin: 25px 0 10px;
}
.connections h3 {
  font: 400 1.55rem var(--serif);
  margin: 0 0 12px;
}
#connection-list {
  display: grid;
  gap: 8px;
}
.mention-panel { margin-top: 12px; font-size: .87rem; }
.mention-panel summary { width: fit-content; padding: 6px 0; font-weight: 600; cursor: pointer; }
.mention-panel[open] > p { color: var(--muted); margin: 6px 0; }
.mention-panel ul { margin: 0; padding: 0; list-style: none; }
.mention-panel li { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.mention-panel li div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px; }
.mention-panel li p { margin: 5px 0 0; overflow-wrap: anywhere; line-height: 1.45; }
.mention-panel mark { background: #f5dec0; color: inherit; }
.mention-controls { display: flex; gap: 12px; }
.mention-controls button, .mention-action { padding: 7px 4px; color: var(--cobalt); font-size: .8rem; }
.mention-controls button:hover, .mention-action:hover { text-decoration: underline; }
.link-group {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
  font-size: .83rem;
}
.link-group > span {
  color: var(--muted);
  font-size: .73rem;
}
.note-link {
  color: var(--cobalt);
  padding: 0;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: .2em;
  overflow-wrap: anywhere;
}
.note-link.missing {
  text-decoration-style: dashed;
}
.preview {
  margin-top: 22px;
  padding-top: 8px;
  border-top: 1px solid var(--rule);
}
.preview p,
.preview li,
.preview blockquote {
  white-space: pre-wrap;
}
.preview p {
  margin: 10px 0;
}
.preview h1,
.preview h2,
.preview h3,
.preview h4,
.preview h5,
.preview h6 {
  font: 400 1.85em/1.15 var(--serif);
  margin: 1em 0 .35em;
}
.preview h2 {
  font-size: 1.6em;
}
.preview h3,
.preview h4,
.preview h5,
.preview h6 {
  font-size: 1.35em;
}
.preview code {
  font: .88em var(--mono);
  background: #eee9dc;
  padding: 2px 4px;
  border-radius: 3px;
}
.preview pre {
  background: #f1ecdf;
  border: 1px solid var(--rule);
  padding: 12px;
  overflow: auto;
}
.preview pre code {
  padding: 0;
  background: none;
}
.preview blockquote {
  border-left: 3px solid #7a7199;
  padding-left: 13px;
  margin: 12px 0;
  color: #645c66;
}
.preview ul,
.preview ol {
  padding-left: 1.5em;
  margin: .4em 0;
}
.preview .task-list {
  list-style: none;
  padding-left: 0;
}
.preview .task-done {
  color: var(--muted);
}
.preview .task-check {
  margin-right: 6px;
  color: #514c75;
}
.preview-empty {
  color: var(--muted);
}
.trash-panel {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border: 1px solid #d9c5af;
  background: #f7efdf;
  font-size: .84rem;
  margin: 9px 0 15px;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 8;
  padding: 10px 15px;
  color: #f9f4e7;
  background: #252331;
  border-radius: 5px;
  box-shadow: 0 3px 15px #19162122;
  font-size: .84rem;
  max-width: min(95vw, 640px);
  text-align: center;
  pointer-events: none;
}
.toast:empty {
  display: none;
}
#sheet-dialog {
  border: 1px solid #c7bfaf;
  border-radius: 8px;
  background: #fbf7ec;
  color: var(--ink);
  padding: 0;
  width: min(92vw, 500px);
  max-height: 85dvh;
  box-shadow: 0 20px 110px #100f2655;
  overflow: auto;
}
#sheet-dialog::backdrop {
  background: #15132177;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--rule);
  padding: 18px 22px;
}
.dialog-head h2 {
  font: 400 2rem/1.08 var(--serif);
  margin: 0;
}
.dialog-body {
  padding: 20px 22px 24px;
}
.dialog-body p {
  font-size: .9rem;
  line-height: 1.55;
  color: #514b45;
  margin: 0 0 13px;
}
.dialog-body label {
  display: grid;
  gap: 5px;
  font-weight: 600;
  font-size: .8rem;
  margin-bottom: 15px;
}
.dialog-body input,
.dialog-body select {
  padding: 9px 10px;
  border: 1px solid #c6beae;
  border-radius: 4px;
  background: #fffcf4;
  width: 100%;
}
.dialog-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.dialog-actions > * {
  text-decoration: none;
  display: inline-flex;
  min-height: 35px;
  align-items: center;
  padding: 7px 10px;
  border-radius: 4px;
  border: 1px solid #c9c1b3;
  background: #f5efe3;
  font-size: .82rem;
  font-weight: 560;
  color: var(--ink);
}
.dialog-actions .primary {
  background: #303bb4;
  border-color: #303bb4;
  color: white;
}
.dialog-list {
  display: grid;
  gap: 5px;
  margin-top: 12px;
}
.dialog-list button {
  text-align: left;
  padding: 8px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  font-size: .84rem;
  overflow-wrap: anywhere;
}
@media (min-width: 1500px) {
  .sheet-toolbar {
    padding-inline: 42px;
  }
}
@media (max-width: 960px) {
  .desk {
    grid-template-columns: 165px 203px minmax(0, 1fr);
  }
  .rail {
    padding-inline: 11px;
  }
  .writing-surface {
    padding-inline: 25px;
  }
  .sheet-toolbar {
    padding-inline: 14px;
  }
  .library-head {
    padding-inline: 16px;
  }
  .mast {
    gap: 14px;
  }
  .mast-actions {
    gap: 13px;
  }
  .sort-row {
    font-size: 10px;
  }
}
@media (max-width: 800px) {
  .mast {
    height: 56px;
    padding: 0 14px;
  }
  .product-name { font-size: 27px; }
  .product-mark { width: 32px; height: 32px; }
  .brand { gap: 7px; }
  .byline { font-size: 9px; }
  .byline img { width: 65px; }
  .mast-actions {
    gap: 8px;
  }
  .mast-actions .mobile-library {
    display: inline-flex;
    font-size: .8rem;
  }
  .mast-actions .workspace-link {
    display: none;
  }
  .mast-actions .sync-status {
    padding: 6px;
    border: 0;
  }
  .desk {
    display: block;
    min-height: calc(100dvh - 56px);
  }
  .rail,
  .library {
    display: none;
  }
  .sheet {
    min-height: calc(100dvh - 56px);
  }
  .sheet-toolbar {
    min-height: 55px;
  }
  .writing-surface {
    padding: 26px max(20px, 5vw);
  }
  .sheet-foot {
    padding: 9px 16px;
  }
  .note-title {
    font-size: clamp(2.9rem, 8vw, 4rem);
  }
  .note-body {
    min-height: 245px;
  }
  .rail,
  .library {
    position: static;
    height: auto;
    min-height: 0;
  }
  .rail {
    padding: 16px 14px 13px;
  }
  .rail-head {
    display: none;
  }
  .new-note {
    margin: 0 0 10px;
    min-height: 36px;
  }
  .rail-main,
  .rail-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }
  .rail-foot {
    margin: 0;
    padding-top: 10px;
  }
  .side-item {
    width: auto;
    min-height: 32px;
    font-size: .77rem;
  }
  .rail-foot .side-item {
    font-size: .74rem;
  }
  .taxonomy {
    margin: 8px 0 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }
  .taxonomy h2 {
    margin: 0 3px 0 9px;
  }
  .taxonomy .side-item {
    min-height: 26px;
  }
  .count {
    margin-left: 1px;
  }
  .side-item .end {
    display: none;
  }
  .library {
    min-height: 45dvh;
    border: 0;
  }
  .library-head {
    padding-top: 20px;
  }
  .list {
    padding: 0 13px 20px;
  }
  .note-row {
    min-height: 58px;
  }
  .library h2 {
    margin-bottom: 11px;
  }
  .sort-row {
    margin-top: 8px;
  }
  body[data-pane=library] .rail {
    display: flex;
  }
  body[data-pane=library] .library {
    display: block;
  }
  body[data-pane=library] .sheet {
    display: none;
  }
  .sheet-toolbar [data-notebook-tools] {
    margin-left: auto;
  }
  .sync-status:focus-visible {
    outline-offset: 1px;
  }
}
@media (max-width: 470px) {
  .product-mark { width: 28px; height: 28px; }
  .product-name { font-size: 25px; }
  .mast {
    gap: 9px;
  }
  .mast-actions {
    gap: 0;
  }
  .sync-status #sync-label {
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 10px;
  }
  .mast-actions .mobile-library {
    gap: 4px;
  }
  .mobile-library i {
    width: 14px;
    height: 14px;
  }
  .sheet-toolbar {
    gap: 7px;
    padding: 8px 10px;
  }
  .mode-switch button {
    padding: 5px 6px;
    font-size: .73rem;
  }
  .mode-switch button i {
    display: none;
  }
  .sort-row {
    font-size: 11px;
  }
  .sheet-foot {
    gap: 7px 10px;
    font-size: 10px;
  }
  .toast {
    width: max-content;
    max-width: 92vw;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
.dialog-body .offline-setting {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  line-height: 1.5;
  margin: 19px 0 8px;
  font-weight: 500;
}
.offline-setting input {
  accent-color: var(--cobalt);
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  padding: 0;
}
.note-title:focus-visible,
.note-body:focus-visible {
  outline: 1px solid #ada5cb;
  outline-offset: 5px;
  border-radius: 2px;
}
@media (max-width: 800px) {
  .note-body,
  .search input,
  .dialog-body input,
  .nbt-dialog textarea {
    font-size: 16px;
  }
}

@media (min-width: 801px) {
  body.focus-mode .rail, body.focus-mode .library { display: none; }
  body.focus-mode .desk { grid-template-columns: minmax(0, 1fr); }
  body.focus-mode .sheet-toolbar { padding-inline: max(24px, calc((100vw - 810px) / 2)); }
}
@media (max-width: 800px) { #focus-mode { display: none; } }
