#wire-papers {
  position:absolute; inset:0; z-index:4; pointer-events:none; overflow:hidden;
}
#camera-view:has(.inhand) .wire-paper {pointer-events:none;}
#threads .bundle-threads path {stroke:#83342b;stroke-width:1.8;pointer-events:none;filter:drop-shadow(0 1px 1px #2d170e);}

#threads .bundle-threads .bundle-hit {
  stroke:transparent;stroke-width:22;vector-effect:non-scaling-stroke;pointer-events:stroke;cursor:pointer;filter:none;
}
#threads .bundle-threads:hover .bundle-core {stroke:#ac5045;}
#threads g[role=button]:focus-visible :is(.yarn-core,.bundle-core) {
  stroke:#ffde98;stroke-width:2.8;filter:drop-shadow(0 1px .65px #31170c);
}
@media(forced-colors:active){
  #threads g[role=button]:focus-visible :is(.yarn-core,.bundle-core){stroke:Highlight;forced-color-adjust:none;}
}
#camera-view.binding #threads, #camera-view.binding #threads *, .manual:has(.inhand) .wire-paper {pointer-events:none;}
#camera-view.binding .wire-paper {cursor:pointer;}
#comparison-desk {display:flex;flex-wrap:wrap;align-items:center;gap:8px;color:#f4e3b9;background:#30271e;
  border-block:1px solid #735e45;padding:8px 12px;font:14px/1.4 'Courier New',monospace;}
#comparison-desk[hidden],#piece-sheet[hidden],#read-piece[hidden] {display:none;}
#comparison-desk button {border:1px solid #958469;background:#ead4a3;color:#30271e;padding:5px 10px;cursor:pointer;font:inherit;}
#comparison-desk button[aria-pressed=true] {background:#884437;color:#fff7de;}
#comparison-desk button:disabled {opacity:.5;cursor:default;}
.camera-shell #comparison-desk {position:sticky;bottom:8px;z-index:5;flex-wrap:wrap;width:fit-content;max-width:96%;margin:0 auto 6px;
  color:var(--archive-ink);background:#eddcb6 url(fibra.svg);border:0;box-shadow:2px 3px 6px #1e110ca8;font:400 14px/1.25 var(--archive-type);}
#comparison-desk button {background:transparent;border:0;border-bottom:1px solid #987b5c;}
#comparison-desk button[aria-pressed=true] {color:#6e281f;background:#d9bd94;}
.specimen[data-side]::after,.wire-paper[data-side]::before {content:attr(data-side);position:absolute;top:2px;left:2px;background:#572e23;color:white;
  font:bold 12px monospace;padding:1px 3px;pointer-events:none;}
.specimen[data-side=B]::after,.wire-paper[data-side=B]::before {background:#2e4b49;}
.bundle-threads text {fill:#fff4ce;stroke:#41271d;stroke-width:2px;paint-order:stroke;font:bold 10px monospace;pointer-events:none;}
#piece-sheet {justify-self:center;box-sizing:border-box;}
.cork .indicated strong {text-decoration:underline;}

/* Paper lies below the thread. Its transparent hit surface still takes the drag,
   and the button for the tack sits above both. */
.cork .specimen .paper-face::after {content:""; position:absolute; inset:0; z-index:3;}

#cork.choosing-spot {cursor:crosshair;}
#camera-view #cork.choosing-spot *,#camera-view:has(.choosing-spot) #wire-papers * {pointer-events:none;}

#read-piece:disabled {opacity:.55;cursor:default;}

.tack i {pointer-events:none;}
@media(pointer:coarse){
  .cork .tack {width:32px;height:23px;top:-7px;padding-top:9px;}
}

#spool {width:fit-content;max-width:100%;color:#e5d2af;font:400 13px/1.25 var(--archive-type);padding:3px 12px;}
#spool summary {cursor:pointer;width:fit-content;}
#spool-list {display:flex;flex-wrap:wrap;gap:6px;margin-top:6px;}
#spool-list button {color:#433522;background:#ecdcaf;padding:5px 9px;border:1px solid #a78e62;cursor:pointer;}


.wire-paper {
  position:absolute; display:flex; width:var(--slip); min-height:var(--slip); box-sizing:border-box;
  overflow:hidden; pointer-events:auto; color:#263547;
  background:var(--archive-paper);
  box-shadow:0 1px 1px #36250d80,1px 2px 3px #35210d66;
}
.wire-paper::after {content:"";position:absolute;bottom:0;right:0;width:12%;height:12%;pointer-events:none;
  background:linear-gradient(135deg,transparent 42%,#c5ad8a 48%,#fbefda 65%,#d9c4a4);}
.manual .wire-paper button {
  display:flex;flex-direction:column;justify-content:center;align-items:stretch;gap:.15em;
  width:100%;min-width:0;min-height:0;box-sizing:border-box;padding:.8em .7em .65em;border:0;
  color:inherit;background:transparent;cursor:pointer;text-align:left;
  font:var(--hand-weight) calc(var(--slip) / 7.7)/1.11 var(--hand);
}
.manual .wire-paper:not(.personal-slip) > button:first-child {
  font-family:var(--archive-type);font-weight:400;font-size:calc(var(--slip) / 9.1);line-height:1.14;
  text-shadow:var(--type-impression);
}
.wire-paper button:focus-visible {background:#ffe09b;text-decoration:underline double;}
.wire-paper {touch-action:none;user-select:none}
.wire-paper:not(.folded) {overflow:visible}
.manual .wire-paper:not(.folded) > button:first-child {cursor:grab}
.manual .wire-paper:not(.folded) > button:first-child:active {cursor:grabbing}
.manual .wire-paper > .slip-pin {
  position:absolute;top:-5px;right:0;width:clamp(15px,32%,26px);height:clamp(15px,30%,24px);
  display:grid;place-items:center;padding:0;overflow:visible;cursor:crosshair;touch-action:none;
}
.slip-pin i {
  width:clamp(6px,calc(var(--slip)*.115),12px);aspect-ratio:1;
  background:url(tachinha-vinho.webp?v=2) 50% center / 500% 100% no-repeat;
  filter:drop-shadow(-1px 1px 1px #4131229c);pointer-events:none;
}
.slip-pin:is(:focus-visible,[data-armed]) i {filter:brightness(1.5) drop-shadow(-1px 1px 1px #4131229c)}
#threads .slip-tie {stroke:#69523c;stroke-width:.85;pointer-events:none}
#threads .slip-draft {stroke:#853a30;stroke-width:1.6;pointer-events:none}
#threads [role=button] {touch-action:none}
#thread-menu {
  position:fixed;z-index:30;margin:0;padding:4px 0;min-width:130px;
  background:#faefce url(fibra.svg);color:#332c23;border:1px solid #a48b61;
  box-shadow:-1px 3px 7px #21170b66;
}
#thread-menu[hidden] {display:none}
.manual #thread-menu button {
  display:block;width:100%;min-height:36px;padding:4px 14px;background:none;color:inherit;
  text-align:left;border:0;cursor:pointer;font:400 14px/1.2 var(--archive-type);
}
.manual #thread-menu button:is(:hover,:focus-visible) {background:#e9d8b2}
.wire-paper strong,.wire-paper span,.wire-paper i {overflow-wrap:anywhere;}
.wire-paper strong {color:inherit;font-weight:400;}
.wire-paper button:first-child > i {color:var(--note-ink);font-weight:var(--hand-weight);font-style:normal;white-space:pre-wrap;}
.wire-paper.folded {width:16px;height:13px;min-height:0;}
.manual .wire-paper.folded > .slip-pin,.wire-paper.folded button > :is(strong,span) {display:none;}
.manual .wire-paper.folded button {padding:0;background:linear-gradient(145deg,#efe0ca 43%,#b39b79 47%,#f2e6d0 51%,#d6c2a9);cursor:pointer}
.wire-paper[hidden],#wire-ledger[hidden] {display:none;}
#wire-ledger {color-scheme:light;box-sizing:border-box;width:min(100%,780px);margin:1rem auto;
  padding:clamp(16px,4vw,40px);color:#342c23;background:#f3e6c9;box-shadow:2px 4px 12px #130e0955;
  font:16px/1.45 Georgia,serif;}
#wire-ledger h2 {margin:.6em 0;font:400 1.55em/1.15 var(--archive-type);}
#wire-ledger h3,#wire-ledger h4 {color:#5f382b;margin:1em 0 .35em;}
#wire-ledger p {color:inherit;margin:.35em 0 .7em;}
#wire-ledger small,#wire-ledger label,#wire-ledger p a {display:block;}
#wire-ledger a {color:#344d46;}
#wire-ledger label {margin-top:1em;}
#wire-ledger textarea {display:block;width:100%;box-sizing:border-box;padding:.4em;color:var(--note-ink);
  background:#fff5da;border:1px solid #a99470;font:var(--hand-weight) 22px/1.15 var(--hand);}
#wire-ledger button {padding:.4em .65em;margin:.4em .5em .4em 0;color:#453226;
  background:#f7ecd1;border:1px solid #aa906b;font:inherit;cursor:pointer;}
#wire-ledger h4 span {display:block;font:normal .85em var(--mono);}
#wire-ledger .evidence-row {border-top:1px solid #baaa8d;margin-top:.8em;}
#wire-ledger .comparison-matrix {overflow-x:auto;}
#wire-ledger table {width:100%;border-collapse:collapse;margin-top:1em;}
#wire-ledger th,#wire-ledger td {padding:.3em;text-align:left;border-bottom:1px solid #baaa8d;}

/* Loose pages are read above the room, at the same camera position. */
html:has(body.manual) {scrollbar-gutter:stable}
body:has(dialog[open]) {overflow:hidden;}
dialog.manuscript::backdrop {background:rgba(20,15,9,.63);}
dialog.manuscript:is(#wire-ledger,#piece-sheet,#note-sheet) {
  position:fixed;inset:0;margin:auto;box-sizing:border-box;width:min(670px,calc(100vw - 26px));
  max-height:86dvh;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;
  color-scheme:light;color:var(--note-ink);border:1px solid #b5a282;border-radius:1px 3px 5px 2px;
  padding:clamp(18px,3.8vw,46px);font:var(--hand-weight) clamp(19px,2.1vw,23px)/1.25 var(--hand);
  background:url(fibra.svg),linear-gradient(102deg,#dac9a8,#fbf2da 6%,#f7ebce 77%,#e8d6b3);
  box-shadow:2px 2px 0 #c2aa83,4px 4px 0 #e3d2b2,1px 16px 45px #10090099;
}
dialog.manuscript:not([open]) {display:none!important;}
.manuscript:is(#piece-sheet,#wire-ledger,#note-sheet) :is(p,small,b,label,input,textarea,select,button,figcaption,h4 span,.sheet-text,.byline) {font-family:var(--hand);letter-spacing:normal;}
.manuscript:is(#piece-sheet,#wire-ledger,#note-sheet) :is(.sheet-text,.byline,figcaption) {font-size:1em;line-height:1.25;}
.manuscript:is(#piece-sheet,#wire-ledger,#note-sheet) small {font-size:.82em;}
.manuscript:is(#piece-sheet,#wire-ledger,#note-sheet) h2 {font:var(--hand-weight) clamp(26px,3.6vw,36px)/1.09 var(--hand);margin:.15em 0 .55em;}
.manuscript:is(#piece-sheet,#wire-ledger,#note-sheet) button {
  cursor:pointer;background:transparent;color:var(--archive-ink);font:400 .82em/1.2 var(--archive-type);padding:.2em .3em;
  border:0;border-bottom:1px solid #97684f;margin:.15em .5em .15em 0;
}
.manuscript:is(#piece-sheet,#wire-ledger,#note-sheet) button:focus-visible {text-decoration:underline double;}
#wire-ledger .shared-values {padding:.45em .8em;border-inline-start:2px solid #9f6951;margin:.6em 0;}
#wire-ledger .shared-values h3 {margin:0;}
#wire-ledger .shared-values p {margin:.3em 0;}
#wire-ledger .evidence-row span,#wire-ledger .evidence-row small {display:block;}
#wire-ledger,#note-sheet {overflow-wrap:anywhere;}
#note-sheet form textarea,#wire-ledger textarea {
  display:block;box-sizing:border-box;width:100%;max-width:100%;font:inherit;color:var(--note-ink);
  border:0;border-bottom:1px solid #9a8057;border-radius:0;background:#fffae74d;padding:.22em .35em;
}
.wire-paper.personal-slip {--ruling:1.25em;color:var(--note-ink);background:var(--ruled-paper)}
.manual .personal-slip button:first-child {padding-inline-start:14%}
.personal-slip span:last-child {white-space:pre-wrap}


#wire-ledger .personal-entry span {display:block;}

/* Keep the tools on the desk and both faces within the reading area. */
dialog#piece-sheet {
  position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;
  margin:0;border:0;border-radius:0;box-shadow:none;background:transparent;padding:12px;
  box-sizing:border-box;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;
}
dialog#piece-sheet:not([open]) {display:none;}
dialog#piece-sheet[open] {display:flex;align-items:safe center;justify-content:center;}
#piece-sheet::backdrop {background:radial-gradient(ellipse at 47% 40%,#20160b60,#110d08bb);}
.print-reader {flex:none;width:min(90vw,66svh,465px);position:relative;}
.evidence-leaf {position:relative;isolation:isolate;box-sizing:border-box;min-height:min(78svh,606px);
  padding:clamp(21px,4.3svh,38px) clamp(20px,4vw,40px) 16px;display:flex;flex-direction:column;
  color:var(--note-ink);font:var(--hand-weight) clamp(17px,2.48svh,21px)/1.26 var(--hand);font-synthesis:none;
  filter:drop-shadow(-1px 1px .6px #38270fed) drop-shadow(4px 11px 9px #130b06a6);
  outline:none;transform:rotate(-.75deg);transform-origin:50% 55%;
}
.evidence-leaf::before {content:"";z-index:-1;position:absolute;inset:0;
  background:url(fibra.svg),linear-gradient(178.7deg,transparent 51%,#9d88651c 51.4%,#fffdf225 52%,transparent 54%),
    linear-gradient(91.5deg,transparent 46%,#ab967421 49.7%,#fffbec5c 50%,transparent 52%),
    linear-gradient(112deg,#e3d4b8 0%,#f7efdd 11%,#f5ebd4 65%,#eadfc6 95%,#d6c7a9);
}
.evidence-leaf.verso {transform:rotate(.45deg);}
.leaf-heading h2 {color:var(--note-ink);font:var(--hand-weight) clamp(25px,4.2svh,36px)/1.08 var(--hand);margin:.16em 0 .45em;}
.evidence-leaf.record-leaf {
  color:var(--archive-ink);font:400 clamp(15px,1.3vw,18px)/var(--archive-leading,1.46) var(--archive-type);font-synthesis:none;
}
.record-leaf :is(h2,p) {text-shadow:var(--type-impression)}
.record-leaf .leaf-front > p:first-child {margin-top:0}
.record-leaf::before {background:var(--archive-paper)}
.leaf-front figure {margin:.25em .15em .35em;}
.mounted-print {position:relative;width:fit-content;max-width:100%;margin-inline:auto;transform:rotate(-2deg);padding:5px 5px 8px;
  background:#fff9eb;box-shadow:1px 1px 2px #52442b80,1px 4px 4px -1px #62503566;}
.mounted-print::before,.mounted-print::after {content:"";position:absolute;width:22%;height:14px;z-index:1;
  background:linear-gradient(95deg,#cdb67260,#d7c78ca6,#cbb77b66);box-shadow:0 .6px #aa956b70;}
.mounted-print::before {left:-5%;top:2%;transform:rotate(-31deg);}
.mounted-print::after {right:-5%;bottom:2%;transform:rotate(-31deg);}
.mounted-print img {display:block;width:auto;max-width:100%;height:auto;max-height:min(39svh,305px);object-fit:contain;}

/* The same print can come off the sheet without moving its evidence piece. */
#piece-sheet .photo-detail-trigger {
  display:block;width:auto;max-width:100%;margin:0;padding:0;border:0;
  background:none;cursor:zoom-in;touch-action:manipulation;
}
#piece-sheet .photo-detail-trigger:disabled {cursor:default}
#piece-sheet .photo-detail-trigger:focus-visible {outline:2px solid var(--note-ink);outline-offset:3px}
#photo-detail {
  position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;
  margin:0;border:0;box-sizing:border-box;padding:clamp(14px,3vw,36px);
  background:transparent;overflow:hidden;
}
#photo-detail[open] {display:grid;place-items:center}
#photo-detail::backdrop {background:#100e0bd9}
.detached-photo {
  box-sizing:content-box;overflow:hidden;overscroll-behavior:contain;
  touch-action:none;user-select:none;cursor:zoom-in;
  background:#eae6dc;box-shadow:0 0 0 3px #efe9db,3px 7px 16px #070605d4;
}
.detached-photo.photo-pannable {cursor:grab}
.detached-photo.photo-pannable:active {cursor:grabbing}
.detached-photo:focus-visible {outline:2px solid #e1ae76;outline-offset:5px}
.detached-photo img {display:block;max-width:none;max-height:none;pointer-events:none}

.leaf-front figcaption {margin:.65em .15em 0;overflow-wrap:anywhere;}
.leaf-back p {margin:0 0 .7em;overflow-wrap:anywhere;}
.evidence-leaf:not(.record-leaf) .leaf-back {
  color:var(--archive-ink);font:400 clamp(13px,1.14vw,15px)/1.46 var(--archive-type);
}
.leaf-back .photo-legend {
  color:var(--note-ink);font:var(--hand-weight) clamp(17px,2.48svh,21px)/1.26 var(--hand);
}
.evidence-leaf:not(.record-leaf) :is(figcaption time,.leaf-credit,.leaf-back .leaf-reference) {
  color:var(--archive-ink);font:400 clamp(.79rem,1vw,.87rem)/1.4 var(--archive-type);
}
.evidence-leaf:not(.record-leaf) figcaption .leaf-credit {margin-block-start:.4em}
#piece-sheet .evidence-leaf:not(.record-leaf) :is(.leaf-reference,.leaf-credit) a {color:inherit}
#piece-sheet .photo-account {display:grid;gap:.35em;margin-block-start:.8em;overflow-wrap:anywhere}
#piece-sheet .photo-account p {margin:0}
#piece-sheet .photo-account small {font:400 .78em/1.4 var(--archive-type)}
/* The lifted corner cuts into the silhouette of the paper. Its reverse is lit from the desk. */
.evidence-leaf {--fold:var(--pull,var(--rest,26px));padding-bottom:44px;}
.evidence-leaf::before {
  clip-path:polygon(.6% .5%,20% .2%,53% .65%,83% .1%,99.7% .6%,99.4% 19%,99.8% 54%,100% calc(100% - var(--fold)),calc(100% - var(--fold)) 100%,74% 99.7%,47% 99.25%,23% 99.75%,.1% 99%,.45% 70%,.1% 35%);
}
.evidence-leaf.verso::before {transform:scaleX(-1);}
#piece-sheet #turn-leaf {
  position:absolute;right:0;bottom:0;width:max(50px,var(--fold));height:max(50px,var(--fold));margin:0;
  border:0;border-radius:0;background:transparent;padding:0;appearance:none;outline:none;
  touch-action:none;cursor:grab;-webkit-tap-highlight-color:transparent;
}
#turn-leaf::after {
  content:"";position:absolute;bottom:0;right:0;width:var(--fold);height:var(--fold);
  background:url(fibra.svg),linear-gradient(135deg,#e6d4b4 4%,#c7b694 35%,#f9eed3 48%,transparent 50%);
  clip-path:polygon(0 0,100% 0,0 100%);border-radius:2px 0 0 0;
}
#piece-sheet #turn-leaf {filter:drop-shadow(-1px -1px 1.6px #46351c70);}
.record-leaf #turn-leaf::after {background:linear-gradient(135deg,#95938a 4%,#c4c1b8 35%,#e5e1d6 48%,transparent 50%);}
#piece-sheet .verso #turn-leaf {left:0;right:auto;transform:scaleX(-1);}
#piece-sheet #turn-leaf:active {cursor:grabbing;}
.evidence-leaf:has(#turn-leaf:focus-visible) {--rest:42px;}
#piece-sheet #turn-leaf:focus-visible {filter:drop-shadow(-2px -2px 1px #67462a);}
@media(hover:hover){.evidence-leaf:has(#turn-leaf:hover){--rest:38px;}}
@media(prefers-reduced-motion:no-preference){
  #turn-leaf::after {transition:width .09s ease-out,height .09s ease-out;}
}
#leaf-side {position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
#piece-sheet :is(button,summary):focus-visible {text-decoration:underline double;}
@media(max-width:550px){.print-reader {width:min(88vw,64svh);}
  .evidence-leaf {min-height:min(122vw,76svh);}.mounted-print img {max-height:min(58vw,34svh);}}
@media(max-height:440px) and (min-width:551px){.print-reader {width:min(80vw,480px);}
  .leaf-front figure {display:flex;align-items:center;gap:18px;}.mounted-print {width:54%;flex:none;}
  .mounted-print img {max-height:28svh;margin:auto;}.evidence-leaf {padding:15px 24px;min-height:66svh;}}


/* A comparison is read a leaf at a time. The file tabs sit outside the paper. */
dialog.manuscript:is(#wire-ledger,#note-sheet){
 inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:16px 10px;box-sizing:border-box;
 background:transparent;border:0;box-shadow:none;overflow:auto;scrollbar-width:none;
}
dialog.manuscript:is(#wire-ledger,#note-sheet)[open]{display:flex;align-items:safe center;justify-content:center;}
.thread-reader,.note-reader{width:min(94vw,540px);flex:none;}
.note-reader{width:min(89vw,390px);}
.thread-leaf,.loose-note{box-sizing:border-box;padding:clamp(20px,4vw,38px);overflow-wrap:anywhere;
 box-shadow:2px 3px 0 #ad9976,3px 7px 15px #100b06a0;color:#293846;
 background:url(fibra.svg),linear-gradient(95deg,#dfcfad,#f9f1da 8%,#f2e6cb 94%,#e4d5b7);
}
.thread-leaf{min-height:min(55svh,420px);border-radius:1px 4px 1px 3px;}
.loose-note{
  --ruling:1.4em;min-height:min(56vw,245px);transform:rotate(-.65deg);padding-inline-start:16%;
  background:var(--ruled-paper);
}
#note-sheet .loose-note form {margin:0}
#note-sheet .loose-note textarea {
  min-height:8.4em;padding:0;border:0;background:transparent;color:var(--note-ink);
  line-height:1.4;resize:none;outline-offset:4px;
}
#note-sheet .loose-note textarea:focus-visible {box-shadow:none}
.wire-paper.free-slip button:first-child>span {white-space:pre-wrap}
.wire-paper.slip-lifted {opacity:0}
.wire-paper.slip-outside {
  position:fixed;z-index:40;pointer-events:none;box-shadow:3px 6px 9px #17100ba5;
}
.wire-paper.slip-outside * {pointer-events:none}

.manual button.desk-pad {
  position:absolute;width:clamp(46px,6%,97px);aspect-ratio:1.6;min-height:44px;
  margin:0;border:0;border-radius:0;cursor:grab;touch-action:none;
}
.manual button.desk-pad:is(:hover,:focus-visible) {filter:brightness(1.09)}
.desk-pad:active {cursor:grabbing;}
.manual button.desk-pad {display:grid;align-items:end;justify-items:stretch;padding:0;background:none;box-shadow:none;transform:none;}
.desk-pad span {display:block;width:100%;aspect-ratio:1.42;margin:0;
  background:linear-gradient(158deg,#e2c579,#f2df9d 50%,#dfc783),url(fibra.svg);
  box-shadow:0 1px #a88a50,-.5px 2px #e8d391,-1px 3px #b69b63,-1.5px 4px #d8bd7c,-2px 5px #a78a52,-3px 7px 4px #32200ea8;
  transform:perspective(200px) rotateX(54deg) rotateZ(-9deg);transform-origin:50% 80%;}
.desk-pad span::after {content:"";position:absolute;right:0;bottom:0;width:18%;aspect-ratio:1;
  background:linear-gradient(135deg,transparent 45%,#c2ae90 50%,#fff3d8 65%);}
#comparison-desk #spool {width:100%;grid-column:1/-1;color:#534226;padding:0;}

#comparison-desk #spool-list {max-height:12rem;overflow:auto;}
#wire-ledger .thread-leaf {--gutter:clamp(18px,4vw,38px);position:relative;padding:var(--gutter);
  background:var(--archive-paper);color:var(--archive-ink);
  box-shadow:1px 2px #c1ad88,2px 4px #f4e5c5,3px 6px #baa37c,4px 11px 16px #160e0a80;}
#wire-ledger .personal-entry {padding:.4em .65em .4em 16%;color:var(--note-ink);background:var(--ruled-paper);box-shadow:1px 2px 2px #5a422333;}
#wire-ledger .personal-entry small,#wire-ledger .personal-entry span {display:block;}
#wire-ledger .personal-entry button {text-align:left;}
#note-sheet .loose-note {position:relative;color:var(--note-ink);box-shadow:1px 2px 1px #b3a089,3px 8px 14px #21140970}
#note-sheet .loose-note :is(h2,h3,p,label,input,textarea,select,button),#wire-ledger :is(textarea,.personal-entry p,.personal-entry button) {
  color:var(--note-ink);font-family:var(--hand);font-weight:var(--hand-weight);font-synthesis:none;
}
#wire-ledger .thread-leaf :is(h2,h3,h4,p,small,b) {font-family:var(--archive-type)}
#wire-ledger .thread-leaf :is(h2,h3,h4,p,small,b):not(.personal-entry,.personal-entry *) {
  text-shadow:var(--type-impression);
}
#wire-ledger .thread-leaf {font-size:clamp(13px,1.45vw,16px);line-height:1.5}
#wire-ledger .thread-leaf h2 {font-size:clamp(19px,3vw,28px);line-height:1.14;font-weight:400}
#wire-ledger .thread-leaf .personal-entry :is(p,small,span,button) {font-family:var(--hand);font-weight:var(--hand-weight);font-synthesis:none}
#wire-ledger .thread-leaf>.evidence-row{border:0;margin:0;}
#wire-ledger .thread-leaf h4{margin:.1em 0 .6em;}
#wire-ledger .thread-leaf .shared-values{border:0;padding:0;margin-top:.85em;}
#wire-ledger .thread-leaf .comparison-matrix {max-width:100%;overflow:auto;}
#wire-ledger .thread-leaf .comparison-matrix table {font-size:.82em;}

.paper-being-read {opacity:0}
dialog.paper-returning {overscroll-behavior:contain}
.manual dialog::backdrop {transition:opacity .32s ease-out}
.manual dialog.paper-returning::backdrop {opacity:0}
.thread-reader:focus {outline:none}
