html body #mmorpgWindow[data-subpanel="journal"] #mmorpgCharacterPanel{padding:10px;background:#1b120b;border:8px solid #3a2616;border-image:none;border-radius:8px;box-shadow:0 18px 50px #000b,inset 0 0 0 2px #7a5832}
.journal-book{display:flex;flex-direction:column;gap:8px;color:#3c2b1b;font-family:Grenze Gotisch,Georgia,serif}
.journal-tabs{display:flex;justify-content:space-around;border-bottom:1px solid #7a5832;padding-bottom:6px}
.journal-tabs button{margin:0;background:transparent;border:0;border-bottom:2px solid transparent;color:#bba37a;font:400 22px Grenze Gotisch,Georgia,serif;padding:2px 22px;cursor:pointer}
.journal-tabs button:hover{color:#f3dfb3}
.journal-tabs button[aria-selected="true"]{color:#f6e7c0;border-bottom-color:#d7b36a}
.journal-spread{position:relative;display:grid;grid-template-columns:1fr 1.25fr;min-height:52vh;max-height:62vh;margin-right:34px;border-radius:6px;background:linear-gradient(90deg,#e8d09a,#f3dfb3 48%,#b99454 50%,#f3dfb3 52%,#e8d09a);box-shadow:inset 0 0 40px #8a6a3f88,0 4px 14px #000a}
.journal-leaf{min-height:0;overflow:auto;padding:16px 22px}
.journal-left{border-right:0;display:flex;flex-direction:column}
.journal-left h3{margin:0 0 6px;font:700 18.5px Grenze Gotisch,Georgia,serif;color:#51351e;text-align:center;letter-spacing:.06em}
.journal-controls{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-bottom:8px}
.journal-controls input{grid-column:1/3}
.journal-controls input,.journal-controls select{margin:0;padding:4px 6px;font:14.5px Grenze Gotisch,Georgia,serif;border:1px solid #8a6a3f;border-radius:3px;background:#fbf0d0;color:#3c2b1b}
.journal-list{display:flex;flex-direction:column;overflow:auto;gap:1px!important;max-height:none!important;padding:0!important}
.journal-group{margin:8px 0 2px;padding:5px 8px;text-align:left;border:0;border-bottom:1px solid #a47a49;background:transparent;color:#51351e;font:700 16.5px Grenze Gotisch,Georgia,serif;cursor:pointer}
.journal-toc-item{display:flex;align-items:center;gap:8px;margin:0;padding:5px 10px 5px 22px;text-align:left;border:0;border-radius:3px;background:transparent;color:#3c2b1b;font:16.5px Grenze Gotisch,Georgia,serif;cursor:pointer}
.journal-toc-item:hover{background:#e2c88f}
.journal-toc-item[aria-current="true"]{background:#d9b878;box-shadow:inset 3px 0 #75502f;font-weight:700}
.journal-dot{flex:none;width:8px;height:8px;border-radius:50%;background:#a99266}
.journal-toc-item[data-status="ready"] .journal-dot{background:#3f8a39;box-shadow:0 0 0 3px #3f8a3955}
.journal-toc-item[data-status="active"] .journal-dot{background:#c98a2b}
.journal-toc-item[data-status="completed"]{opacity:.6}
.journal-right{background:transparent}
.journal-entry{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}
.journal-entry::before{display:none!important}
.journal-title{margin:6px 0 4px!important;font:400 31px Grenze Gotisch,Georgia,serif!important;color:#3a2412!important;border-bottom:1px solid #a47a49;padding-bottom:4px}
.journal-story{font-size:1.1rem;line-height:1.5;color:#4b3520}
.journal-giver{font-style:italic;color:#715334}
.journal-right h4{margin:16px 0 4px;font:700 13px Grenze Gotisch,Georgia,serif;letter-spacing:.1em;text-transform:uppercase;color:#715334}
.journal-steps{list-style:none;margin:0;padding:0}
.journal-steps li{position:relative;padding:3px 0 3px 26px}
.journal-steps li::before{content:'';position:absolute;left:2px;top:6px;width:13px;height:13px;border:2px solid #75502f;border-radius:2px}
.journal-steps li.done{text-decoration:line-through;color:#8a7352}
.journal-steps li.done::before{background:#75502f;box-shadow:inset 0 0 0 2px #f3dfb3}
.journal-reward{font:italic 14.5px Grenze Gotisch,Georgia,serif;color:#7a5a36!important}
.journal-actions{display:flex;gap:8px;justify-content:flex-end}
.journal-actions button{margin:0!important;padding:4px 14px;border:1px solid #4d321e;border-radius:4px;background:#75502f;color:#fff1cf;font:700 14.5px Grenze Gotisch,Georgia,serif;cursor:pointer}
.journal-actions button:disabled{opacity:.45;cursor:default}
.journal-actions .journal-primary{background:#3f7a3a;border-color:#2b5528}
.journal-side{position:absolute;right:-36px;top:14px;display:flex;flex-direction:column;gap:8px}
.journal-side-tab{width:34px;height:42px;margin:0;padding:0;border:1px solid #4d321e;border-left:0;border-radius:0 8px 8px 0;background:#a47a49;color:#fff1cf;font:20px Grenze Gotisch,Georgia,serif;cursor:pointer}
.journal-side-tab[aria-selected="true"]{background:#e2c88f;color:#3a2412;width:40px}
.journal-notes{flex:1;min-height:30vh;width:100%;resize:none;border:1px solid #a47a49;border-radius:3px;background:#fbf0d055;color:#3c2b1b;font:17.5px/1.5 Grenze Gotisch,Georgia,serif;padding:8px}
.journal-meta{color:#715334;font-style:italic;text-align:center}
.journal-empty{padding:18px;text-align:center;color:#715334;font-style:italic}
@media (max-width:760px){.journal-spread{grid-template-columns:1fr;max-height:none}.journal-left{max-height:34vh}}
/* Beat the global green modal button skin. */
html body #mmorpgOverlay .journal-book button{background:transparent!important;background-image:none!important;border:0!important;box-shadow:none!important;color:#3c2b1b!important;text-shadow:none!important;min-height:0!important;width:auto;margin:0}
html body #mmorpgOverlay .journal-book .journal-tabs button{color:#bba37a!important;font:400 22px Grenze Gotisch,Georgia,serif!important;padding:2px 22px!important;border-bottom:2px solid transparent!important}
html body #mmorpgOverlay .journal-book .journal-tabs button[aria-selected="true"]{color:#f6e7c0!important;border-bottom-color:#d7b36a!important}
html body #mmorpgOverlay .journal-book .journal-group{width:100%;text-align:left;border-bottom:1px solid #a47a49!important;padding:5px 8px!important;font:700 16.5px Grenze Gotisch,Georgia,serif!important;color:#51351e!important}
html body #mmorpgOverlay .journal-book .journal-toc-item{width:100%;text-align:left;padding:5px 10px 5px 22px!important;font:16.5px Grenze Gotisch,Georgia,serif!important;border-radius:3px}
html body #mmorpgOverlay .journal-book .journal-toc-item:hover{background:#e2c88f!important}
html body #mmorpgOverlay .journal-book .journal-toc-item[aria-current="true"]{background:#d9b878!important;box-shadow:inset 3px 0 #75502f!important}
html body #mmorpgOverlay .journal-book .journal-side-tab{width:34px;height:42px;background:#a47a49!important;color:#fff1cf!important;border:1px solid #4d321e!important;border-left:0!important;border-radius:0 8px 8px 0!important;font:20px Grenze Gotisch,Georgia,serif!important;padding:0!important}
html body #mmorpgOverlay .journal-book .journal-side-tab[aria-selected="true"]{background:#e2c88f!important;color:#3a2412!important;width:40px}
html body #mmorpgOverlay .journal-book .journal-actions button{background:#75502f!important;color:#fff1cf!important;border:1px solid #4d321e!important;border-radius:4px;padding:5px 14px!important;font:700 14.5px Grenze Gotisch,Georgia,serif!important}
html body #mmorpgOverlay .journal-book .journal-actions .journal-primary{background:#3f7a3a!important;border-color:#2b5528!important}
.journal-left{overflow-x:hidden}
.journal-controls>*{min-width:0;box-sizing:border-box;width:100%}
.journal-controls{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.journal-title{font-size:26.5px!important;overflow-wrap:anywhere}
/* ===== Theme pass: match the HUD (deep forest green + gold) ===== */
html body #mmorpgWindow[data-subpanel="journal"] #mmorpgCharacterPanel{background:linear-gradient(180deg,#0f1a15,#0a120e)!important;border:1px solid #6e5a35!important;border-radius:10px;box-shadow:inset 0 0 0 1px #000,inset 0 0 0 2px #ebd39122,0 18px 50px #000b!important;color:#e6d9b6}
.journal-book{color:#e6d9b6}
.journal-tabs{border-bottom:1px solid #6e5a35;padding-bottom:8px}
html body #mmorpgOverlay .journal-book .journal-tabs button{color:#9d9680!important;letter-spacing:.04em}
html body #mmorpgOverlay .journal-book .journal-tabs button:hover{color:#ebd391!important}
html body #mmorpgOverlay .journal-book .journal-tabs button[aria-selected="true"]{color:#ebd391!important;border-bottom-color:#b9954f!important}
.journal-spread{background:linear-gradient(90deg,#14231c,#182a22 49.5%,#07100c 50%,#182a22 50.5%,#14231c);border:1px solid #3a4a3c;box-shadow:inset 0 0 40px #00000099,0 4px 14px #000a}
.journal-leaf{color:#e6d9b6}
.journal-left h3{color:#ebd391;border-bottom:1px solid #6e5a3566;padding-bottom:6px}
.journal-controls input,.journal-controls select{background:#0b1410;color:#e6d9b6;border:1px solid #4d4630}
.journal-controls input::placeholder{color:#7d7967}
html body #mmorpgOverlay .journal-book .journal-group{color:#ebd391!important;border-bottom:1px solid #6e5a3577!important;letter-spacing:.04em}
html body #mmorpgOverlay .journal-book .journal-toc-item{color:#d9ccaa!important}
html body #mmorpgOverlay .journal-book .journal-toc-item:hover{background:#ffffff0f!important}
html body #mmorpgOverlay .journal-book .journal-toc-item[aria-current="true"]{background:linear-gradient(90deg,#b9954f33,#b9954f0a)!important;box-shadow:inset 3px 0 #d7b36a!important;color:#fff1cf!important}
.journal-dot{background:#6d7a68}
.journal-toc-item[data-status="active"] .journal-dot{background:#e0a23a}
.journal-toc-item[data-status="ready"] .journal-dot{background:#6fd16a;box-shadow:0 0 0 3px #6fd16a44}
.journal-title{color:#f6e7c0!important;border-bottom:1px solid #6e5a35!important;font-variant:small-caps;letter-spacing:.03em}
.journal-story{color:#d9ccaa}
.journal-giver,.journal-reward{color:#a99f82!important}
.journal-right h4{color:#b9954f}
.journal-objective{color:#e6d9b6}
.journal-steps li::before{border-color:#b9954f}
.journal-steps li.done{color:#7d7967}
.journal-steps li.done::before{background:#b9954f;box-shadow:inset 0 0 0 2px #14231c}
.journal-empty,.journal-meta{color:#9d9680}
html body #mmorpgOverlay .journal-book .journal-side-tab{background:#14231c!important;color:#b9954f!important;border:1px solid #6e5a35!important;border-left:0!important}
html body #mmorpgOverlay .journal-book .journal-side-tab[aria-selected="true"]{background:#2a3a2c!important;color:#ebd391!important}
html body #mmorpgOverlay .journal-book .journal-actions button{background:linear-gradient(#2a3a2c,#16241d)!important;color:#ebd391!important;border:1px solid #b9954f!important}
html body #mmorpgOverlay .journal-book .journal-actions button:hover:not(:disabled){filter:brightness(1.25)}
html body #mmorpgOverlay .journal-book .journal-actions .journal-primary{background:linear-gradient(#d7b36a,#a9803f)!important;color:#1a1208!important;border-color:#6e5a35!important}
.journal-notes{background:#0b1410;color:#e6d9b6;border:1px solid #4d4630}
.journal-rail,.journal-toc{background:none}
/* No book-spine divider: one continuous page. */
.journal-spread{background:linear-gradient(180deg,#14231c,#101c16)!important}
/* Fixed-height page: quest list and quest text each scroll on their own. */
.journal-spread{height:62vh;min-height:0;max-height:none!important}
.journal-left{overflow:hidden!important}
.journal-left .journal-list{flex:1 1 auto;min-height:0;overflow-y:auto!important;scrollbar-width:thin;scrollbar-color:#6e5a35 transparent}
.journal-right{overflow-y:auto!important;scrollbar-width:thin;scrollbar-color:#6e5a35 transparent}
@media (max-width:760px){.journal-spread{height:auto}.journal-left{max-height:40vh}}
/* Quest list rows must never shrink into each other; the list scrolls instead. */
.journal-left .journal-list>*{flex:none!important}
.journal-left .journal-list{display:flex;flex-direction:column}
html body #mmorpgWindow[data-subpanel="journal"] #mmorpgCharacterPanel .journal-left .journal-list{display:flex!important;flex-direction:column!important;gap:2px!important;max-height:none!important;align-content:normal}
html body #mmorpgWindow[data-subpanel="journal"] #mmorpgCharacterPanel .journal-left .journal-list>*{flex:none!important;min-height:30px}
/* Group headings (e.g. "Available (242)") stay on one line with an ellipsis */
.journal-group,html body #mmorpgOverlay .journal-book .journal-group{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
