.worldbook-page { padding-top: 22px; }
.worldbook-intro { display: flex; align-items: center; gap: 20px; padding: 5px 2px 23px; }
.worldbook-cover { position: relative; width: 79px; height: 98px; background: linear-gradient(145deg,#b7a2c5,#94809f); border-radius: 5px 12px 12px 5px; display: grid; place-items: center; color: #fbf2df; box-shadow: inset 5px 0 0 #66557226,inset 7px 0 0 #ffffff20,3px 5px 10px #72617c22; flex-shrink: 0; }
.worldbook-cover>.icon { width: 36px; height: 36px; stroke-width: 1.2; }
.worldbook-cover>i { position: absolute; bottom: 10px; right: 12px; font-size: 10px; font-style: normal; opacity: .8; }
.worldbook-intro>div>small { font-size: 10px; color: var(--secondary); letter-spacing: 1px; }
.worldbook-intro h1 { font-size: 30px; font-weight: 550; margin: 8px 0 12px; letter-spacing: -.5px; }
.worldbook-intro p { color: var(--secondary); font-size: 11px; margin: 0; }
.worldbook-notice { border: 1px solid #c8bdd14d; background: #e9e2ef55; padding: 11px 13px; border-radius: 10px; color: #8d7d98; font-size: 10px; line-height: 1.8; margin-bottom: 19px; }
.worldbook-notice>span { font-size: 9px; opacity: .8; }
.worldbook-page>.search-field { background: var(--surface); border: 1px solid var(--line); }
.worldbook-filters { display: flex; gap: 6px; overflow: auto; padding: 17px 0 15px; scrollbar-width: none; }
.worldbook-filters>button { font-size: 10px; white-space: nowrap; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); padding: 8px 12px; color: #a198a7; min-height: 32px; }
.worldbook-filters>button.selected { background: #a28aad; border-color: #a28aad; color: #fff; }
.worldbook-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px 12px; margin-bottom: 12px; }
.worldbook-card.disabled { background: #eae8ed50; }
.worldbook-card.disabled h2 { color: #a49daa; }
.worldbook-card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.worldbook-entry-open { text-align: left; min-width: 0; flex: 1; padding: 0; }
.worldbook-category { font-size: 8px; color: #a28eac; background: #eee8f269; padding: 3px 5px; border-radius: 4px; display: inline-block; }
.worldbook-entry-open>h2 { font-size: 16px; font-weight: 550; margin: 9px 0 5px; line-height: 1.5; overflow-wrap: anywhere; }
.worldbook-switch { cursor: pointer; position: relative; display: grid; place-items: center; width: 45px; height: 45px; flex-shrink: 0; }
.worldbook-switch>input { width: 38px; height: 23px; margin: 0; opacity: 0; cursor: pointer; position: absolute; z-index: 1; }
.worldbook-switch>span { width: 37px; height: 22px; border-radius: 20px; background: #d6d3d9; display: block; position: relative; transition: background .15s; }
.worldbook-switch>span::after { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: #fff; left: 2px; top: 2px; box-shadow: 0 1px 2px #0002; transition: transform .15s; }
.worldbook-switch>input:checked+span { background: #a48cb1; }
.worldbook-switch>input:checked+span::after { transform: translateX(15px); }
.worldbook-switch>input:focus-visible+span { outline: 3px solid #79a3c4; outline-offset: 3px; }
.worldbook-entry-body { padding: 0; text-align: left; display: block; width: 100%; }
.worldbook-entry-body>p { font-size: 11px; color: #99909d; line-height: 1.9; margin: 8px 0 12px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.worldbook-tags { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; }
.worldbook-tags>span { font-size: 8px; color: #a59bad; border: 1px solid #ded5e359; padding: 3px 5px; border-radius: 4px; }
.worldbook-tags>i { font-size: 8px; color: #b5a7bd; font-style: normal; padding: 3px 0; }
.worldbook-footnote { font-size: 9px; line-height: 1.8; color: var(--secondary); text-align: center; padding: 13px 6px 0; }
.worldbook-empty { padding: 30px 10px; color: var(--secondary); }
.worldbook-empty>.icon { width: 30px; height: 30px; stroke-width: 1; margin: 0 auto 17px; }
.worldbook-empty>p { font-size: 12px; }
.worldbook-empty>button { color: #9b82a9; font-size: 11px; min-height: 40px; }
.worldbook-editor { padding-top: 10px; }
.worldbook-editor .character-form { gap: 18px; }
.worldbook-editor .character-form textarea { min-height: 154px; }
.worldbook-editor .primary-button { background: #a08aaf; }
.worldbook-editor .worldbook-enabled-field { flex-direction: row; justify-content: space-between; align-items: center; background: var(--surface); padding: 13px; border: 1px solid var(--line); border-radius: 11px; }
.worldbook-enabled-field>input { width: 19px; height: 19px; margin: 0; padding: 0; accent-color: #a08aaf; }
.worldbook-role-link { width: 100%; display: flex; gap: 11px; align-items: center; text-align: left; padding: 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin: 8px 0 13px; color: #9f89ae; }
.worldbook-role-link>span { flex: 1; display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.worldbook-role-link small { font-size: 9px; color: var(--secondary); }
.worldbook-role-link>.icon { width: 20px; height: 20px; }
.worldbook-role-link>.icon:last-child { width: 14px; height: 14px; }
.moon .worldbook-cover { background: linear-gradient(145deg,#8899b5,#637796); }
.moon .worldbook-filters>button.selected { background: #8295b1; border-color: #8295b1; }
.moon .worldbook-switch>input:checked+span { background: #8f9eb8; }
.moon .worldbook-editor .primary-button { background: #8295b1; }
