/* Compact battle reports, with the same cream, teal and quiet lettering as the game. */
#app .modal.combat-result{max-width:460px!important;padding:16px 15px 14px;border-radius:21px}
#app .combat-result .result-heading{gap:4px}
#app .combat-result .result-heading>img{width:33px;height:35px}
#app .combat-result .result-heading>h2{font:700 29px/1.1 Interface,sans-serif;letter-spacing:-.4px}
#app .combat-result .result-rule{margin-block:10px;gap:7px}
#app .combat-result .result-stats{gap:9px;margin-bottom:13px}
#app .combat-result .result-metric{min-height:64px;padding:8px 6px;border-radius:12px;gap:3px}
#app .combat-result .result-metric-value{gap:6px}
#app .combat-result .result-metric-value>strong{font:700 26px/1.05 Interface,sans-serif;letter-spacing:-.5px}
#app .combat-result .result-metric-value>.icon{font-size:24px}
#app .combat-result .result-metric-value>.result-wear-asset{width:26px;height:29px;object-fit:contain}
#app .combat-result .result-metric>span{font:400 10px/1.2 Interface,sans-serif}
#app .combat-result .result-section{gap:8px;margin-bottom:9px}
#app .combat-result .result-section>h3{font:700 15px/1.25 Interface,sans-serif;letter-spacing:0;white-space:normal}
#app .combat-result .result-section>.result-rule{margin:0}
#app .combat-result .result-section>span{font:400 11px/1.2 Interface,sans-serif}
#app .combat-result .result-items{gap:8px}
#app .combat-result .result-item{min-height:174px;padding:10px 8px 8px;border-radius:12px}
#app .combat-result .result-item-meta{font:400 8px/1.3 Interface,sans-serif}
#app .combat-result .result-item-meta>span:last-child{font-size:10px}
#app .combat-result .result-item-meta i{width:4px;height:4px}
#app .combat-result .result-item-art{height:76px;margin:4px 0}
#app .combat-result .result-item-art>img{max-height:76px;max-width:100px}
#app .combat-result .result-item>h3{font:700 14px/1.2 Interface,sans-serif;min-height:34px;margin:3px 0 8px;letter-spacing:0}
#app .combat-result .result-item-footer{min-height:24px;padding-top:7px;font:400 9px/1.3 Interface,sans-serif;gap:5px}
#app .combat-result .result-item-footer .icon,#app .combat-result .result-item-footer img{width:13px;height:15px;font-size:13px}
#app .combat-result .result-worn .result-item-footer{flex-wrap:nowrap;gap:4px;justify-content:center}
#app .combat-result .result-worn .result-item-footer>strong{font:700 11px/1.2 Interface,sans-serif;white-space:nowrap}
#app .combat-result .result-worn .result-item-footer strong>small{font:400 9px/1.2 Interface,sans-serif}
#app .combat-result .result-wear-label{gap:3px;white-space:nowrap}
#app .combat-result .result-empty-slot{min-height:174px;border-radius:12px}
#app .combat-result .result-no-items{min-height:76px;padding:17px 8px;font-size:11px;gap:8px}
#app .combat-result .result-no-items>.icon{font-size:24px}
#app .combat-result .result-footer{margin-top:12px;padding-top:11px}
#app .combat-result .result-continue{min-height:45px;padding:11px 17px;border-radius:13px;font:700 14px/1.3 Interface,sans-serif}
/* Explicit use buttons leave the information and native swipe surface active. */
#battle-root .spell-panel-battle .battle-potion-list{gap:8px;padding:0;align-items:stretch}
#battle-root .spell-panel-battle .battle-console.drawer-layered:has(.combat-drawer[data-active="potions"][data-open="true"]){--combat-drawer-height:clamp(166px,23dvh,192px);--potion-drawer-height:var(--combat-drawer-height)}
#battle-root .spell-panel-battle .battle-potion-card{flex:0 0 clamp(160px,calc((100vw - 64px)/2),200px);width:clamp(160px,calc((100vw - 64px)/2),200px);min-width:0;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(48px,1fr) 35px 34px;gap:4px;padding:8px;border:1px solid #d4c9ad;border-radius:12px;background:linear-gradient(135deg,#fffdf4,#f7f1e1);box-shadow:inset 0 0 0 2px #fffaf2;overflow:hidden;opacity:1;text-align:left;touch-action:pan-x}
#battle-root .spell-panel-battle .battle-potion-card .potion-card-lead{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;gap:7px;min-width:0}
#battle-root .spell-panel-battle .battle-potion-card .potion-card-bottle{width:42px;height:47px;flex-basis:42px;padding:3px;border-radius:9px}
#battle-root .spell-panel-battle .battle-potion-card .potion-card-bottle>img{width:35px;height:40px}
#battle-root .spell-panel-battle .battle-potion-card .potion-card-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
#battle-root .spell-panel-battle .battle-potion-card .potion-card-name{font:700 12px/1.17 Interface,sans-serif;overflow-wrap:normal;word-break:normal;hyphens:none;white-space:normal}
#battle-root .spell-panel-battle .battle-potion-card .potion-card-stock{font:400 8px/1.2 Interface,sans-serif;color:#9c967e;margin:0}
#battle-root .spell-panel-battle .battle-potion-card .potion-card-effect{display:flex;flex-direction:column;flex-wrap:nowrap;gap:1px;align-items:center;justify-content:center;align-content:center;border-top:1px solid #d9cfb8;padding:4px 0 0;text-align:center}
#battle-root .spell-panel-battle .battle-potion-card .potion-effect-value{display:flex;flex:none;align-items:baseline;justify-content:center;gap:5px;width:auto;font:400 10px/18px Interface,sans-serif;text-align:center;white-space:nowrap}
#battle-root .spell-panel-battle .battle-potion-card .potion-effect-value>b{font:700 18px/20px Interface,sans-serif;margin:0;color:#638663}
#battle-root .spell-panel-battle .battle-potion-card.potion-resource .potion-effect-value>b{color:#5f8795}
#battle-root .spell-panel-battle .battle-potion-card.potion-defense .potion-effect-value>b{color:#a58a46}
#battle-root .spell-panel-battle .battle-potion-card .potion-card-effect>small{flex:none;width:auto;font:400 8px/10px Interface,sans-serif;color:#a3977d}
#battle-root .spell-panel-battle .battle-potion-card .potion-card-use{display:grid;place-items:center;width:100%;min-height:34px;height:34px;margin:0;padding:4px 5px;border:1px solid #b8c9a9;border-radius:7px;background:#eaf1df;box-shadow:none;font:400 10px/12px Interface,sans-serif;text-align:center;color:#587659;white-space:normal;touch-action:pan-x}
#battle-root .spell-panel-battle .battle-potion-card .potion-card-use:disabled{opacity:1;background:#f1eee4;border-color:#ded6c1;color:#8b7e66}
#battle-root .spell-panel-battle .battle-potion-card .potion-card-use:active:not(:disabled){background:#dce9ca}
/* The small pull tab continues the bottom edge instead of occupying the copy. */
#app #toast.top-notice{border-radius:0 0 12px 12px;padding:6px 17px 7px 49px;background:linear-gradient(120deg,#fffcf1,#f8f1e2);border-color:#d4c3a1;border-bottom-width:1px;box-shadow:0 3px 12px #29463c24,inset 0 -2px 0 #fffcf1b0;overflow:visible}
#app #toast.top-notice .notice-emblem{left:11px;width:27px;height:29px;transform:translateY(-50%);color:#829678}
#app #toast.top-notice .notice-copy{gap:1px}
#app #toast.top-notice .notice-text{font:400 12px/15px Interface,sans-serif;letter-spacing:0}
#app #toast.top-notice .notice-copy>small{font:400 9px/11px Interface,sans-serif}
#app #toast.top-notice>.notice-dismiss{position:absolute;top:auto;bottom:-10px;left:50%;transform:translateX(-50%);width:44px;height:20px;min-height:20px;margin:0;padding:0;border:0;border-radius:0;display:flex;align-items:flex-end;justify-content:center;background:none;box-shadow:none;overflow:visible;color:#819373}
#app #toast.top-notice>.notice-dismiss>svg{width:42px;height:14px;display:block;filter:drop-shadow(0 2px 1px #34503912)}
#app #toast.top-notice:has(.notice-actions){padding-right:70px}
/* Hero headings match each other; expanded attribute rows keep their existing design. */
#hero .v13-fold-panel>.fold-head{display:grid;grid-template-columns:34px minmax(0,1fr) auto 14px;align-items:center;gap:10px;min-height:65px;padding:12px;text-align:left}
#hero .v13-fold-panel>.fold-head>.hero-fold-symbol{display:grid;place-items:center;width:34px;height:36px;border:1px solid #d4d7bd;border-radius:9px;background:#edf1de;color:#86956f}
#hero .v13-fold-panel>.fold-head>.hero-fold-symbol>.icon{font-size:20px}
#hero .v13-fold-panel>.fold-head .hero-fold-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
#hero .v13-fold-panel>.fold-head strong{font:700 15px/1.25 Interface,sans-serif}
#hero .v13-fold-panel>.fold-head small{font:400 9px/1.35 Interface,sans-serif;color:#a39a81}
#hero .v13-fold-panel>.fold-head>.chevron{grid-column:4;justify-self:end}
#hero .v13-fold-panel>.fold-head>.points-chip{font-size:8px;white-space:nowrap;margin:0;padding:4px 6px}
#hero .panel.hero-book-entry{display:grid;grid-template-columns:34px minmax(0,1fr) auto 14px;align-items:center;gap:10px;width:100%;min-height:67px;padding:12px;margin:10px 0 0;border:1px solid #cdd0ba;border-radius:12px;background:linear-gradient(125deg,#fffcf0,#f6f0df);box-shadow:0 1px 3px #3c4b3c0a;text-align:left}
#hero .hero-book-art{display:grid;place-items:center;width:34px;height:41px}
#hero .hero-book-art>img{display:block;width:auto;height:41px;object-fit:contain;filter:drop-shadow(0 1px 2px #4c402831)}
#hero .hero-book-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
#hero .hero-book-copy>strong{font:700 15px/1.25 Interface,sans-serif;color:#416754}
#hero .hero-book-copy>small{font:400 9px/1.35 Interface,sans-serif;color:#a39a81}
#hero .hero-book-count{font:400 9px Interface,sans-serif;color:#8b9776;white-space:nowrap}
#hero .hero-book-entry>.chevron{transform:rotate(-45deg);width:6px;height:6px;justify-self:end}
#hero .v13-combat-numbers{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:8px 0;margin-bottom:0}
#hero .v13-combat-numbers>button{display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:39px;padding:3px;border:0;border-right:1px solid #d5cfb850;border-radius:0;background:none;text-align:left}
#hero .v13-combat-numbers>button:last-child{border-right:0}
#hero .v13-combat-numbers>button>.icon{font-size:18px;color:#91a07c}
#hero .v13-combat-numbers>button>span:not(.icon){display:flex;flex-direction:column;min-width:0;gap:2px}
#hero .v13-combat-numbers>button strong{font:700 12px/1.2 Interface,sans-serif;color:#4e6b51}
#hero .v13-combat-numbers>button small{font:400 8px/1.2 Interface,sans-serif;color:#a39a81}
#hero .v13-combat-numbers>button[aria-expanded=true]{background:#eaf0df7a;border-radius:7px}
#hero .hero-stat-detail{overflow:hidden;margin-top:5px}
#hero .hero-stat-explanation{border-top:1px solid #d2cbb251;padding:11px 2px 2px;font:400 11px/1.5 Interface,sans-serif;color:#8a896f}
#hero .hero-stat-explanation>strong{display:flex;justify-content:space-between;gap:8px;font-size:11px;color:#5d7758;margin-bottom:6px}
#hero .hero-stat-explanation>strong>span{white-space:nowrap;color:#a18b55}
/* A roster takes precisely half of the visible map and stays inside its edges. */
#map>#presence-panel{position:absolute;z-index:25;min-width:0;max-height:none;min-height:0;margin:0;background:none;overflow:hidden;display:block;border-radius:12px 0 0 12px}
#map>#presence-panel>.presence-drawer{width:100%;max-width:none;height:100%;padding:9px 8px 7px;gap:6px;border:1px solid #cfc3a2;border-right:0;border-radius:12px 0 0 12px;box-shadow:-3px 3px 10px #2a453b20;overflow:hidden}
#presence-panel .presence-drawer>header{min-height:22px;gap:4px}
#presence-panel .presence-drawer h2{font:700 13px/1.2 Interface,sans-serif;margin:0}
#presence-panel .presence-drawer header button{width:22px;height:22px;min-height:22px;font-size:19px;border-radius:6px}
#presence-panel .presence-location{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding-bottom:5px}
#presence-panel .presence-location strong{font:400 9px/1.2 Interface,sans-serif}
#presence-panel .presence-location span{font:400 8px/1.2 Interface,sans-serif}
#presence-panel .presence-person{display:grid;grid-template-columns:25px minmax(0,1fr) auto;align-items:center;gap:6px;min-height:43px;padding:5px;margin-bottom:5px;border-radius:7px}
#presence-panel .presence-person>img{width:25px;height:32px;border-radius:4px}
#presence-panel .presence-person>div{gap:2px;min-width:0}
#presence-panel .presence-person strong{display:flex;gap:2px;align-items:baseline;min-width:0;font:700 10px/1.2 Interface,sans-serif;overflow:hidden}
#presence-panel .presence-person .presence-name{font:inherit;color:inherit;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#presence-panel .presence-person .presence-level{font:400 8px/1.2 Interface,sans-serif;white-space:nowrap;color:#a39577;flex:none}
#presence-panel .presence-person .presence-class{font:400 9px/1.2 Interface,sans-serif;color:#8a9279}
#presence-panel .presence-person>div>small{font:400 8px/1.2 Interface,sans-serif}
#presence-panel .presence-person>button{width:22px;height:24px;min-height:24px;padding:0;font-size:17px;line-height:1;border-radius:5px}
#presence-panel .presence-scope{padding:4px 5px;gap:4px}
#presence-panel .presence-scope>span{font-size:8px}
#presence-panel .presence-empty{font-size:9px;padding:17px 4px}
/* The lamp hangs from the room's upper beam, with a fixed suspension in both modes. */
#knowledge-root .knowledge-lantern-chain{position:absolute;bottom:97%;height:var(--lantern-top);left:49%;width:4px;background:repeating-linear-gradient(0deg,#8b6d35 0 3px,#d2ae61 3px 4px,#46331f 4px 6px);border-left:1px solid #392919;border-right:1px solid #bd945044;box-shadow:1px 0 1px #10090650;z-index:1;pointer-events:none}
#knowledge-root .knowledge-lantern-chain:before{content:'';position:absolute;top:0;left:-4px;width:10px;height:5px;border-radius:1px;background:linear-gradient(#a48345,#45321e);box-shadow:0 1px 1px #170d0860}
#knowledge-root .knowledge-lantern:before{display:none}
#knowledge-root .knowledge-lantern{filter:drop-shadow(2px 3px 2px #150a0755)}
#knowledge-root .knowledge-lantern:active{transform:none}
@media(max-width:350px){#app .combat-result .result-heading>h2{font-size:27px}#app .combat-result .result-item-art{height:66px}#app .combat-result .result-item-art>img{max-height:66px}#app .combat-result .result-item{min-height:166px;padding:9px 6px 7px}#app .combat-result .result-item>h3{font-size:13px}#app .combat-result .result-worn .result-item-footer{gap:3px}#app .combat-result .result-worn .result-item-footer>strong{font-size:10px}#app .combat-result .result-worn .result-item-footer strong>small{font-size:8px}#hero .v13-combat-numbers>button{gap:3px}#hero .v13-combat-numbers>button>.icon{font-size:15px}#hero .v13-combat-numbers>button strong{font-size:11px}}

#knowledge-root .knowledge-lantern{z-index:1}

#presence-panel .presence-roster{display:flex;flex-direction:column;gap:5px}
#presence-panel .presence-person{margin:0;flex:none}

#knowledge-root .knowledge-stage{position:absolute;display:block;left:50%;right:auto;top:0;margin:0;transform:translateX(-50%)}

#hero .v13-fold-panel>.fold-head{padding:0;min-height:43px}

/* Patron portraits are square cutouts; contain them in the narrow location roster. */
#presence-panel .presence-person>img[src*="/skins/patron-20261107/"]{object-fit:contain;object-position:center bottom;box-sizing:border-box;padding:1px;background:#fbf8ec}
