#readerView .has-bookmark-sticker{position:relative}#readerView .bookmark-sticker{position:absolute;right:-24px;top:calc(68px + var(--sticker-order,0)*48px);z-index:7;width:44px;min-width:44px;height:46px;min-height:44px;border:0;border-radius:8px;background:transparent;color:var(--teal,#a1b2ff);padding:3px 9px;cursor:pointer;touch-action:manipulation;user-select:none;-webkit-user-select:none;filter:drop-shadow(0 2px 2px #0003);transition:filter .15s}#readerView .bookmark-sticker:hover{filter:drop-shadow(0 3px 4px #0005);background:color-mix(in srgb,var(--teal) 10%,transparent)}.bookmark-sticker-icon{display:block;width:26px;height:36px;overflow:visible;pointer-events:none}.bookmark-sticker-count{position:absolute;bottom:0;right:0;border-radius:7px;background:var(--panel);color:var(--ink);font:700 10px system-ui;padding:2px 3px;pointer-events:none}#readerView .bookmark-sticker:focus-visible{outline:3px solid var(--teal);outline-offset:1px}#readerText section.bdword.has-bookmark-sticker{position:relative;overflow:visible!important}.bookmark-sticker-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.bookmark-sticker-choices button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:58px;padding:5px 3px!important;font-size:10px!important;color:var(--ink)}.bookmark-sticker-choices .bookmark-sticker-icon{width:22px;height:28px;color:var(--teal,#a1b2ff)}.bookmark-sticker-choices button[aria-pressed=true]{border-color:var(--teal)!important;box-shadow:inset 0 0 0 1px var(--teal);background:color-mix(in srgb,var(--teal) 16%,var(--panel))!important}.review-bookmark-tools{max-height:52vh;overflow:auto;overscroll-behavior:contain;flex-shrink:0}.bookmark-sticker-heading{font-size:12px;margin:0}.bookmark-sticker-choices button:focus-visible{outline:2px solid var(--teal);outline-offset:1px}
.review-bookmark-form>.bookmark-sticker-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}

.bookmark-sticker-icon.bw-mark{position:relative;margin:auto;width:70px;height:202px;max-width:100%;background:linear-gradient(90deg,#ffffff36,transparent 15%,transparent 80%,#00000018),var(--bw-paper);color:var(--bw-ink);clip-path:polygon(0 0,100% 0,100% 100%,50% 93%,0 100%);box-shadow:inset 0 3px #ffffff88}
.bookmark-sticker-icon.bw-mark:before{content:'';position:absolute;inset:7px 5px 19px;border:1px solid currentColor;opacity:.4;border-radius:32px 32px 0 0}

.bookmark-sticker-icon .bw-num{position:absolute;top:17px;left:0;right:0;text-align:center;font:13px Georgia,serif;letter-spacing:1px}
.bookmark-sticker-icon .bw-scene{position:absolute;left:7px;right:7px;top:50px;height:100px;overflow:hidden}
.bookmark-sticker-icon .bw-scene :where(i){display:block;position:absolute;box-sizing:border-box;background:currentColor}
.bookmark-sticker-icon .bw-ground{bottom:9px;left:2px;right:2px;height:3px;box-shadow:0 5px 0 currentColor;opacity:.8}
.bookmark-sticker-icon .bw-sun{width:25px;height:25px;border-radius:50%;top:4px;right:1px;opacity:.24}
.bookmark-sticker-icon .bw-pyramid{bottom:17px;left:0;width:48px;height:52px;clip-path:polygon(50% 0,100% 100%,0 100%)}
.bookmark-sticker-icon .bw-pyramid:after{content:'';position:absolute;inset:0;background:#ffffff55;clip-path:polygon(50% 0,100% 100%,62% 100%)}
.bookmark-sticker-icon .bw-pyramid.small{width:30px;height:31px;left:28px;opacity:.65}
.bookmark-sticker-icon .bw-terrace{left:0;right:0;bottom:17px;height:20px;background:repeating-linear-gradient(90deg,currentColor 0 5px,transparent 5px 11px);border-top:5px solid #497c5b;border-bottom:3px solid currentColor}
.bookmark-sticker-icon .bw-terrace.mid{left:7px;right:7px;bottom:40px;height:20px}.bookmark-sticker-icon .bw-terrace.top{left:17px;right:17px;bottom:63px;height:17px}
.bookmark-sticker-icon .bw-vine{width:5px;height:26px;top:34px;left:10px;background:#477955;border-radius:0 0 5px 5px;box-shadow:27px 18px 0 #477955}
.bookmark-sticker-icon .bw-head{width:13px;height:15px;border-radius:45%;top:14px;left:22px;box-shadow:0 -3px 0 #c9a54b}
.bookmark-sticker-icon .bw-throne{width:35px;height:56px;bottom:17px;left:10px;background:transparent;border:3px solid currentColor;border-radius:11px 11px 0 0}
.bookmark-sticker-icon .bw-robe{width:23px;height:43px;bottom:19px;left:16px;clip-path:polygon(20% 0,76% 0,100% 100%,0 100%);opacity:.85}
.bookmark-sticker-icon .bw-scepter{width:2px;height:60px;right:2px;bottom:17px;transform:rotate(-5deg)}
.bookmark-sticker-icon .bw-roof{left:1px;right:1px;height:21px;top:17px;clip-path:polygon(50% 0,100% 100%,0 100%)}
.bookmark-sticker-icon .bw-columns{left:4px;right:4px;top:41px;height:39px;background:repeating-linear-gradient(90deg,currentColor 0 5px,transparent 5px 10px);border-top:3px solid currentColor;border-bottom:3px solid currentColor}
.bookmark-sticker-icon .bw-mausoleum .bw-roof{top:7px;height:31px;clip-path:polygon(40% 0,60% 0,60% 18%,72% 18%,72% 40%,84% 40%,84% 66%,100% 66%,100% 100%,0 100%,0 66%,16% 66%,16% 40%,28% 40%,28% 18%,40% 18%)}
.bookmark-sticker-icon .bw-mausoleum .bw-columns{left:9px;right:9px;top:40px;height:30px}.bookmark-sticker-icon .bw-base{left:5px;right:5px;bottom:17px;height:14px;border-top:3px solid var(--bw-paper)}
.bookmark-sticker-icon .bw-colossus .bw-head{width:10px;height:12px;top:6px;left:24px;box-shadow:0 -3px 0 currentColor}
.bookmark-sticker-icon .bw-body{width:15px;height:33px;left:21px;top:19px;clip-path:polygon(10% 0,90% 0,100% 100%,0 100%)}
.bookmark-sticker-icon .bw-leg{width:5px;height:26px;top:49px;left:22px;transform:rotate(4deg);box-shadow:9px 0 0 currentColor}
.bookmark-sticker-icon .bw-arm{width:4px;height:31px;top:0;left:36px;transform:rotate(18deg);border-radius:4px}
.bookmark-sticker-icon .bw-pier{left:15px;right:12px;bottom:15px;height:10px}.bookmark-sticker-icon .bw-waves{height:5px;left:0;right:0;bottom:2px;border-top:2px solid currentColor;border-bottom:1px solid currentColor;background:transparent;transform:skewY(-5deg);opacity:.4}
.bookmark-sticker-icon .bw-tower{width:28px;height:32px;bottom:15px;left:14px;background:linear-gradient(90deg,currentColor 48%,#ffffff55 49%,currentColor 100%);border:2px solid currentColor}
.bookmark-sticker-icon .bw-tower.mid{width:20px;height:25px;bottom:47px;left:18px}.bookmark-sticker-icon .bw-tower.top{width:12px;height:15px;bottom:72px;left:22px;border-radius:4px 4px 0 0}
.bookmark-sticker-icon .bw-window{width:4px;height:7px;bottom:35px;left:26px;background:var(--bw-paper);box-shadow:0 -30px 0 var(--bw-paper)}
.bookmark-sticker-icon .bw-beam{width:56px;height:26px;left:0;top:0;opacity:.25;clip-path:polygon(50% 35%,100% 0,100% 100%,50% 65%,0 100%,0 0)}

.bookmark-sticker-icon.bw-mark{display:block;width:76px;max-width:none;height:216px;position:relative;margin:0;color:var(--bw-ink);pointer-events:none}
.bookmark-sticker-icon .bw-scene{left:10px;right:10px;top:43px;height:100px}
.bookmark-sticker-icon .bw-num{top:14px}
.bookmark-sticker-icon .bw-brand{position:absolute;top:151px;left:4px;right:4px;text-align:center;font:11px/1.2 Georgia,serif;letter-spacing:1px;color:var(--bw-ink)}
.bookmark-sticker-icon .bw-name{position:absolute;top:170px;left:7px;right:7px;text-align:center;font:8px/1.2 system-ui,sans-serif;font-weight:500;letter-spacing:0;color:var(--bw-ink);white-space:normal;overflow-wrap:normal}
#readerView .bookmark-sticker.bookmark-wonder{width:76px;height:216px;min-width:76px;right:-29px;top:calc(68px + var(--sticker-order,0)*220px);padding:0;background:transparent;border-radius:0}
.bookmark-sticker-choices{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px}
.bookmark-sticker-choices button{min-height:232px;padding:6px 2px!important}
.bookmark-sticker-choices .bookmark-sticker-icon.bw-mark{width:76px;height:216px}
/* On the page, the collection becomes a compact horizontal edge tab. */
#readerView .bookmark-sticker.bookmark-wonder{width:122px;min-width:122px;height:54px;min-height:54px;right:-20px;top:calc(68px + var(--sticker-order,0)*60px)}
#readerView .bookmark-wonder .bookmark-sticker-icon.bw-mark{width:122px;height:54px;clip-path:polygon(0 0,100% 0,94% 50%,100% 100%,0 100%);border-radius:3px 0 0 3px}
#readerView .bookmark-wonder .bw-mark:before{inset:3px 7px 3px 3px;border-radius:2px}
#readerView .bookmark-wonder .bw-scene{left:6px;right:auto;top:5px;width:56px;height:100px;transform:scale(.42);transform-origin:top left}
#readerView .bookmark-wonder .bw-num{display:none}
#readerView .bookmark-wonder .bw-brand{top:7px;left:33px;right:12px;font-size:9px;line-height:1.1;letter-spacing:.7px}
#readerView .bookmark-wonder .bw-name{top:21px;left:31px;right:12px;font-size:8px;line-height:1.15;letter-spacing:0}

/* Center a short row in the white upper margin, away from the text and notes. */
#readerView .bookmark-sticker.bookmark-wonder{top:10px;right:auto;left:calc(50% - var(--sticker-total,1)*64px + var(--sticker-order,0)*128px);height:48px;min-height:48px}
#readerView .bookmark-wonder .bookmark-sticker-icon.bw-mark{height:48px}
#readerView .bookmark-wonder .bw-brand{top:6px}
#readerView .bookmark-wonder .bw-name{top:18px;font-size:8px;line-height:1.1}
/* Compact collection chooser; readable captions accompany the miniature art. */
.bookmark-sticker-choices button{position:relative;min-height:180px;height:180px;padding:3px!important;justify-content:flex-end}
.bookmark-sticker-choices .bookmark-sticker-icon.bw-mark{position:absolute;top:4px;left:50%;transform:translateX(-50%) scale(.62);transform-origin:top center}
.bookmark-choice-label{display:block;position:absolute;bottom:5px;left:4px;right:4px;font:11px/1.15 system-ui,sans-serif;text-align:center;color:var(--ink);white-space:normal;overflow-wrap:normal}
#readerView .bookmark-sticker.bookmark-wonder{left:auto;right:calc(16px + var(--sticker-order,0)*128px);top:10px}
/* Let the upper edge project beyond the paper like a physical bookmark. */
#readerView .bookmark-sticker.bookmark-wonder{top:-12px;filter:drop-shadow(0 3px 3px #0004)}
/* Physical tab projects only to the right; the note target sits below it. */
#readerView .bookmark-sticker.bookmark-wonder{top:10px;left:auto;right:calc(-12px + var(--sticker-order,0)*128px)}
#readerView .pdf-page.has-bookmark-wonder .pdf-note-button{top:76px;min-width:44px;min-height:44px}
#readerView .bookmark-sticker.bookmark-wonder{top:4px;height:44px;min-height:44px}
#readerView .bookmark-wonder .bookmark-sticker-icon.bw-mark{height:44px}
#readerView .bookmark-wonder .bw-scene{top:3px;transform:scale(.38)}
#readerView .bookmark-wonder .bw-brand{top:5px}
#readerView .bookmark-wonder .bw-name{top:17px}

.bookmark-action-dialog{position:fixed;inset:0;z-index:1000;margin:auto;width:min(320px,calc(100vw - 32px));max-height:calc(100dvh - 32px);box-sizing:border-box;padding:20px;background:var(--panel,#202329);color:var(--ink,#f0f0f4);border:1px solid var(--line,#4a4f59);border-radius:14px;box-shadow:0 12px 45px #0007;font:14px/1.5 system-ui}
.bookmark-action-dialog::backdrop{background:#0006}.bookmark-action-dialog h2{font:600 21px Georgia;margin:0 0 8px}.bookmark-action-dialog p{overflow-wrap:anywhere}.bookmark-action-dialog p[role=status]:empty{display:none}.bookmark-action-dialog button{display:block;width:100%;margin-top:8px;min-height:44px;padding:9px;border:1px solid var(--line,#4a4f59);border-radius:9px;background:var(--panel2,#282c34);color:var(--ink,#f0f0f4);font:inherit;touch-action:manipulation;cursor:pointer}.bookmark-action-dialog .bookmark-remove-action{border-color:var(--teal,#a1b2ff);color:var(--teal,#a1b2ff)}

/* Compact illustration with a full touch target alongside its saved passage. */
#readerView .bookmark-sticker.bookmark-wonder{width:104px;min-width:104px;height:44px;min-height:44px;display:flex;align-items:center;right:calc(-12px + var(--sticker-order,0)*110px)}
#readerView .bookmark-wonder .bookmark-sticker-icon.bw-mark{width:104px;height:36px}
#readerView .bookmark-wonder .bw-scene{top:2px;transform:scale(.30)}
#readerView .bookmark-wonder .bw-brand{top:4px;left:27px;right:9px;font-size:8px}
#readerView .bookmark-wonder .bw-name{top:14px;left:26px;right:9px;font-size:7px}

/* Art shrinks to the measured free margin; its hit target stays off the text. */
#readerView .bookmark-sticker.bookmark-adaptive{padding:0;min-width:0;overflow:visible}
#readerView .bookmark-adaptive .bookmark-sticker-icon{flex:none;transform:scale(var(--bookmark-scale,1));transform-origin:left center}
