.note-journal{box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,var(--note-sidebar,24%));gap:var(--note-gap,80px);width:var(--note-width,92%);max-width:var(--note-maxWidth,1500px);min-width:0;margin:var(--note-top,64px) auto var(--note-bottom,80px);color:var(--note-ink,#171717);font-family:var(--note-font,Arial,Helvetica,sans-serif);text-align:left}
.note-journal *{box-sizing:border-box}.note-journal .note-article{min-width:0;max-width:100%;margin:0;scroll-margin-top:100px}.note-journal .note-title{margin:0 0 12px;font-size:var(--note-titleSize,27px);font-weight:600;line-height:1.3;overflow-wrap:break-word}.note-journal .note-date{display:block;margin:0 0 30px;font-size:var(--note-listSize,12px);color:inherit;opacity:.65}.note-journal .note-date[hidden]{display:none}
.note-journal .note-body{min-width:0;max-width:100%;font-size:var(--note-textSize,17px);line-height:var(--note-lineHeight,1.75);overflow-wrap:break-word;word-break:keep-all;white-space:pre-wrap;text-align:left}.note-journal .note-body>:first-child{margin-top:0}.note-journal .note-body>:last-child{margin-bottom:0}.note-journal .note-body p,.note-journal .note-body div{margin:0 0 .8em}.note-journal .note-body h2{font-size:1.25em;line-height:1.4}.note-journal .note-body h3{font-size:1.1em;line-height:1.4}.note-journal .note-body blockquote{margin:1em 0;padding-left:1em;border-left:1px solid currentColor}.note-journal .note-body a{color:inherit;text-underline-offset:3px}
.note-journal .note-index-panel{min-width:0;align-self:start;margin:0}.note-journal .note-index-panel>summary{display:none;cursor:pointer;font-size:var(--note-listSize,12px);padding:12px 0}.note-journal .note-index{display:grid;gap:var(--note-listGap,14px);margin:0;padding:0;min-width:0}.note-journal .note-entry-link{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:16px;min-width:0;text-decoration:none;color:inherit;font-size:var(--note-listSize,12px);line-height:1.5;letter-spacing:0;text-transform:none;cursor:pointer}.note-journal .note-entry-link time{white-space:nowrap;opacity:.7}.note-journal .note-entry-title{overflow-wrap:break-word}.note-journal .note-entry-link:hover .note-entry-title{text-decoration:underline;text-underline-offset:3px}.note-journal .note-entry-link.is-current .note-entry-title{font-weight:700}.note-journal .note-entry-link:focus-visible{outline:1px solid currentColor;outline-offset:5px}
.note-journal[data-note-mode=mobile]{grid-template-columns:minmax(0,1fr)}.note-journal[data-note-mode=mobile] .note-index-panel{grid-row:1;width:100%}.note-journal[data-note-mode=mobile] .note-index-panel>summary{display:block;list-style:none;border-bottom:1px solid #ddd}
.note-journal[data-note-mode=mobile] .note-index-panel>summary::after {
  content: "";
  float: right;
  width: 10px;
  height: 10px;
  margin: .3em 3px 0 12px;
  border-right: 2px solid #000;
  border-bottom: 2px solid #000;
  transform: rotate(45deg);
}
.note-journal[data-note-mode=mobile] .note-index-panel[open]>summary::after {
  transform: translateY(4px) rotate(225deg);
}
.note-journal[data-note-mode=mobile] .note-index-panel>summary::-webkit-details-marker{display:none}.note-journal[data-note-mode=mobile] .note-index{padding:16px 0}.note-journal[data-note-mode=mobile] .note-entry-link{padding:5px 0;min-height:34px}.note-journal [hidden]{display:none!important}
main.has-note-journal{margin-inline:0!important;padding-bottom:0!important;max-width:none!important;width:100%!important;min-width:0;padding-inline:var(--gutter,24px)}
.note-admin-toolbar{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.note-admin-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:24px;align-items:start}.note-admin-preview{min-width:0;border:1px solid #ddd;overflow:clip;background:var(--paper,#fff)}.note-admin-preview .note-journal{--note-top:32px!important;--note-bottom:40px!important}.note-admin-preview .note-body[contenteditable=true]{min-height:300px;outline:1px dashed #bbb;outline-offset:10px;cursor:text}.note-admin-inspector{border:1px solid #ddd;padding:18px;position:sticky;top:15px}.note-admin-inspector label{display:grid;gap:7px;margin-bottom:14px;font-size:12px}.note-admin-inspector input,.note-admin-inspector select{width:100%;min-width:0;padding:9px;border:1px solid #ccc;background:white;color:#171717}.note-admin-inspector h3{font-size:15px;margin:0 0 16px}.note-admin-inspector fieldset{border:1px solid #ddd;margin:18px 0 0;padding:12px}.note-admin-inspector legend{font-size:12px}.note-format-toolbar{display:flex;flex-wrap:wrap;gap:5px;margin:12px 0 20px}.note-format-toolbar button{min-width:36px;padding:8px;border:1px solid #ccc;background:white;cursor:pointer}.note-admin-preview[data-note-mode=mobile]{max-width:440px;margin-inline:auto;width:100%}.note-admin-empty{padding:35px;color:#777;font-size:13px}.note-back-button{margin-bottom:16px}.note-journal .note-body ul,.note-journal .note-body ol{white-space:normal;padding-left:1.5em}
@media(max-width:1050px){.note-admin-layout{grid-template-columns:minmax(0,1fr)}.note-admin-inspector{position:static}.note-admin-inspector fieldset{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.note-admin-inspector fieldset label{margin:0}}

.note-journal .note-index-panel:not([open])>.note-index{display:none}

.note-journal .has-note-index-scroll { position: relative; }
.note-journal .has-note-index-scroll > .note-index {
  align-content: start;
  max-height: var(--note-index-height, min(var(--note-index-default, 240px), 40dvh));
  overflow: hidden auto;
  padding-inline: 4px 22px;
  scrollbar-width: none;
}
.note-journal .has-note-index-scroll > .note-index::-webkit-scrollbar { display: none; }
.note-journal .has-note-index-scroll.is-note-index-overflowing > .note-index {
  overscroll-behavior-y: contain;
}
.note-index-scrollbar {
  position: absolute;
  right: 0;
  width: 18px;
  cursor: ns-resize;
  touch-action: none;
}
.note-index-scrollbar-thumb {
  position: absolute;
  right: 4px;
  width: 6px;
  border-radius: 6px;
  background: #000;
}
.note-index-resize {
  display: grid;
  place-items: center;
  width: 100%;
  height: 24px;
  padding: 0;
  border: 0;
  border-top: 1px solid #aaa;
  background: transparent;
  color: #000;
  cursor: ns-resize;
  touch-action: none;
}
.note-index-resize::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.note-journal .note-index-panel:not([open]) > :is(.note-index-resize,.note-index-scrollbar) { display: none; }

/* NOTE frames are independent. Text reflows; no content is cropped. */
.note-journal{position:relative}.note-journal.is-note-free{display:block}.note-journal.is-note-free>.note-article,.note-journal.is-note-free>.note-index-panel{position:absolute;margin:0;box-sizing:border-box;max-width:100%;overflow:visible}
.note-journal.is-note-free>.note-article[hidden]{display:none!important}
.note-admin-preview .note-journal.is-note-free .note-body[contenteditable=true]{min-height:1.75em}
.note-journal.has-note-date-columns .note-entry-link{grid-template-columns:minmax(0,var(--note-titleTrack,55fr)) minmax(0,var(--note-dateTrack,45fr));gap:0 min(var(--note-titleDateGap,16px),35%)}
.note-journal.has-note-date-columns .note-entry-link time{white-space:normal;overflow-wrap:break-word;text-align:left}
.note-frame-tools{position:absolute;z-index:5;border:1px solid #aab8cb;pointer-events:none;box-sizing:border-box}
.note-frame-tools.is-selected{border-color:#2877df}.note-box-move{pointer-events:auto;position:absolute;left:-1px;top:-26px;height:24px;padding:2px 8px;background:#fff;border:1px solid #aab8cb;color:#285b9e;font:11px/1.4 Arial,sans-serif;cursor:move;white-space:nowrap;touch-action:none}
.note-frame-tools .note-box-handle{display:block;position:absolute;margin:0;padding:0;min-width:0;min-height:0;background:#fff;border:1px solid #2877df;pointer-events:auto;touch-action:none}
.note-box-n,.note-box-s{left:15px;right:15px;width:calc(100% - 30px);height:8px;cursor:ns-resize}
.note-box-n{top:-4px}.note-box-s{bottom:-4px}.note-box-e,.note-box-w{top:15px;bottom:15px;height:calc(100% - 30px);width:8px;cursor:ew-resize}.note-box-e{right:-4px}.note-box-w{left:-4px}
.note-frame-tools :is(.note-box-nw,.note-box-ne,.note-box-sw,.note-box-se){width:14px;height:14px}.note-box-nw{left:-7px;top:-7px;cursor:nwse-resize}.note-box-ne{right:-7px;top:-7px;cursor:nesw-resize}.note-box-sw{left:-7px;bottom:-7px;cursor:nesw-resize}.note-box-se{right:-7px;bottom:-7px;cursor:nwse-resize}
.note-journal.is-note-dragging{user-select:none}.note-journal.is-note-dragging>.note-article,.note-journal.is-note-dragging>.note-index-panel{pointer-events:none}.note-frame-settings{border:1px solid #ddd;padding:12px;margin-bottom:16px}.note-frame-settings legend{font-size:12px}

.note-admin-preview .note-journal.is-note-free .note-body[contenteditable=true]{outline:none}.note-admin-inspector .note-frame-settings{display:block!important}

.note-journal.is-note-free .note-entry-link time{white-space:normal;overflow-wrap:break-word}

.note-journal.has-note-languages{padding-top:40px}
.note-languagebar{position:absolute;top:0;left:0;right:0;display:flex;justify-content:flex-end;align-items:center;gap:16px;height:24px}
.note-languagebar button{appearance:none;background:none;border:0;border-bottom:1px solid transparent;padding:2px 0;color:inherit;font:12px/1.5 var(--note-font,Arial,sans-serif);cursor:pointer;opacity:.55}
.note-languagebar button[aria-pressed=true]{opacity:1;border-bottom-color:currentColor}.note-languagebar button:hover{opacity:1}.note-languagebar button:focus-visible{outline:1px solid currentColor;outline-offset:3px}
.note-original-language{font-size:.8em;font-weight:400;opacity:.6;white-space:nowrap}.note-read-original{background:none;border:0;border-bottom:1px solid currentColor;color:inherit;padding:3px 0;font:inherit;cursor:pointer}.note-translation-pending{opacity:.65}
.note-admin-preview .note-body[contenteditable=true],.note-admin-preview .note-journal.is-note-free .note-body[contenteditable=true]{min-height:1.75em}

.note-journal.has-note-languages{padding-top:var(--note-language-inset,40px)}
.note-languagebar{left:auto;right:0;width:max-content;max-width:100%;justify-content:flex-start;height:auto;min-height:24px;flex-wrap:wrap;row-gap:4px}
.note-journal.is-note-dragging>.note-languagebar{pointer-events:none}.note-language-tools{z-index:6}

.note-journal :is(.note-body,.note-title,.note-entry-title){word-break:keep-all;line-break:strict;hyphens:none}
.note-admin-inspector{box-sizing:border-box;min-height:0;max-height:var(--inspector-available-height,calc(100dvh - 32px));overflow-y:scroll;overflow-x:hidden;overscroll-behavior-y:contain;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#888 #ededed}
@supports selector(::-webkit-scrollbar){.note-admin-inspector{scrollbar-width:auto;scrollbar-color:auto}}
