.fuzzyset-discussion-controls{display:flex;align-items:center;gap:16px;justify-content:flex-end;font-size:12px;line-height:1.4;margin-bottom:8px}
.fuzzyset-discussion-controls:not(:has(>:not([hidden]))){display:none}
.page:has(> .post-account) { --account-top: 62px; }
.post-account {
  --account-right: clamp(12px, 3.9vw, 42px);
  position: absolute;
  top: var(--account-top);
  right: var(--account-right);
  z-index: 6;
}
#fuzzyset-account {
  anchor-name: --fuzzyset-account;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #555;
}
#fuzzyset-account:hover, .post-account:has(#fuzzyset-account-menu:popover-open) #fuzzyset-account {
  background: #f3f7fd;
  color: #2563eb;
}
#fuzzyset-account svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
#fuzzyset-account-menu {
  position: absolute;
  inset: calc(var(--account-top) + 44px) var(--account-right) auto auto;
  position-anchor: --fuzzyset-account;
  top: anchor(bottom, calc(var(--account-top) + 44px));
  right: anchor(right, var(--account-right));
  margin: 0;
  width: min(260px, calc(100vw - 24px));
  max-height: calc(100dvh - var(--account-top) - 56px);
  overflow: auto;
  border: 1px solid #dedede;
  border-radius: 8px;
  background: #fff;
  color: #292929;
  box-shadow: 0 4px 20px #0002;
  padding: 14px;
  font-size: 14px;
  overflow-wrap: anywhere;
}
#fuzzyset-account-menu:popover-open { display: grid; gap: 6px; }
#fuzzyset-account-menu strong { font-weight: 600; }
#fuzzyset-account-menu span, #fuzzyset-account-menu label { color: #555; }
#fuzzyset-account-menu form, #fuzzyset-account-menu label { display: grid; gap: 6px; }
#fuzzyset-account-menu form, #fuzzyset-mode-link {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}
#fuzzyset-account-menu button { justify-self: start; }
#fuzzyset-account-menu input { width: 100%; }
#fuzzyset-account-menu input:focus { outline: none; border-color: #555; }
@media (width < 1083px) {
  .page:has(> .post-account) { --account-top: 18px; position: relative; }
  .page:has(> .post-account) > .sidebar { margin-right: 48px; }
}
.fuzzyset-spam-toggle{font:inherit;font-size:12px;padding:5px 8px;background:#fff;border:1px solid #ddd;border-radius:4px;margin:0 0 8px}
.fuzzyset-comment-spam{color:#765525}
.fuzzyset-selection-comment{position:fixed;z-index:60;border:1px solid #d5d5d5;border-radius:6px;background:#fff;color:#333;box-shadow:0 2px 12px #0002;font:14px/1.4 -apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;padding:9px 15px;min-height:40px}
.fuzzyset-comment-panel{position:fixed;z-index:40;right:20px;top:24px;bottom:auto;max-height:calc(100dvh - 48px);width:300px;overflow:auto;overscroll-behavior:contain;background:white;border:1px solid #dedede;border-radius:8px;padding:0 16px 16px;box-shadow:0 4px 20px #0000000d;font-size:14px;line-height:1.5}
.fuzzyset-comment-panel .fuzzyset-panel-header{display:flex;align-items:center;gap:8px;position:sticky;top:0;background:#fff;padding:12px 0;z-index:2;margin:0}
.fuzzyset-comment-panel .fuzzyset-panel-header h2{font-size:15px;font-weight:500;line-height:1.4;margin:0;flex:1}
.fuzzyset-comment-panel .fuzzyset-panel-header button{font-size:13px;border:0;background:transparent;padding:3px;min-width:30px;min-height:32px}
#fuzzyset-comments-close{font-size:24px}
#fuzzyset-comments #fuzzyset-selected-quote{border-left:3px solid #79a8de;padding:2px 0 2px 10px;margin:4px 0 16px;color:#666;font-size:13px;max-height:150px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}
#fuzzyset-comment-status{color:#777;font-size:12px;margin:8px 0}
#fuzzyset-comment-status:empty{display:none}
.fuzzyset-comment{padding:12px 0;border-top:1px solid #eee}
.fuzzyset-comment:first-child{border-top:0}
.fuzzyset-comment-meta{display:flex;flex-wrap:wrap;gap:3px 7px;align-items:baseline;font-size:11px;line-height:1.5}
.fuzzyset-comment-meta strong{font-weight:600;font-size:12px}
.fuzzyset-comment-meta time{color:#888}
.fuzzyset-comment-meta a{color:#777;flex-basis:100%;font-size:11px}
#fuzzyset-comments .fuzzyset-comment-body{white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0;font-size:14px;line-height:1.5}
.fuzzyset-comment small{display:block;font-size:11px;color:#777;margin:4px 0}
.fuzzyset-comment-form{margin:12px 0 0;font-size:13px}
.fuzzyset-comment-form label{display:block;color:#666}
.fuzzyset-comment-form textarea{display:block;box-sizing:border-box;width:100%;font:14px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;padding:8px;min-height:100px;border:1px solid #bbb;border-radius:4px;margin:6px 0 8px;resize:vertical}
.fuzzyset-comment-form>p:empty{display:none}
.fuzzyset-comment-form button,#fuzzyset-comments .fuzzyset-comment>button,#fuzzyset-comments .fuzzyset-comment-confirm>button{font:12px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;cursor:pointer;margin-right:6px;min-height:30px;padding:4px 8px;border:1px solid #ddd;background:white;border-radius:4px;color:inherit}
.fuzzyset-comment-form button:disabled,#fuzzyset-comments .fuzzyset-comment>button:disabled,#fuzzyset-comments .fuzzyset-comment-confirm>button:disabled{opacity:.5;cursor:default}
.fuzzyset-thread-summary{display:flex;flex-direction:column;gap:5px;width:100%;text-align:left;background:white;border:0;border-top:1px solid #eee;border-radius:0;padding:14px 0;font:13px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif}
.fuzzyset-thread-summary strong{font-size:12px;font-weight:600}.fuzzyset-thread-summary span{color:#777;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.fuzzyset-thread-summary small{font-size:13px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
::highlight(fuzzyset-comments){background-color:#dcecff}
::highlight(fuzzyset-active-comment){background-color:#a9d0ff}
.fuzzyset-comment-markers,.fuzzyset-range-fallback{position:absolute;top:0;left:0;width:0;height:0;pointer-events:none;z-index:10}
.fuzzyset-comment-marker{position:absolute;pointer-events:auto;font:11px/1 -apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;border:1px solid #9bbde5;border-radius:4px;background:#e8f2ff;color:#315c8d;min-width:23px;min-height:23px;padding:3px}
.fuzzyset-comment-marker:not(:focus){width:1px;height:1px;min-width:0;min-height:0;padding:0;border:0;overflow:hidden;clip-path:inset(50%)}
.fuzzyset-range-fallback>span{position:absolute;pointer-events:none;background:#a9d0ff55}
#fuzzyset-article [data-block-id]{scroll-margin-top:70px}
@media(min-width:1100px){body.fuzzyset-comments-open{padding-right:330px}}
@media(max-width:1099px){.fuzzyset-comment-panel{top:auto;left:10px;right:10px;bottom:calc(10px + max(env(safe-area-inset-bottom),var(--fuzzyset-keyboard-inset,0px)));width:auto;max-height:min(52dvh,calc(100dvh - var(--fuzzyset-keyboard-inset,0px) - 16px));padding:0 16px 16px;box-shadow:0 0 0 1px #ddd,0 -4px 24px #0001}.fuzzyset-comments-open{padding-bottom:var(--fuzzyset-comment-height,54dvh)}.fuzzyset-comment-form button,#fuzzyset-comments .fuzzyset-comment>button,#fuzzyset-comments .fuzzyset-comment-confirm>button{min-height:40px}.fuzzyset-comment-panel .fuzzyset-panel-header{padding:9px 0}.fuzzyset-comment-panel .fuzzyset-panel-header button{min-height:36px}}

.fuzzyset-comment[data-depth="1"]{margin-left:10px;border-left:2px solid #eee;padding-left:10px}.fuzzyset-comment[data-depth="2"]{margin-left:20px;border-left:2px solid #eee;padding-left:10px}
@media(hover:none){.fuzzyset-selection-comment{left:auto!important;right:16px;top:auto!important;bottom:calc(16px + env(safe-area-inset-bottom))}}

#fuzzyset-article .fuzzyset-search-source { display: none; }
.fuzzyset-search { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 0 0 18px; white-space: normal; font: 14px/1.4 system-ui, sans-serif; }
.fuzzyset-search-field { position: relative; flex: 1 1 200px; max-width: 320px; }
.fuzzyset-search input { width: 100%; min-height: 40px; padding: 7px 40px 7px 10px; border: 1px solid #ccc; border-radius: 5px; background: transparent; color: inherit; font: 16px/1.4 system-ui, sans-serif; appearance: none; }
.fuzzyset-search input:focus-visible { outline-color: #696969; }
.fuzzyset-search input::-webkit-search-cancel-button { display: none; }
.fuzzyset-search button { color: inherit; cursor: pointer; }
.fuzzyset-search-clear { position: absolute; inset: 0 1px 0 auto; width: 38px; padding: 0; border: 0; border-radius: 5px; background: transparent; font: 22px/1 system-ui, sans-serif; }
.fuzzyset-search-examples { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: #666; }
.fuzzyset-search-examples button { padding: 5px 8px; border: 1px solid #ddd; border-radius: 5px; background: transparent; font: 13px/1.4 ui-monospace, monospace; }
.fuzzyset-search-examples button:hover { border-color: #ea580c; }
::highlight(fuzzyset-search-70) { background-color: #f6a53f22; }
::highlight(fuzzyset-search-75) { background-color: #f6a53f3d; }
::highlight(fuzzyset-search-80) { background-color: #f6a53f58; }
::highlight(fuzzyset-search-85) { background-color: #f6a53f73; }
::highlight(fuzzyset-search-90) { background-color: #f6a53f8e; }
::highlight(fuzzyset-search-95) { background-color: #f6a53fa9; }
::highlight(fuzzyset-search-100) { background-color: #f6a53fc4; }

#fuzzyset-article strong { font-weight: 700; }

#fuzzyset-article .fuzzyset-reader-login { text-decoration: underline; }
#fuzzyset-login-form { display: grid; gap: 14px; max-width: 360px; }
#fuzzyset-login-form label { display: grid; gap: 4px; }
#fuzzyset-login-form button { justify-self: start; }

:is(#fuzzyset-login-form, #fuzzyset-comments, #fuzzyset-article) :is(input, textarea):focus {
  outline: none;
  box-shadow: none;
  border-color: #666;
}
@media (hover: none) {
  :is(#fuzzyset-login-form, #fuzzyset-comments, #fuzzyset-article) :is(input, textarea) {
    font-size: max(16px, 1em);
  }
}

.fuzzyset-comment-confirm { margin-top: 8px; padding: 8px; border: 1px solid #dedede; border-radius: 4px; }
.fuzzyset-comment-confirm p { margin: 0 0 6px; font-size: 13px; }
.fuzzyset-comment-confirm p:empty { display: none; }

.fuzzyset-detached-threads {
  background: #dcecff;
  color: #315c8d;
  padding: 4px 8px;
}

/* Thread controls stay quiet while the comment remains the focus. */
#fuzzyset-comments-back,#fuzzyset-panel-title{display:none!important}
#fuzzyset-comments #fuzzyset-selected-quote{border:0;border-radius:4px;background:#f1f6fc;padding:9px 12px;color:#53677d;font-size:12px;line-height:1.5;max-height:84px;margin:0 0 18px}
.fuzzyset-comment-meta{position:relative;gap:6px;align-items:center;font-size:11px}
.fuzzyset-comment-actions{margin-left:auto;position:relative}
.fuzzyset-comment-actions summary{list-style:none;cursor:pointer;color:#888;letter-spacing:2px;padding:3px 8px;font-size:13px}
.fuzzyset-comment-actions summary::-webkit-details-marker{display:none}
.fuzzyset-comment-actions>div{position:absolute;right:0;top:100%;z-index:5;min-width:140px;padding:4px;background:white;border:1px solid #e5e5e5;border-radius:6px;box-shadow:0 3px 12px #0001}
#fuzzyset-comments .fuzzyset-comment-actions button{display:flex;gap:10px;align-items:center;width:100%;border:0;background:transparent;padding:8px;color:#666;font-size:12px;text-align:left}
.fuzzyset-comment-actions button:hover{background:#f5f5f5}
.fuzzyset-comment-reply span:last-child{display:none}
.fuzzyset-comment-reply span:first-child{font-size:19px}

#fuzzyset-comments{position:fixed;padding-top:14px}
.fuzzyset-comment-panel .fuzzyset-panel-header{position:absolute;right:10px;top:8px;padding:0;background:transparent}
#fuzzyset-comments-close{color:#888}
#fuzzyset-comments #fuzzyset-selected-quote{margin-bottom:12px}
.fuzzyset-comment-form{margin:0;font-size:inherit}
.fuzzyset-comment-form label{display:block;font-size:inherit}
.fuzzyset-comment-form textarea{display:block;width:100%;border:1px solid #d9dfe7;border-radius:6px;padding:10px 12px;font:inherit;line-height:1.5;resize:vertical;min-height:90px;background:#fff}
.fuzzyset-compose-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:8px}
#fuzzyset-comments .fuzzyset-compose-actions button{margin:0;border:0;border-radius:5px;padding:6px 13px;min-height:34px;font:500 12px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif}
#fuzzyset-comments .fuzzyset-compose-actions button[type=submit]{background:#2563eb;color:#fff}
#fuzzyset-comments .fuzzyset-compose-actions button[type=button]{background:transparent;color:#777}
.fuzzyset-comment-form p:empty{display:none}
.fuzzyset-comment-panel{font-size:inherit;line-height:inherit}
#fuzzyset-comments .fuzzyset-comment-body,.fuzzyset-comment-form textarea{font-size:inherit;line-height:inherit}

#fuzzyset-comments .fuzzyset-comment-meta .fuzzyset-comment-reply{margin-left:auto;border:0;background:transparent;color:#888;padding:0 6px;min-height:28px;font-size:18px}
.fuzzyset-comment-meta:has(.fuzzyset-comment-reply) .fuzzyset-comment-actions{margin-left:0}
.fuzzyset-compose-actions{position:sticky;bottom:0;background:#fff;padding-block:6px}

[data-footnotes] { margin-top: 3rem; font-size: .85em; line-height: 1.55; color: #666; }
[data-footnotes] li { margin-bottom: 1em; scroll-margin-top: 2rem; }
[data-footnote-ref] { scroll-margin-top: 2rem; }
[data-footnotes] li:target { outline: 1px solid #d1d5db; outline-offset: .5em; }
[data-footnotes][id] { scroll-margin-top: 2rem; }
[data-footnotes][id]:target { outline: 1px solid #d1d5db; outline-offset: .5em; }

@media (width > 1099px) {
  .page:has(> .post-account) .fuzzyset-comment-panel {
    top: calc(var(--account-top) + 52px);
    max-height: calc(100dvh - var(--account-top) - 76px);
  }
}

.essay-history-list li { margin: 8px 0; }
.essay-history-review { display: block; width: 100%; height: 65vh; margin-top: 24px; padding: 12px; border: 1px solid #ddd; }
