/* One continuous paper edge, including its small pull tab. */
#app #toast.top-notice{--notice-paper-top:#fffcf2;--notice-paper-bottom:#f6efdf;--notice-outline:#cbbb98;border:0;border-radius:0;background:none;box-shadow:none;overflow:visible;padding:6px 22px 7px 53px;isolation:isolate;touch-action:none}
#app #toast.top-notice>.notice-surface{position:absolute;inset:0;width:100%;height:calc(100% + 10px);overflow:visible;z-index:-1;pointer-events:none;filter:drop-shadow(0 3px 4px #29463c25)}
#app #toast.top-notice.notice-error{--notice-paper-top:#fff8ed;--notice-paper-bottom:#f3e4d8;--notice-outline:#c9a48f}
#app #toast.top-notice .notice-emblem{left:12px;width:29px;height:32px;color:#929d76}
#app #toast.top-notice .notice-emblem:after{content:'';position:absolute;left:35px;top:5px;bottom:5px;width:1px;background:linear-gradient(transparent,#c5b38377,transparent)}
#app #toast.top-notice .notice-copy{position:relative;gap:2px}
#app #toast.top-notice .notice-text{font:700 13px/16px Interface,sans-serif;color:#426555;letter-spacing:.1px;-webkit-line-clamp:2}
#app #toast.top-notice .notice-copy>small{font:400 9px/12px Interface,sans-serif;color:#9b8a65;letter-spacing:.1px}
#app #toast.top-notice.notice-error .notice-text{color:#9b6559}
#app #toast.top-notice.notice-loot .notice-emblem{width:32px;height:36px;left:10px;filter:drop-shadow(0 2px 2px #8e744b30)}
#app #toast.top-notice.notice-loot .notice-text{color:#426449}
#app #toast.top-notice>.notice-dismiss{position:absolute;top:calc(100% - 3px);bottom:auto;left:50%;width:48px;height:26px;min-height:26px;padding:0;transform:translateX(-50%);display:flex;align-items:flex-start;justify-content:center;border:0;background:none;box-shadow:none;overflow:visible;touch-action:none;z-index:2;color:#7e906c}
#app #toast.top-notice>.notice-dismiss>svg{display:block;width:20px;height:12px;filter:none;pointer-events:none}
#app #toast.top-notice .notice-progress{width:min(270px,94%);height:3px;margin-top:2px;border:0;border-radius:3px;background:#d8d7bf;box-shadow:inset 0 1px 1px #6d76531f}
#app #toast.top-notice .notice-progress>i{background:linear-gradient(90deg,#668b77,#a5bb78);transition:transform .1s linear;box-shadow:none}
#app #toast.top-notice .notice-progress>i:after{width:4px;height:3px;background:#f0dfa2;box-shadow:0 0 3px #d3c47e}
/* Portrait, name and level share a baseline; the tool never stretches the row. */
#hero .v13-identity{position:relative;gap:12px;padding:12px;align-items:center;min-height:102px}
#hero .v13-identity>img{width:66px;height:76px;flex:0 0 66px;object-fit:cover}
#hero .v13-identity-copy{display:grid;grid-template-columns:minmax(0,1fr) 38px;grid-template-rows:auto auto auto auto;column-gap:7px;row-gap:5px;align-items:center;min-width:0}
#hero .v13-identity-title{grid-column:1;grid-row:1;display:flex;justify-content:flex-start;align-items:baseline;gap:8px;min-width:0}
#hero .v13-identity-title>h2{font:700 21px/1.2 Interface,sans-serif;letter-spacing:-.4px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#hero .v13-identity-level{flex:none;white-space:nowrap;font:700 9px/1.3 Interface,sans-serif;padding:2px 5px;border:1px solid #c1cdad;border-radius:4px;background:#edf1df;color:#6e8159}
#hero .v13-identity-meta{grid-column:1;grid-row:2;margin:0;font:400 10px/1.3 Interface,sans-serif}
#hero .v13-identity-tools{grid-column:2;grid-row:1 / 3;align-self:start;justify-self:end}
#hero .v13-identity-tools>.icon-button{display:grid;place-items:center;width:38px;height:30px;min-height:30px;padding:0;border:1px solid #cbd0b9;border-radius:7px;background:#fff9eacc;box-shadow:inset 0 1px 0 #fff9;color:#648373}
#hero .v13-identity-tools>.icon-button .icon{font-size:15px}
#hero .v13-xp-label{grid-column:1 / -1;grid-row:3;display:flex;justify-content:space-between;gap:8px;font:400 8px/1.4 Interface,sans-serif;margin:2px 0 0;color:#9c967f}
#hero .v13-xp-label>small{font:inherit}
#hero .v13-xp-label>span{font-variant-numeric:tabular-nums}
#hero .v13-xp{grid-column:1 / -1;grid-row:4;height:4px;margin:0}
/* Decorative corner engraving stays away from the quantity. */
#app .combat-result .result-item:before{inset:3px;z-index:0;border-width:14px;border-image-width:14px;opacity:.36}
#app .combat-result .result-item-meta{position:relative;z-index:1;padding:1px 3px 0;background:none;border-radius:3px}
#app .combat-result .result-item-meta>span:last-child{display:inline-block;min-width:20px;padding:0 1px;background:none;border:0;box-shadow:none;font:400 10px/1.4 Interface,sans-serif;font-variant-numeric:tabular-nums;text-align:right}
#app .combat-result .result-item-meta>span:last-child:before,#app .combat-result .result-item-meta>span:last-child:after{content:none}
/* The desk reads from top to bottom: search, navigation and tools, chapter. */
#knowledge-root .knowledge-footer{grid-template-areas:'search' 'tools' 'context';grid-template-rows:minmax(0,.95fr) minmax(0,1fr) minmax(0,.51fr)}
#knowledge-root .knowledge-search{grid-area:search}
#knowledge-root .knowledge-page-tools{grid-area:tools}
#knowledge-root .knowledge-context{grid-area:context}
/* This ink lies on the first two bound pages; it has no separate paper or frame. */
#knowledge-root .knowledge-contents{position:absolute;inset:0;z-index:3;pointer-events:none}
#knowledge-root .knowledge-contents[hidden]{display:none}
#knowledge-root .contents-leaf{position:absolute;display:flex;flex-direction:column;min-width:0;overflow:hidden;pointer-events:auto;padding:0;border:0;background:none;box-shadow:none;touch-action:pan-y}
#knowledge-root .contents-leaf>nav,#knowledge-root .knowledge-index-list{display:flex;flex-direction:column;gap:0;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:none;touch-action:pan-y}
#knowledge-root .contents-leaf>nav::-webkit-scrollbar,#knowledge-root .knowledge-index-list::-webkit-scrollbar{display:none}
#knowledge-root .contents-leaf button{display:flex;align-items:center;justify-content:space-between;flex:none;gap:6px;min-width:0;min-height:27px;padding:5px 1px;border:0;border-bottom:1px solid #ab804a35;border-radius:0;background:none;box-shadow:none;text-align:left;color:#4b5b37;font:400 12px/1.2 Interface,sans-serif}
#knowledge-root .contents-leaf button>span{min-width:0;overflow-wrap:anywhere}
#knowledge-root .contents-leaf button>small{flex:none;font:italic 9px/1.2 Interface,sans-serif;color:#987340;white-space:nowrap}
#knowledge-root .contents-leaf button[aria-pressed=true]{color:#234c38;font-weight:700;border-bottom-color:#8c9b68;background:linear-gradient(90deg,#78895c20,transparent)}
#knowledge-root .contents-leaf button:active{color:#91682e}
#knowledge-root .knowledge-index-list>button{min-height:34px;font-size:11px}
#knowledge-root .contents-leaf>small{flex:none;font:italic 9px/1.3 Interface,sans-serif;color:#987643;padding-top:7px}
#knowledge-root .knowledge-index-list>p{padding:2px 0;font:400 11px/1.4 Interface,sans-serif;color:#8c7447}
#knowledge-root[data-phase=opening] .knowledge-contents,#knowledge-root[data-phase=closing] .knowledge-contents,#knowledge-root[data-phase=turning] .knowledge-contents,#knowledge-root[data-phase=dragging] .knowledge-contents{visibility:hidden;pointer-events:none}
#knowledge-root .reader-contents button{display:flex;align-items:center;justify-content:space-between;gap:9px;width:100%;padding:12px 0;border:0;border-bottom:1px solid #ae89534d;border-radius:0;background:none;color:#34543e;font:400 18px/1.3 Interface,sans-serif;text-align:left}
#knowledge-root .reader-contents small{font:italic 12px Interface,sans-serif;color:#8f6c3c;white-space:nowrap}
@media(max-width:350px){#hero .v13-identity{gap:9px;padding:10px}#hero .v13-identity>img{width:59px;height:72px;flex-basis:59px}#hero .v13-identity-title{gap:5px}#hero .v13-identity-title>h2{font-size:18px}#hero .v13-identity-level{font-size:8px;padding-inline:4px}#knowledge-root .contents-leaf button{font-size:10px;min-height:24px;padding-block:4px}#knowledge-root .knowledge-index-list>button{font-size:10px;min-height:29px}#knowledge-root .contents-leaf button>small{font-size:8px}#app #toast.top-notice .notice-text{font-size:12px}}

#knowledge-root .contents-chapters{height:100%;display:grid!important;grid-template-rows:repeat(9,minmax(0,1fr));overflow:auto}
#knowledge-root .contents-chapters>button{height:100%;min-height:0;padding:2px 1px}
#knowledge-root .contents-leaf .knowledge-index-list>button>span{font:inherit;line-height:1.25;color:inherit}

#knowledge-root[data-loupe=true] .knowledge-contents .contents-leaf{pointer-events:none}
