.essay-outline { position: fixed; z-index: 20; top: var(--outline-top, 192px); left: 16px; width: max(48px, calc((100vw - 860px) / 2 - 32px)); max-width: 200px; display: grid; align-items: start; font-size: 13px; line-height: 1.35; }
.outline-trigger, .outline-links { grid-area: 1 / 1; }
.outline-trigger { display: block; width: 100%; min-width: 44px; padding: 8px 0; border: 0; background: transparent; color: inherit; cursor: pointer; opacity: 1; transition: opacity 160ms ease; }
.outline-strokes { display: grid; gap: 11px; padding: 0 0 0 5px; }
.outline-strokes i { display: block; width: var(--stroke-width); height: 1px; background: #bbb; }
.outline-strokes i.current { width: 31px; height: 2px; background: #000; }
.outline-links { max-height: calc(100dvh - var(--outline-top, 192px) - 24px); overflow-y: auto; overscroll-behavior: contain; padding: 2px 0; background: white; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 160ms ease, visibility 0s linear 160ms; }
.outline-links a { display: block; position: relative; padding: 3px 5px 3px 12px; color: #000; text-decoration: none; overflow-wrap: normal; hyphens: none; }
.outline-links a[aria-current]::before { content: ''; position: absolute; left: 4px; top: 6px; bottom: 6px; border-left: 1px solid #000; }
.essay-outline.is-open .outline-links { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.essay-outline.is-open .outline-trigger { opacity: 0; pointer-events: none; }
.essay-outline a:focus-visible, .outline-trigger:focus-visible, .review-note button:focus-visible, .review-note-orb:focus-visible, .review-note-handle:focus-visible { outline: 1px solid #444; outline-offset: 3px; }
.review-note { position: fixed; z-index: 30; display: flex; flex-direction: column; width: 420px; height: 420px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); padding-bottom: 28px; background: white; border: 1px solid #aaa; box-shadow: 0 3px 12px #0000000d; text-align: left; transform-origin: top left; }
.review-note header { display: flex; flex-shrink: 0; align-items: center; gap: 8px; padding: 8px 10px 8px 16px; border-bottom: 1px solid #ddd; }
.review-note-handle { flex: 1; cursor: grab; touch-action: none; user-select: none; font-size: 14px; line-height: 1.4; }
.review-note-handle::before { content: '⠿'; margin-right: 9px; color: #999; }
.review-note-handle:active { cursor: grabbing; }
.review-note button { font: inherit; color: #555; background: white; border: 0; cursor: pointer; }
.review-note-minimise { width: 36px; height: 36px; font-size: 21px !important; }
.review-note > .review-note-body { flex: 1; min-height: 0; }
.review-note-body { padding: 18px 20px 24px; overflow-y: auto; overscroll-behavior: contain; overflow-wrap: anywhere; }
.review-note .review-note-resize { position: absolute; right: 0; bottom: 0; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; cursor: nwse-resize; touch-action: none; }
.review-note-body p, .review-note-body li { font-size: 16px; line-height: 1.55; text-align: left; hyphens: auto; }
.review-note-body p { margin: 0 0 15px; }
.review-note-body ul, .review-note-body ol { padding-left: 21px; margin: 0 0 16px; }
.review-note-body li { padding-left: 0; margin-bottom: 6px; }
.review-note-body h1, .review-note-body h2, .review-note-body h3, .review-note-body h4, .review-note-body h5, .review-note-body h6 { font-size: 19px; line-height: 1.3; font-weight: 400; letter-spacing: 0; margin: 20px 0 12px; }
.review-note-body > :first-child { margin-top: 0; }
.review-note-body > :last-child { margin-bottom: 0; }
.review-note-body blockquote { margin: 16px 0; padding-left: 14px; border-left: 1px solid #ccc; color: #666; }
.review-note-body pre { overflow-x: auto; font-size: 12px; white-space: pre-wrap; }
.review-note-body table { border-collapse: collapse; font-size: 13px; }
.review-note-body th, .review-note-body td { border-bottom: 1px solid #ddd; padding: 5px; }
.review-note-orb { position: fixed; z-index: 30; right: 22px; bottom: 24px; width: 46px; height: 46px; border: 1px solid #aaa; border-radius: 50%; background: white; color: #555; display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 6px #0000000a; }
.review-note[hidden], .review-note-orb[hidden] { display: none; }
@media (hover: hover) { .outline-links a:hover { text-decoration: underline; text-underline-offset: 3px; } .review-note-orb:hover { border-color: #555; } }
@media (prefers-reduced-motion: reduce) { .outline-trigger, .outline-links { transition: none; } }
@media (max-width: 1179px) {
  .essay-outline { display: none; }
}
@media (max-width: 700px) {
  .review-note { padding-bottom: 36px; }
  .review-note-minimise { width: 44px; height: 44px; }
  .review-note .review-note-resize { width: 36px; height: 36px; }
  .review-note-orb { right: 16px; bottom: 24px; }
}
@media print { .essay-outline, .review-note, .review-note-orb { display: none !important; } }
