/* A compact notebook: gold chapter marks, ink-blue controls, green completed thresholds. */
.library-page main{max-width:1180px;margin:auto;padding:22px 28px 70px;color:#ddd7c7}
.library-page [hidden]{display:none!important}
.library-page .library-heading{padding:20px 0 24px;border-bottom:1px solid #7c653c}
.library-page .library-heading .eyebrow{margin:0 0 8px;color:#d9b46a;font-size:11px;letter-spacing:2px;text-transform:uppercase}
.library-page h1{margin:0;color:#f0d290;font:600 clamp(30px,4.3vw,49px)/1.15 var(--display)}
.library-page h2{color:#edcf91;font:600 26px/1.25 var(--display)}
.library-page h3{color:#f0d59e;font:600 19px/1.3 var(--display)}
.library-heading>p:last-child{max-width:850px;margin:15px 0 0;line-height:1.7;color:#c6ccc5}
.library-page .quest-tabs{margin:20px 0 24px}
.library-notebook{padding:24px;border:1px solid #8d7141;background:linear-gradient(115deg,#152126,#101617)}
.library-notebook>h2{margin:0 0 12px}
.library-note{margin:0 0 20px;line-height:1.7;color:#d0c6aa;font-size:13px}
.library-toolbar{display:grid;grid-template-columns:minmax(180px,1fr) auto;gap:8px 16px;align-items:end;margin:0 0 20px}
.library-toolbar label{grid-column:1}
.library-toolbar select{grid-column:1}
.library-toolbar button{grid-column:2;grid-row:2}
.library-page label{color:#dbc18a;font-size:13px}
.library-page input,.library-page select{width:100%;min-width:0;min-height:46px;padding:10px 12px;border:1px solid #897044;border-radius:3px;background:#091216;color:#f1e5cc;font:inherit}
.library-page button{min-height:46px;padding:10px 16px;border:1px solid #c09950;border-radius:3px;background:#583d1e;color:#ffe3a3;font:inherit;font-size:13px;font-weight:600;line-height:1.4;cursor:pointer}
.library-page button:hover{background:#704b23;border-color:#f0c775}
.library-page button:disabled{opacity:.5;cursor:default}
.library-page :is(button,input,select,a):focus-visible{outline:3px solid #f8d890;outline-offset:3px}
.library-page [aria-invalid=true]{border-color:#ffa894;box-shadow:0 0 0 1px #ffa894}
.library-fields{display:grid;grid-template-columns:minmax(190px,1.3fr) minmax(145px,1fr) minmax(120px,.7fr) minmax(160px,1fr);gap:16px}
.library-fields label{display:grid;gap:8px;align-content:start}
.library-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.library-actions button:last-child{background:#18302f;border-color:#749681;color:#ddedd6}
.library-status{min-height:22px;margin:14px 0 0;color:#c1d4c3;font-size:12px;line-height:1.6}
.library-error{padding:12px 14px;border-left:3px solid #eda18c;background:#40251f;color:#ffe0d5;line-height:1.6}
.library-summary{margin:26px 0 16px;color:#f0d6a0;font-size:15px;line-height:1.6;overflow-wrap:anywhere}
.library-tiers{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;border-block:1px solid #685637}
.library-tier{padding:20px 20px 18px;border-left:1px solid #685637}
.library-tier:first-child{border-left:0;padding-left:0}
.library-tier:last-child{padding-right:0}
.library-tier h3{margin:0 0 5px}
.library-tier .library-tier-requirement{margin:0 0 13px;color:#bbbdae;font-size:12px}
.library-tier progress{display:block;width:100%;height:9px;border:0;border-radius:3px;overflow:hidden;background:#081214;accent-color:#d5aa5c}
.library-tier progress::-webkit-progress-bar{background:#081214}
.library-tier progress::-webkit-progress-value{background:#d5aa5c}
.library-tier progress::-moz-progress-bar{background:#d5aa5c}
.library-tier-count{margin:10px 0 5px;color:#e9ca85;font-size:13px}
.library-tier-status{min-height:42px;margin:0;color:#c4c8bf;font-size:12px;line-height:1.6}
.library-tier[data-ready=true] .library-tier-status{color:#bed9b7}
.library-tier[data-ready=true] progress{accent-color:#abc29a}
.library-tier[data-ready=true] progress::-webkit-progress-value{background:#abc29a}
.library-tier[data-ready=true] progress::-moz-progress-bar{background:#abc29a}
.library-librarian{display:flex;flex-wrap:wrap;gap:8px 18px;align-items:baseline;margin:20px 0 0;color:#c6cbc3;line-height:1.6}
.library-librarian strong{color:#f0cf8a}
.library-profile-tools{margin:20px 0 0;border-top:1px solid #685637;padding-top:15px}
.library-profile-tools>summary{min-height:44px;color:#ddc086;cursor:pointer;padding:10px 0}
.library-profile-tools>summary:focus-visible{outline:3px solid #f8d890;outline-offset:3px}
.library-profile-tools form{display:grid;grid-template-columns:minmax(180px,1fr) auto;gap:8px 16px;margin-top:12px}
.library-profile-tools form label{grid-column:1/-1}
.library-profile-tools .library-private-note{font-size:12px;line-height:1.7;color:#bfc5ba}
.library-guide{display:grid;grid-template-columns:1.3fr 1fr;gap:45px;margin:34px 0 0}
.library-guide h2{margin:0 0 16px}
.library-guide p,.library-guide li{color:#ccd0c7;font-size:14px;line-height:1.8}
.library-guide ol{padding-left:22px;margin:0}
.library-guide li{padding-left:4px;margin-bottom:12px}
.library-guide .library-caution{margin-top:22px;padding:14px 16px;border-left:3px solid #b89550;background:#a6843010;color:#d8c99f}
.library-guide a{color:#f0ce88;text-underline-offset:4px}
.library-page .library-updated{margin:25px 0 0;color:#b1b9b0;font-size:12px;line-height:1.7}
@media(max-width:900px){.library-fields{grid-template-columns:1fr 1fr}.library-guide{gap:25px}.library-tier{padding-inline:15px}}
@media(max-width:620px){.library-page main{padding:16px 14px 45px}.library-notebook{padding:18px 14px}.library-fields{grid-template-columns:1fr 1fr;gap:12px}.library-fields label:first-child{grid-column:1/-1}.library-toolbar{grid-template-columns:1fr}.library-toolbar button{grid-column:1;grid-row:3;justify-self:start}.library-tiers{grid-template-columns:1fr}.library-tier,.library-tier:first-child,.library-tier:last-child{padding:17px 0;border-left:0;border-bottom:1px solid #685637}.library-tier:last-child{border-bottom:0}.library-tier-status{min-height:0}.library-guide{grid-template-columns:1fr;gap:25px}.library-profile-tools form{grid-template-columns:1fr}.library-actions button{flex:1;min-width:150px}.library-page .quest-tabs a{flex-basis:45%;font-size:12px}.library-notebook>h2{font-size:25px}}
@media(max-width:360px){.library-fields{grid-template-columns:1fr}.library-fields label:first-child{grid-column:auto}.library-profile-tools form button{justify-self:start}.library-page h1{font-size:30px}}
@media(max-width:620px){.library-page .library-heading{padding:12px 0 16px}.library-page h1{font-size:27px}.library-heading>p:last-child{font-size:14px;line-height:1.65;margin-top:10px}.library-note{font-size:12px;margin-bottom:16px}.library-page .quest-tabs{margin-block:16px}.library-toolbar{margin-bottom:16px}}

/* Library field notes: each verified identity appears once, even with two locations. */
.library-heading .library-jump{display:inline-flex;min-height:44px;align-items:center;margin-top:16px;color:#f0ce88;text-underline-offset:4px}
.library-locations{margin-top:40px;padding-top:28px;border-top:1px solid #8d7141;scroll-margin-top:105px}
.library-locations>header{display:flex;gap:20px;align-items:baseline;justify-content:space-between}
.library-locations>header h2{margin:0 0 12px}
.library-location-count{color:#eacb84;font:600 30px/1 var(--display);white-space:nowrap}
.library-location-count small{font:12px/1.4 var(--body)}
.library-location-intro,.library-location-note{color:#c6cbc3;font-size:14px;line-height:1.75;margin:0 0 18px;max-width:950px}
.library-book-filters{display:grid;grid-template-columns:1.5fr 1fr auto;gap:14px;align-items:end;padding:18px;margin-bottom:15px;background:#122025;border:1px solid #71603e}
.library-book-filters label{display:grid;gap:8px}
.library-book-results{color:#bdcbbf;font-size:13px;margin:16px 0}
.library-book-grid{list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;padding:0;margin:0}
.library-book-card{position:relative;min-width:0;padding:20px;border:1px solid #71603e;border-left:3px solid #b5904e;background:#111c20;scroll-margin-top:105px}
.library-book-card:target{border-color:#eed091;box-shadow:0 0 0 2px #d5ab583e}
.library-book-card:focus-visible{outline:3px solid #f8d890;outline-offset:3px}
.library-book-heading{position:relative;margin-bottom:12px}
.library-book-heading h3{margin:0}
.library-page .library-book-info{display:flex;gap:12px;align-items:center;text-align:left;width:100%;padding:0 0 6px;border:0;background:transparent;color:#f0d59e;font:600 19px/1.35 var(--display);border-radius:0;overflow-wrap:anywhere}
.library-page .library-book-info:hover{background:transparent}
.library-book-info img{width:46px;height:46px;flex:0 0 46px;border:1px solid #bb9250;object-fit:cover}
.library-book-tooltip{display:none;position:absolute;inset:100% 0 auto;z-index:5;padding:16px;border:1px solid #d0b36e;background:#071216;color:#eee1c3;box-shadow:0 8px 25px #000a;font-size:12px;line-height:1.6}
.library-book-tooltip strong,.library-book-tooltip span{display:block}
.library-book-tooltip strong{font-size:14px;margin-bottom:6px;color:#ffdfa1}
.library-book-tooltip .library-tooltip-build{margin-top:6px;color:#b6c5bb}
.library-book-heading:not([data-dismissed=true]):is(:hover,:focus-within) .library-book-tooltip,.library-book-heading[data-pinned=true] .library-book-tooltip{display:block}
.library-book-subtitle{font-size:11px;color:#b3beb5;line-height:1.5;margin:0 0 12px;overflow-wrap:anywhere}
.library-book-place{font-size:13px;line-height:1.75;color:#d2d4c7;margin:0 0 12px}
.library-book-places{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.library-book-position{display:flex;align-items:baseline;flex-wrap:wrap;justify-content:space-between;gap:4px 10px}
.library-book-position strong{color:#dbc38b;font-size:12px}
.library-book-coordinate{color:#e9d7ac;font:500 14px/1.5 var(--body);font-variant-numeric:tabular-nums}
.library-book-coordinate small{font-size:11px;color:#c3cabc;margin-left:5px}
.library-book-places a,.library-book-permalink{display:inline-flex;align-items:center;min-height:44px;color:#efcb81;text-underline-offset:4px;font-size:12px}
.library-book-note{font-size:12px;line-height:1.7;color:#c9c6b4;margin:10px 0 0}
.library-book-permalink{margin-top:8px}
.library-book-empty{padding:18px;border:1px solid #8d7141;background:#142327}
.library-book-empty p{margin:0 0 14px;color:#e4d7b8;line-height:1.6}
.library-location-note{margin:22px 0 0;padding:16px;border-left:3px solid #b89550;background:#a6843010;font-size:12px}
@media(max-width:900px){.library-book-filters{grid-template-columns:1fr 1fr}.library-book-filters button{grid-column:1/-1;justify-self:start}}
@media(max-width:620px){.library-locations>header{gap:12px}.library-locations>header h2{font-size:25px}.library-book-grid{grid-template-columns:1fr}.library-book-card{padding:17px 14px}.library-book-filters{grid-template-columns:1fr;padding:15px}.library-book-filters button{grid-column:auto}.library-location-intro{font-size:13px}.library-location-count{font-size:25px}.library-location-count small{display:block;font-size:11px}}

/* A reward register: compare the source threshold and equipment level side by side. */
.library-rewards{margin-top:36px;padding-top:28px;border-top:1px solid #8d7141;scroll-margin-top:105px}
.library-rewards>header{display:flex;justify-content:space-between;gap:20px;align-items:baseline}
.library-rewards>header h2{margin:0 0 12px}
.library-rewards .library-book-filters{grid-template-columns:1.3fr 1fr 1fr auto;margin-top:18px}
.library-rewards .library-book-card{border-left-width:3px}
.library-reward-tier{margin:0 0 13px;color:#d8cda9;font-size:12px;line-height:1.6}
.library-reward-tier strong{display:inline-block;color:#f2d296;margin-right:9px}
.library-reward-levels{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:12px 0;border-block:1px solid #6e5c3c;margin:14px 0}
.library-reward-levels p{margin:0;color:#c4cbbf;font-size:11px;line-height:1.7}
.library-reward-levels b{display:block;color:#ead6a7;font-size:14px}
.library-reward-levels .library-level-blocked b{color:#ffb698}
.library-reward-stats{margin:0;padding:0;list-style:none;font-size:13px;line-height:1.8;color:#d2decf}
.library-reward-condition{margin:14px 0 0;color:#c4cabc;font-size:12px;line-height:1.75}
.library-reward-card .library-book-tooltip{max-height:60vh;overflow:auto}
.library-reward-card.quality-rare .library-book-info{color:#a4c5ff}
.library-reward-card.quality-uncommon .library-book-info{color:#a4d49c}
.library-reward-card .library-tooltip-item-meta{margin-bottom:8px;color:#d0d5c3}
.library-reward-card .library-tooltip-stats{margin:8px 0;color:#c8e4bd}
.library-heading .library-jump+.library-jump{margin-left:22px}
.loot-library-link{display:flex;justify-content:space-between;gap:24px;align-items:center;margin:22px 0 32px;padding:19px 23px;border-block:1px solid #937742;background:#122025}
.loot-library-link h2{font:600 22px/1.4 var(--display);margin:0 0 5px;color:#edce88}
.loot-library-link p{font-size:13px;line-height:1.8;color:#c9d1c5;margin:0}
.loot-library-link a{display:inline-flex;min-height:44px;align-items:center;color:#efcb81;text-underline-offset:4px;white-space:nowrap;font-size:13px}
@media(max-width:900px){.library-rewards .library-book-filters{grid-template-columns:1fr 1fr}.library-rewards .library-book-filters button{grid-column:auto;justify-self:start}}
@media(max-width:620px){.library-rewards>header h2{font-size:25px}.library-rewards>header{gap:12px}.library-rewards .library-book-filters{grid-template-columns:1fr}.library-reward-levels{gap:8px}.library-reward-card .library-book-tooltip{font-size:11px}.library-heading .library-jump+.library-jump{margin-left:0}.loot-library-link{align-items:start;flex-direction:column;gap:8px;padding:17px 14px}.loot-library-link h2{font-size:21px}.loot-library-link a{white-space:normal}}

/* Personal title notes keep the partial directory separate from the manual total. */
.library-title-notes{margin:8px 0 20px;padding:16px 0;border-block:1px solid #685637}
.library-title-profile{margin:0 0 8px;color:#efd299;font-size:16px;font-weight:600;overflow-wrap:anywhere}
.library-title-summary{margin:0 0 8px;color:#c7d9c9;font-size:13px;line-height:1.7}
.library-title-notes p:last-of-type{max-width:860px;margin:0;color:#c6cbc3;font-size:12px;line-height:1.75}
.library-title-notes a{display:inline-flex;align-items:center;min-height:44px;margin-top:5px;color:#efcb81;font-size:12px;text-underline-offset:4px}
.library-locations .library-book-filters{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr) auto}
.library-book-tracking{display:grid;grid-template-columns:minmax(70px,auto) minmax(0,1fr);gap:12px;align-items:center;margin-top:14px;padding-top:14px;border-top:1px solid #685637}
.library-book-card[data-book-status=delivered]{border-left-color:#a5c89a}
.library-book-card[data-book-status=bag]{border-left-color:#e6be72}
@media(max-width:900px){.library-locations .library-book-filters{grid-template-columns:1fr 1fr}.library-locations .library-book-filters button{grid-column:auto;justify-self:stretch}}
@media(max-width:620px){.library-locations .library-book-filters{grid-template-columns:1fr}.library-title-profile{font-size:15px}.library-book-tracking{gap:8px;grid-template-columns:auto minmax(0,1fr)}}
