:root{--note-accent: #a80166;--note-quote-border: rgba(21, 23, 27, .38);--note-danger: #b3261e;--note-surface-shadow: 0 8px 24px -4px rgba(14, 18, 27, .12), 0 1px 2px rgba(14, 18, 27, .14)}[data-theme=dark]{--note-accent: #fd3fb0;--note-quote-border: rgba(230, 232, 235, .4);--note-danger: #e2564b;--note-surface-shadow: 0 8px 24px -4px rgba(0, 0, 0, .5), 0 1px 2px rgba(0, 0, 0, .4)}.notes-ui{font-family:var(--ui);--note-bar-height: 48px}.note-mark{background:color-mix(in srgb,var(--note-accent) 13%,transparent);color:inherit;border-radius:2px;box-shadow:inset 0 -1.5px color-mix(in srgb,var(--note-accent) 50%,transparent);padding:1px 0}@keyframes note-flash{0%,to{background:transparent;box-shadow:none}15%,55%{background:color-mix(in srgb,var(--note-accent) 16%,transparent);box-shadow:0 0 0 6px color-mix(in srgb,var(--note-accent) 16%,transparent)}}.post [data-note-target].note-flash{animation:note-flash 1.4s ease-out;border-radius:8px}@media(prefers-reduced-motion:reduce){.post [data-note-target].note-flash{animation:none}}.note-block{box-shadow:-14px 0 0 -12px var(--note-accent)}.note-chip{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;margin:0 2px 0 5px;padding:0 5px;border:0;border-radius:9px;background:color-mix(in srgb,var(--note-accent) 14%,transparent);color:var(--note-accent);font-family:var(--ui);font-size:11px;font-weight:500;line-height:1;vertical-align:2px;cursor:pointer}.note-chip:after{content:attr(data-index)}.note-chip:hover{background:color-mix(in srgb,var(--note-accent) 24%,transparent)}.post [data-note-target]{border-radius:8px;transition:background-color .12s ease}.post [data-note-target][data-note-active]{background:var(--bg-surface-subtle);box-shadow:0 0 0 8px var(--bg-surface-subtle)}.notes-ghost{position:fixed;z-index:35;display:inline-flex;align-items:center;justify-content:center;gap:7px;height:28px;padding:0 10px 0 8px;border:1px solid var(--border-subtle);border-radius:9px;background:var(--bg-control);color:var(--text-faint);font-family:inherit;font-size:13px;font-weight:500;line-height:1;white-space:nowrap;opacity:.5;cursor:pointer;transition:opacity .12s ease,color .12s ease,border-color .12s ease}.notes-ghost svg{flex:none}.notes-ghost--compact{width:28px;padding:0;gap:0}.notes-ghost--compact span{display:none}.notes-ghost:hover{opacity:1;color:var(--text-primary);border-color:var(--border-default)}.notes-ghost:focus-visible{opacity:1}.notes-ghost[hidden]{display:none}.notes-select{position:fixed;z-index:36;display:inline-flex;align-items:center;gap:7px;height:32px;padding:0 12px 0 10px;border:1px solid var(--border-subtle);border-radius:10px;background:var(--bg-control);box-shadow:var(--note-surface-shadow);color:var(--text-primary);font-family:inherit;font-size:13px;font-weight:500;line-height:1;white-space:nowrap;cursor:pointer}.notes-select svg{flex:none;color:var(--text-muted)}.notes-select:hover{background:linear-gradient(var(--bg-surface-hover),var(--bg-surface-hover)),var(--bg-control);border-color:var(--border-default)}.notes-select:hover svg{color:var(--text-primary)}.notes-select[hidden]{display:none}.notes-surface{position:fixed;z-index:40;box-sizing:border-box;border:1px solid var(--border-subtle);border-radius:12px;background:var(--bg-control);box-shadow:var(--note-surface-shadow);color:var(--text-primary);font-size:14px;line-height:1.5}.notes-surface[hidden]{display:none}.notes-surface h2{margin:0;font-size:15px;font-weight:500;line-height:22px}.notes-head{display:flex;align-items:center;gap:10px;justify-content:space-between}.notes-close{flex:none;display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;margin:-4px -6px -4px 0;padding:0;border:0;border-radius:8px;background:none;color:var(--text-faint);cursor:pointer}.notes-close:hover{background:var(--bg-surface-subtle);color:var(--text-primary)}.notes-quote{margin:0;padding-left:12px;border-left:2px solid var(--note-quote-border);font-size:13px;line-height:20px;color:var(--text-tertiary)}.notes-bar{position:fixed;left:0;right:0;bottom:24px;z-index:45;width:max-content;max-width:calc(100vw - 24px);margin:0 auto;display:flex;align-items:center;gap:6px;padding:6px;border:1px solid var(--border-subtle);border-radius:14px;background:var(--bg-control);box-shadow:var(--note-surface-shadow)}.notes-bar[hidden]{display:none}.notes-bar__sep{width:1px;height:22px;background:var(--border-default)}.notes-bar button{font-family:var(--ui);color:var(--text-primary);border:0;background:none;cursor:pointer}.notes-bar__count{display:inline-flex;align-items:center;gap:8px;min-width:0;padding:8px 13px 8px 11px;border-radius:10px;background:var(--bg-surface-subtle);font-size:14px;font-weight:500;line-height:20px;white-space:nowrap}.notes-bar__count>span{overflow:hidden;text-overflow:ellipsis}.notes-bar__count:hover{background:var(--bg-surface-hover)}.notes-bar__count[data-pending]{background:var(--text-primary);color:var(--bg-control)}.notes-bar__icon{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:10px;color:var(--text-muted)}.notes-bar__icon:hover{background:var(--bg-surface-subtle);color:var(--text-primary)}.notes-composer{width:min(400px,calc(100vw - 32px));padding:16px 16px 14px;display:flex;flex-direction:column;gap:14px}.notes-composer textarea{width:100%;box-sizing:border-box;min-height:76px;padding:0;border:0;background:none;resize:vertical;font-family:var(--ui);font-size:15px;line-height:24px;color:var(--text-primary)}.notes-composer textarea::placeholder{color:var(--text-faint)}.notes-composer textarea:focus{outline:none}.notes-actions{display:flex;align-items:center;justify-content:space-between;gap:8px}.notes-hint{margin:0;font-size:12px;line-height:18px;color:var(--text-faint)}.notes-hint--full{color:var(--note-danger)}.notes-btn{height:30px;padding:0 12px;border:1px solid var(--border-default);border-radius:10px;background:none;font-family:var(--ui);font-size:13px;font-weight:500;color:var(--text-muted);cursor:pointer}.notes-btn:hover{background:var(--bg-surface-subtle);color:var(--text-primary)}.notes-btn--primary{border-color:transparent;background:var(--text-primary);color:var(--bg-control);padding:0 14px}.notes-btn--primary:hover{background:var(--text-primary);color:var(--bg-control);opacity:.88}.notes-btn[disabled]{opacity:.45;cursor:not-allowed}.notes-btn--danger{border-color:transparent;background:var(--note-danger);color:#fff;padding:0 14px}.notes-btn--danger:hover{background:var(--note-danger);color:#fff;opacity:.88}.notes-btn--send{display:inline-flex;align-items:center;gap:6px;padding:0 13px 0 11px;border-color:transparent;background:#111;color:#fff;box-shadow:inset 0 0 0 1px #ffffff29}.notes-btn--send:hover{background:#262626;color:#fff;box-shadow:none}[data-theme=dark] .notes-btn--send{box-shadow:inset 0 0 0 1px #ffffff47}[data-theme=dark] .notes-btn--send:hover{background:#2e2e2e;box-shadow:inset 0 0 0 1px #ffffff47}.notes-btn--send svg{flex:none}.notes-btn--send>span{color:inherit}.notes-btn--send[hidden]{display:none}.notes-btn--compact{height:28px;font-size:12px;padding:0 11px 0 9px}.notes-sent{display:inline-flex;align-items:center;gap:5px;align-self:center;font-family:var(--ui);font-size:12px;font-weight:500;line-height:18px;color:var(--text-faint);white-space:nowrap}.notes-sent[hidden]{display:none}.notes-sent svg{width:14px;height:14px;flex:none}.notes-composer__actions{display:flex;align-items:center;gap:8px}.notes-email{width:100%;height:36px;padding:0 11px;border:1px solid var(--border-default);border-radius:10px;background:var(--bg-control);font-family:var(--ui);font-size:14px;color:var(--text-primary)}.notes-email:focus-visible{outline:2px solid var(--text-primary);outline-offset:1px}.notes-menu{width:min(320px,calc(100vw - 32px));padding:6px}.notes-menu button{display:flex;align-items:center;gap:11px;width:100%;padding:9px 10px;border:0;border-radius:8px;background:none;font-family:var(--ui);text-align:left;color:var(--text-primary);cursor:pointer}.notes-menu button:hover{background:var(--bg-surface-subtle)}.notes-menu button[disabled]{opacity:.4;cursor:not-allowed;background:none}.notes-menu svg{flex:none;color:var(--text-tertiary)}.notes-menu span{display:block;font-size:14px;font-weight:500;line-height:20px}.notes-menu small{display:block;font-size:12px;line-height:18px;color:var(--text-faint)}.notes-panel{width:min(360px,calc(100vw - 32px));padding:16px;display:flex;flex-direction:column;gap:14px}.notes-points{display:flex;flex-direction:column;gap:10px;margin:0;padding:0;list-style:none}.notes-points li{display:flex;gap:10px;font-size:13px;line-height:20px;color:var(--text-muted)}.notes-points svg{flex:none;margin-top:2px;color:var(--text-tertiary)}.notes-link-row{display:flex;align-items:center;gap:10px;padding:8px 6px 8px 10px;border-radius:8px;background:var(--bg-surface-subtle)}.notes-link-row input{flex:1;min-width:0;border:0;background:none;font-family:var(--mono);font-size:11px;line-height:18px;color:var(--text-tertiary);text-overflow:ellipsis}.notes-link-row input:focus{outline:none}.notes-link-row button{flex:none;height:28px;padding:0 12px;border:0;border-radius:8px;background:var(--text-primary);color:var(--bg-control);font-family:var(--ui);font-size:12px;font-weight:500;cursor:pointer}.notes-toast{display:flex;gap:11px;width:min(360px,calc(100vw - 32px));padding:13px 16px 13px 14px}.notes-toast svg{flex:none;margin-top:2px;color:var(--text-primary)}.notes-toast strong{display:block;font-size:14px;font-weight:500;line-height:20px}.notes-toast small{display:block;margin-top:2px;font-size:12px;line-height:18px;color:var(--text-faint)}.notes-list{width:min(520px,calc(100vw - 32px));max-height:min(680px,calc(100vh - 132px));overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:14px}.notes-item{display:flex;flex-direction:column;gap:10px}.notes-item__go{display:flex;flex-direction:column;gap:10px;width:100%;margin:-6px -8px -4px;padding:6px 8px 4px;border:0;border-radius:8px;background:none;font:inherit;text-align:left;color:inherit;cursor:pointer}.notes-item__go:hover{background:var(--bg-surface-subtle)}.notes-body--clamped{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;line-clamp:4;overflow:hidden}.notes-more{align-self:flex-start;margin-top:-4px}.notes-item+.notes-item{padding-top:14px;border-top:1px solid var(--border-default)}.notes-card{width:min(340px,calc(100vw - 32px));max-height:min(60vh,520px)}.notes-item p{margin:0;font-size:15px;line-height:24px;color:var(--text-secondary)}.notes-item .notes-meta{display:flex;align-items:center;justify-content:space-between;gap:8px}.notes-item .notes-meta>span{font-size:12px;line-height:18px;color:var(--text-faint)}.notes-item .notes-meta div{display:flex;align-items:center;gap:14px}.notes-textlink{border:0;padding:0;background:none;font-family:var(--ui);font-size:12px;font-weight:500;line-height:18px;color:var(--text-muted);cursor:pointer}.notes-textlink:hover{color:var(--text-primary)}.notes-group{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:4px 0 -4px;padding-top:14px;border-top:1px solid var(--border-default);font-family:var(--ui);font-size:13px;font-weight:600;line-height:20px;color:var(--text-primary)}.notes-group a{color:inherit;text-decoration:none}.notes-group a:hover{text-decoration:underline}.notes-group small{font-size:12px;font-weight:500;color:var(--text-faint);white-space:nowrap}.notes-group+.notes-item{padding-top:0;border-top:0}.notes-textlink--danger:hover{color:var(--note-danger)}.notes-notebook{display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding-top:14px;border-top:1px solid var(--border-default)}.notes-privacy{display:flex;gap:8px;margin:0;font-size:12px;line-height:18px;color:var(--text-faint)}.notes-privacy svg{flex:none;margin-top:1px}.notes-empty-note{margin:0;font-size:13px;line-height:20px;color:var(--text-faint)}.notes-scrim{position:fixed;inset:0;z-index:39;background:#0e121b61}.notes-scrim[hidden]{display:none}@media(max-width:700px){.notes-bar{bottom:max(16px,env(safe-area-inset-bottom))}.notes-bar__count{padding:10px 15px 10px 13px;font-size:15px}.notes-bar__icon{width:44px;height:44px}.notes-surface--sheet{inset:auto 0 var(--note-keyboard, 0px) 0!important;max-height:calc(100dvh - var(--note-keyboard, 0px) - 24px);overflow-y:auto;width:auto!important;max-width:none;padding-bottom:max(24px,env(safe-area-inset-bottom));border-width:0;border-radius:20px 20px 0 0;box-shadow:0 -6px 24px -4px #0e121b29}.notes-surface--sheet:before{content:"";display:block;width:36px;height:4px;margin:-6px auto 10px;border-radius:2px;background:var(--border-default)}.notes-composer textarea{min-height:92px;font-size:16px}.notes-composer .notes-actions{flex-direction:row-reverse}.notes-composer .notes-btn,.notes-panel .notes-btn{flex:1;height:44px;border-radius:12px;font-size:15px;white-space:nowrap}.notes-panel .notes-actions>div{flex:1}.notes-composer .notes-hint{display:none}.notes-menu button{padding:12px;border-radius:12px}.notes-menu span{font-size:15px;line-height:22px}.notes-list{max-height:70vh}}@media(prefers-reduced-motion:no-preference){.notes-surface,.notes-bar,.notes-ghost,.notes-select{animation:notes-in .14s ease-out}@keyframes notes-in{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}.notes-bar{animation-name:notes-bar-in}@keyframes notes-bar-in{0%{opacity:0}to{opacity:1}}}@media print{.notes-bar,.notes-surface,.notes-scrim,.note-chip,.notes-ghost,.notes-select{display:none!important}}.notes-menu .notes-row{display:block}.page--article{gap:64px}.journal{width:100%;min-width:0}.journal>.backlink{display:inline-block}.journal>.backlink:first-child{margin-bottom:44px}.journal-backlink-bottom{margin-top:44px}.journal-header{font-family:var(--ui)}.journal-series{font-size:13px;font-weight:500;color:var(--text-muted);margin-bottom:16px}.journal-header h1{font-size:clamp(32px,4.7vw,46px);line-height:1.13;font-weight:600;letter-spacing:-.04em;text-wrap:balance;margin:0 0 28px;color:var(--text-primary)}.journal-meta{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 20px;font-size:13px;line-height:1.7;color:var(--text-muted)}.journal-author{display:inline-flex;align-items:center;gap:10px}.journal-contents{font-family:var(--ui);border-block:1px solid var(--border-default);margin:32px 0 42px;padding:14px 0;font-size:14px;line-height:1.6}.journal-contents summary{cursor:pointer;color:var(--text-tertiary);width:fit-content}.journal-contents ol{margin:16px 0 6px;padding-left:22px}.journal-contents li+li{margin-top:7px}.journal-contents a:hover{text-decoration:underline;text-underline-offset:3px}.journal-outline{display:none}.post{font-family:var(--ui);font-size:17px;line-height:1.85;font-weight:400;overflow-wrap:break-word}.post p{margin:0 0 1.4em}.post h2,.post h3{color:var(--text-primary);font-weight:600;letter-spacing:-.025em;line-height:1.35;scroll-margin-top:32px}.post h2{font-size:27px;margin:2.7em 0 .85em}.post h3{font-size:21px;margin:2em 0 .8em}.post strong{font-weight:600}.post a{text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px;text-decoration-color:var(--text-faint);color:var(--text-primary)}.post a:hover{text-decoration-color:var(--text-primary)}.post :not(pre)>code{font-family:var(--mono);font-size:.8em;background:var(--bg-surface-subtle);padding:.15em .3em;border-radius:4px}.post pre{max-width:100%;overflow-x:auto;margin:30px 0;padding:22px 24px;border:1px solid var(--border-default);border-radius:10px;font-family:var(--mono);font-size:13px;line-height:1.75}.post pre code{font-family:inherit;font-size:inherit}.post .astro-code,.post .astro-code span{color:var(--shiki-light);background-color:var(--shiki-light-bg)}[data-theme=dark] .post .astro-code,[data-theme=dark] .post .astro-code span{color:var(--shiki-dark);background-color:var(--shiki-dark-bg)}.post ul,.post ol{margin:0 0 1.4em;padding-left:1.3em}.post li+li{margin-top:.4em}.post blockquote{margin:1.6em 0;padding-left:24px;border-left:2px solid var(--border-subtle);color:var(--text-tertiary)}.post table{display:block;overflow-x:auto;font-size:15px;border-collapse:collapse;margin:28px 0}.post th,.post td{padding:12px 16px;border-bottom:1px solid var(--border-default);text-align:left;vertical-align:top}.post th{font-weight:600}.post .diagram{margin:36px 0;border:1px solid var(--border-default);border-radius:12px;background:var(--bg-control);overflow:hidden}.diagram figcaption{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--border-default);padding:10px 16px;font-size:12px;line-height:1.5;color:var(--text-muted)}.diagram button,.diagram-dialog button{font-family:var(--ui);font-size:12px;line-height:1.5;background:none;border:1px solid var(--border-default);border-radius:6px;padding:5px 9px;cursor:pointer}.diagram button:hover,.diagram-dialog button:hover{background:var(--bg-surface-hover)}.diagram-canvas{padding:24px 12px}.diagram-canvas>svg{display:block;width:100%;height:auto;margin:auto}.diagram svg .nodeLabel{font-size:14px;line-height:1.65}.diagram svg .nodeLabel b,.diagram-dialog svg .nodeLabel b{font-size:16px;font-weight:600}.diagram-dialog svg .nodeLabel{font-size:14px;line-height:1.65}.diagram svg .edgeLabel,.diagram-dialog svg .edgeLabel{font-size:12px}[data-theme=dark] :is(.diagram,.diagram-dialog) svg .node.client>:is(rect,polygon,path){fill:#292e50!important;stroke:#818bc0!important}[data-theme=dark] :is(.diagram,.diagram-dialog) svg .node.client .nodeLabel{color:#d8dcff!important}[data-theme=dark] :is(.diagram,.diagram-dialog) svg .node.edge>:is(rect,polygon,path){fill:#1e3047!important;stroke:#608eb7!important}[data-theme=dark] :is(.diagram,.diagram-dialog) svg .node.edge .nodeLabel{color:#cde7ff!important}[data-theme=dark] :is(.diagram,.diagram-dialog) svg .node.state>:is(rect,polygon,path){fill:#3b3220!important;stroke:#9a7c3d!important}[data-theme=dark] :is(.diagram,.diagram-dialog) svg .node.state .nodeLabel{color:#f5dfac!important}[data-theme=dark] :is(.diagram,.diagram-dialog) svg .node.storage>:is(rect,polygon,path){fill:#203d33!important;stroke:#67a58d!important}[data-theme=dark] :is(.diagram,.diagram-dialog) svg .node.storage .nodeLabel{color:#c3efda!important}.diagram-open{overflow:hidden}.diagram-dialog{width:100dvw;height:100dvh;max-width:none;max-height:none;margin:0;border:0;border-radius:0;background:var(--bg-control);color:var(--text-primary);padding:0;overflow:hidden}.diagram-dialog[open]{display:flex;flex-direction:column}.diagram-dialog::backdrop{background:#000000a6}.diagram-dialog header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:14px 20px;font-family:var(--ui);font-size:14px;border-bottom:1px solid var(--border-default)}.diagram-dialog header{flex-shrink:0}.diagram-dialog button{min-width:44px;min-height:44px}.diagram-toolbar{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;flex-shrink:0;gap:8px;padding:8px 16px;font-family:var(--ui);font-size:12px;color:var(--text-muted)}.diagram-toolbar output{width:48px;text-align:center;font-variant-numeric:tabular-nums}.diagram-toolbar span{margin-left:12px}.diagram-dialog-canvas{display:flex;align-items:center;justify-content:center;flex:1;min-height:0;overflow:hidden;overscroll-behavior:contain;touch-action:none}.diagram-dialog-canvas:active{cursor:grabbing!important}.diagram-panzoom{flex:none}.diagram-panzoom>svg{display:block;width:100%;height:100%;max-width:none!important}.journal :focus-visible,.diagram-dialog :focus-visible{outline:2px solid var(--text-primary);outline-offset:4px}@media(min-width:1400px){.journal-contents{display:none}.journal-header{margin-bottom:48px}.journal-outline{display:block;position:fixed;top:176px;left:calc(50% - var(--col) / 2 - 260px);width:220px;max-height:calc(100dvh - 208px);overflow-y:auto;overscroll-behavior:contain;font-family:var(--ui);font-size:12px;line-height:1.55}.journal-outline>p{margin:0 0 16px 13px;font-weight:600;color:var(--text-primary)}.journal-outline ol{list-style:none;margin:0;padding:0;border-left:1px solid var(--border-default)}.journal-outline a{display:block;margin-left:-1px;padding:7px 12px;border-left:2px solid transparent;color:var(--text-muted)}.journal-outline .journal-outline-subsection a{padding-left:24px}.journal-outline a:hover{color:var(--text-primary);background:var(--bg-surface-subtle)}.journal-outline a[aria-current]{border-left-color:var(--text-primary);color:var(--text-primary);background:var(--bg-surface-subtle)}.journal-outline a:focus-visible{outline:2px solid var(--text-primary);outline-offset:-2px}}@media(max-width:600px){.page--article{padding-top:28px;gap:40px}.journal>.backlink:first-child{margin-bottom:32px}.post{font-size:16px;line-height:1.8}.post h2{font-size:24px}.post pre{padding:18px 16px;font-size:12px}.diagram-canvas{padding:16px 6px}.diagram-toolbar span{flex-basis:100%;margin-left:0;text-align:center}.journal-meta{flex-direction:column;align-items:flex-start}}@media print{.journal-contents,.journal-outline,.diagram button,.diagram-dialog{display:none}.post{font-size:11pt}.post pre,.post .diagram{break-inside:avoid}}
