@import url("patron-chat14.css?v=20261028-chat14");
@import url("composed-tavern.css?v=20261028-shop12");
/* One inhabited room. Prices and native purchases stay on the counter without a service menu. */
body[data-style="hybrid"] #tavern[data-market="stock1"]{overflow:auto!important}
body[data-style="hybrid"] #tavern[data-tavern-draft="true"]{--tavern-scene:url('review-only/tavern10/tavern-draft.webp')}
body[data-style="hybrid"] #tavern[data-tavern-draft="true"]::before{content:'';position:fixed;inset:0;background:var(--tavern-scene) center/cover no-repeat;z-index:-1;pointer-events:none}
body[data-style="hybrid"] .market-shell{position:relative!important;display:grid!important;height:auto!important;min-height:calc(100dvh - 126px)!important;grid-template-rows:auto minmax(170px,1fr) auto auto!important;gap:6px!important;padding:0 8px 8px!important}
body[data-style="hybrid"] .market-heading{position:static!important;inset:auto!important;min-height:28px!important;border:0!important;background:transparent!important}
body[data-style="hybrid"] .market-hosts{position:relative!important;inset:auto!important;width:100%!important;height:auto!important;min-height:0!important;display:block!important;pointer-events:none}
body[data-style="hybrid"] .market-shell .market-host{position:fixed!important;bottom:0!important;height:100%!important;min-height:0!important;width:21%!important;display:flex!important;justify-content:flex-end!important;pointer-events:auto;background:transparent!important;border:0!important}
body[data-style="hybrid"] .market-host[data-patron-name="Mara"]{left:24%;bottom:14%!important;height:79%!important}
body[data-style="hybrid"] .market-host[data-patron-name="Orin"]{left:2%;height:88%!important}
body[data-style="hybrid"] .market-host[data-patron-name="Bram"]{left:49%;height:100%!important}
body[data-style="hybrid"] .market-host[data-patron-name="Tess"]{left:75%;height:80%!important}
body[data-style="hybrid"] .market-host>.market-art{position:relative!important;inset:auto!important;width:100%!important;height:calc(100% - 34px)!important;object-fit:contain!important;object-position:center bottom!important;pointer-events:none;filter:drop-shadow(0 6px 3px #160f0bbb)}
body[data-style="hybrid"] .market-host-label{position:relative!important;min-height:32px!important;height:auto!important;width:auto!important;max-width:100%;padding:3px 9px!important;background:#30251be6!important;border:1px solid #967547!important;pointer-events:none}
body[data-style="hybrid"] .market-host-label strong{font:700 17px/21px var(--fantasy-title)!important}
body[data-style="hybrid"] .market-host-label>span,body[data-style="hybrid"] .market-host-label>small{display:none!important}
body[data-style="hybrid"] .market-new-quest{position:absolute;right:9%;top:8%;font:700 38px/42px var(--fantasy-title);color:#ffe09b;text-shadow:0 2px 2px #251d10,0 0 9px #e0ac51;pointer-events:none}
body[data-style="hybrid"] .market-stock{position:relative!important;inset:auto!important;width:auto!important;height:auto!important;min-height:150px!important;display:grid!important;grid-template-columns:minmax(140px,1.2fr) minmax(0,5fr)!important;gap:6px!important;padding:6px!important;background:#30251be8;border:6px solid #775b36;border-image:url('themes/scene10/scene-wood-frame.webp') 96 stretch}
body[data-style="hybrid"] .market-goods{position:static!important;inset:auto!important;width:auto!important;height:auto!important;display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;grid-template-rows:auto!important;gap:5px!important}
body[data-style="hybrid"] .market-counter-title{position:absolute!important;left:8px!important;bottom:100%!important;right:auto!important;top:auto!important;font:700 16px/20px var(--fantasy-title);color:#f1dfb7;background:#30251be8;padding:2px 8px;margin:0}
body[data-style="hybrid"] .market-shell .market-offer{position:relative!important;inset:auto!important;width:auto!important;height:auto!important;min-height:150px!important;max-height:none!important;border-width:3px!important;padding:4px!important;gap:4px!important}
body[data-style="hybrid"] .market-offer header{min-height:32px}
body[data-style="hybrid"] .market-offer h2,body[data-style="hybrid"] .market-recruit h2{font:700 15px/17px var(--fantasy-title)!important;word-break:normal;overflow-wrap:normal}
body[data-style="hybrid"] .market-offer .market-picture{height:44px!important;min-height:44px!important;max-height:44px!important;flex:none!important;background:transparent!important;border:0!important}
body[data-style="hybrid"] .market-offer .market-values{min-height:28px;font-size:13px!important;line-height:15px!important;gap:2px 3px!important}
body[data-style="hybrid"] .market-offer .market-values b{font-size:16px!important}
body[data-style="hybrid"] .market-offer .market-values .market-icon{width:16px;height:16px}
body[data-style="hybrid"] .market-offer>button{margin-top:auto;flex-wrap:wrap;min-height:34px!important}
body[data-style="hybrid"] .market-shell>.market-ranks{position:static!important;inset:auto!important;width:auto!important;height:auto!important;min-height:32px!important;flex-wrap:wrap!important;padding:3px 8px!important}
body[data-style="hybrid"] .market-shell>.market-ranks>span{flex-basis:auto!important}
body[data-style="hybrid"] .market-shell>.patron-dialogue-view{position:relative!important;inset:auto!important;grid-row:2/5;min-height:360px!important;max-height:none!important;height:auto!important}
body[data-style="hybrid"] .patron-portrait>img{object-fit:contain!important}
@media(max-width:899px){body[data-style="hybrid"] .market-goods{grid-template-columns:repeat(3,minmax(125px,1fr))!important}body[data-style="hybrid"] .market-stock{grid-template-columns:145px minmax(0,1fr)!important}body[data-style="hybrid"] .market-host-label{padding:3px 5px!important}}
/* Draft room is gated independently from the approved clearing and accepted patrons. */
body[data-style="hybrid"][data-view="tavern"]:has(#tavern[data-tavern-draft="true"]){--active-scene:url('review-only/tavern10/tavern-draft.webp')}
body[data-style="hybrid"] #tavern[data-tavern-draft="true"]::before{content:none!important}
body[data-style="hybrid"] .market-goods>.market-offer[data-stock-kind="bed"]{display:flex!important;flex-direction:column!important;grid-template:none!important}
body[data-style="hybrid"] .market-goods>.market-offer[data-stock-kind="bed"] .market-picture{display:flex!important}
body[data-style="hybrid"] .market-goods>.market-offer[data-stock-kind="bed"] :is(header,.market-values,button,details){position:static!important;grid-area:auto!important}
body[data-style="hybrid"] .patron-dialogue-art>img{object-fit:contain!important}
@media(min-width:900px){
body[data-style="hybrid"] .scene-patrons{inset:30px 2% 8px!important;height:auto!important;display:block!important;pointer-events:none}
body[data-style="hybrid"] .scene-person{position:absolute!important;bottom:0!important;height:100%!important;width:21%!important;max-width:none!important;pointer-events:auto}
body[data-style="hybrid"] .scene-person[data-patron-name="Mara"]{left:24%;bottom:14%!important;height:79%!important}
body[data-style="hybrid"] .scene-person[data-patron-name="Orin"]{left:2%;height:88%!important}
body[data-style="hybrid"] .scene-person[data-patron-name="Bram"]{left:49%;height:100%!important}
body[data-style="hybrid"] .scene-person[data-patron-name="Tess"]{left:75%;height:80%!important}
body[data-style="hybrid"] .scene-person>.patron-portrait{height:calc(100% - 34px)!important;max-height:none!important;max-width:none!important;width:100%!important;object-fit:contain!important;object-position:center bottom!important}
body[data-style="hybrid"] .scene-patron-label{min-height:32px!important;height:auto!important;width:auto!important;max-width:100%;padding:3px 9px!important;background:#30251be6!important;border:1px solid #967547!important}
body[data-style="hybrid"] .scene-patron-label>span,body[data-style="hybrid"] .scene-patron-label>small{display:none!important}
body[data-style="hybrid"] .scene-patron-label>strong{font:700 17px/21px var(--fantasy-title)!important}
}

/* Root compact closure: counter cards fit; rank choice stays in the actual Quest dialogue. */
body[data-style="hybrid"] .market-shell{height:100%!important;min-height:0!important;grid-template-rows:28px minmax(160px,1fr) auto!important;box-sizing:border-box!important}
body[data-style="hybrid"] .market-shell .market-offer{display:flex!important;flex-direction:column!important}
body[data-style="hybrid"] .market-shell .market-offer>button{width:100%!important;min-width:0!important;max-width:none!important;flex-wrap:nowrap!important;justify-content:space-between!important;gap:3px!important}
body[data-style="hybrid"] .market-shell .market-offer>button small{white-space:nowrap!important}
body[data-style="hybrid"] .market-shell>.patron-dialogue-view{z-index:10!important;grid-row:2/4!important}
@media(min-width:900px) and (max-height:650px){
body[data-style="hybrid"] .market-stock{min-height:0!important;padding:4px!important}
body[data-style="hybrid"] .market-shell .market-offer{height:144px!important;min-height:144px!important;max-height:144px!important;padding:3px!important;gap:2px!important}
body[data-style="hybrid"] .market-offer header{height:28px!important;min-height:28px!important;flex:none!important}
body[data-style="hybrid"] .market-shell .market-offer .market-picture{height:22px!important;min-height:22px!important;max-height:22px!important;flex:none!important}
body[data-style="hybrid"] .market-shell .market-offer .market-values{min-height:25px!important;line-height:14px!important;flex:1!important}
body[data-style="hybrid"] .market-shell .market-offer>button{height:28px!important;min-height:28px!important;padding:2px 4px!important;flex:none!important}
body[data-style="hybrid"] .market-shell .market-offer details{height:15px!important;min-height:15px!important;line-height:15px!important;flex:none!important}
}
/* Figures use the same cover coordinates as the1672x941 room, independent of labels. */
@media(min-width:900px){
body[data-style="hybrid"] .market-shell{--room-w:max(100vw,calc(100dvh * 1.776833));--room-h:max(100dvh,calc(100vw * .562799));--room-x:calc((100vw - var(--room-w))/2);--room-y:calc((100dvh - var(--room-h))/2)}
body[data-style="hybrid"] .market-hosts{position:static!important;z-index:auto!important;overflow:visible!important}
body[data-style="hybrid"] .market-host{position:fixed!important;z-index:auto!important;transform:none!important;filter:none!important;isolation:auto!important}
body[data-style="hybrid"] .market-host>.market-art{position:absolute!important;inset:0!important;height:100%!important;z-index:1!important}
body[data-style="hybrid"] .market-host[data-patron-name="Orin"]{left:calc(var(--room-x) + var(--room-w) * .26 - 100px)!important;top:calc(var(--room-y) + var(--room-h) * .65 - 194px)!important;bottom:auto!important;width:200px!important;height:200px!important}
body[data-style="hybrid"] .market-host[data-patron-name="Bram"]{left:calc(var(--room-x) + var(--room-w) * .49 - 90px)!important;top:calc(var(--room-y) + var(--room-h) * .63 - 185px)!important;bottom:auto!important;width:180px!important;height:185px!important}
body[data-style="hybrid"] .market-host[data-patron-name="Mara"]{left:calc(var(--room-x) + var(--room-w) * .62 - 220px)!important;top:calc(var(--room-y) + var(--room-h) * .55 - 90px)!important;bottom:auto!important;width:300px!important;height:200px!important}
body[data-style="hybrid"] .market-host[data-patron-name="Tess"]{left:calc(var(--room-x) + var(--room-w) * .79 - 80px)!important;top:calc(var(--room-y) + var(--room-h) * .49 - 150px)!important;bottom:auto!important;width:160px!important;height:150px!important}
body[data-style="hybrid"] .market-room-foreground{position:fixed;inset:0;z-index:2;pointer-events:none;background:var(--active-scene) center/cover no-repeat;clip-path:polygon(0 calc(var(--room-y) + var(--room-h) * .648),100% calc(var(--room-y) + var(--room-h) * .648),100% 100%,0 100%)}
body[data-style="hybrid"] .market-stock,body[data-style="hybrid"] .market-heading,body[data-style="hybrid"] .market-error{z-index:4!important}
body[data-style="hybrid"] .market-host-label{position:absolute!important;top:0!important;bottom:auto!important;left:0!important;z-index:5!important;opacity:0;transition:opacity .1s}
body[data-style="hybrid"] .market-host:is(:hover,:focus-visible) .market-host-label{opacity:1}
body[data-style="hybrid"] .market-new-quest{z-index:3!important;top:0!important;right:10%!important}
}

body[data-style="hybrid"] #tavern .market-shell .market-offer>button{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;line-height:16px!important}
body[data-style="hybrid"] #tavern .market-shell .market-offer>button>span,body[data-style="hybrid"] #tavern .market-shell .market-offer>button>small{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:2px!important;flex:none!important;margin:0!important;position:static!important;width:auto!important}

.major-event .market-ranks{background:#dcc18b!important;border-color:#ac8b58!important;color:#30271c!important}
.major-event .market-ranks :is(strong,span){color:#30271c!important}
.major-event .market-ranks button[aria-pressed="true"]{background:#e3c26d!important;color:#30241b!important}
@media(min-width:900px){body[data-style="hybrid"] #tavern[data-tavern-draft="false"] .market-host[data-patron-name="Mara"]{left:calc(var(--room-x) + var(--room-w) * .66 - 80px)!important;top:calc(var(--room-y) + var(--room-h) * .65 - 180px)!important;width:160px!important;height:180px!important}}
/* Shop12: native fixed-visit quotes live with the patron, never in a global strip. */
body[data-style="hybrid"] #tavern .market-shell{display:flex!important;flex-direction:column!important;gap:8px!important;min-height:calc(100dvh - 130px)!important;height:auto!important}
body[data-style="hybrid"] #tavern .market-shell>.composed-tavern{flex:none;margin:auto}
body[data-style="hybrid"] .major-patron:has(.patron-stock)>.major-event{width:min(1020px,96vw);max-height:calc(100dvh - 24px);padding:14px;border-radius:10px}
body[data-style="hybrid"] .major-event:has(.patron-stock)>.major-story{padding-bottom:8px;gap:12px}
body[data-style="hybrid"] .major-event:has(.patron-stock)>.major-story img{width:90px;height:90px}
body[data-style="hybrid"] .major-event:has(.patron-stock)>.major-title{margin:9px 0;font:700 24px/28px var(--fantasy-title)}
.patron-visit-layout{display:grid;grid-template-columns:minmax(270px,1fr) minmax(0,1.25fr);gap:16px;align-items:start}
.patron-quest-brief{min-width:0}
.patron-quest-brief>.patron-switcher{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:8px}
.patron-quest-brief .major-facts{gap:5px;margin:8px 0}
.patron-quest-brief .major-facts p{padding:5px;gap:3px;font-size:14px}
.patron-quest-brief .major-facts b{font-size:21px}
.patron-quest-brief .major-facts .market-icon{width:30px;height:30px}
.patron-quest-brief ol{padding-left:22px;margin:8px 0}
.patron-quest-brief li{margin:4px 0}
body[data-style="hybrid"] .major-event .patron-quest-brief>.market-ranks{position:static!important;inset:auto!important;width:auto!important;height:auto!important;min-height:32px!important;display:flex!important;flex-wrap:wrap!important;gap:4px!important;background:#dcc18b!important;color:#30271c!important}
body[data-style="hybrid"] .major-event .patron-quest-brief>.market-ranks :is(strong,span){color:#30271c!important;flex-basis:auto!important;font:14px/18px var(--fantasy-copy)!important}
body[data-style="hybrid"] .major-event .patron-quest-brief>.market-ranks button{min-height:28px!important;min-width:28px!important}
body[data-style="hybrid"] .patron-stock{min-width:0;padding:10px;background:#dac08d;color:#30271c;border:1px solid #a98855;border-radius:6px}
.patron-stock>header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}
.patron-stock>header h3{font:700 19px/23px var(--fantasy-title);margin:0;color:#30271c}
.patron-stock>header>span{display:flex;align-items:center;gap:3px;font:14px/20px var(--fantasy-copy)}
.patron-stock-cards{display:flex;justify-content:center;align-items:start;gap:12px;flex-wrap:wrap}
body[data-style="hybrid"] #tavern .patron-stock .patron-stock-offer{position:relative!important;inset:auto!important;display:flex!important;flex-direction:column!important;width:min(190px,100%)!important;min-width:0!important;min-height:0!important;height:auto!important;max-height:none!important;flex:1 1 170px;padding:0!important;border:0!important;background:transparent!important;color:#30271c!important;box-shadow:none!important;gap:8px!important;grid-template:none!important}
.market-card-object{position:relative;width:100%;max-width:190px;min-height:236px;margin:auto;isolation:isolate}
.market-card-back{position:absolute;inset:4px 5px -3px -3px;z-index:-1;transform:rotate(-3deg);background:#382b21 url('themes/scene10/player-cardback.webp') center/100% 100%;border:2px solid #6a5132;border-radius:6px;pointer-events:none}
body[data-style="hybrid"] #tavern .patron-stock .ability.loot-card:not(.shared-ability-card15){position:relative!important;inset:auto!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr) auto auto auto!important;align-items:stretch!important;justify-content:stretch!important;width:100%!important;height:236px!important;min-height:236px!important;max-height:none!important;margin:0!important;padding:7px!important;gap:4px!important;border:6px solid #705637!important;border-image:url('themes/scene10/c-paper-frame.webp') 112 stretch!important;border-radius:0!important;box-shadow:0 4px 5px #3d2b1b77!important;background:#e6d3a8!important;color:#30271c!important;transform:none!important;overflow:visible!important;text-align:center}
body[data-style="hybrid"] #tavern .patron-stock .ability.loot-card:not(.shared-ability-card15) .ability-art{position:relative!important;inset:auto!important;grid-area:1/1!important;height:auto!important;min-height:105px!important;display:flex!important;align-items:center!important;justify-content:center!important;background:#d7bf91!important;padding:18px 8px 0!important;overflow:hidden!important}
body[data-style="hybrid"] #tavern .patron-stock .ability.loot-card:not(.shared-ability-card15) .ability-art img{width:100%!important;height:100%!important;max-height:128px!important;object-fit:contain!important;position:static!important;inset:auto!important;transform:none!important}
body[data-style="hybrid"] #tavern .patron-stock .ability.loot-card:not(.shared-ability-card15)>strong{position:static!important;grid-area:2/1!important;font:700 16px/20px var(--fantasy-title)!important;color:#30271c!important;white-space:normal!important;word-break:normal!important;overflow:visible!important;background:transparent!important}
body[data-style="hybrid"] #tavern .patron-stock .ability.loot-card:not(.shared-ability-card15) .effect-copy{position:static!important;grid-area:3/1!important;display:block!important;font:14px/18px var(--fantasy-copy)!important;color:#30271c!important;background:transparent!important;white-space:normal!important;overflow:visible!important;min-height:36px!important}
body[data-style="hybrid"] #tavern .patron-stock .ability.loot-card:not(.shared-ability-card15) .loot-tags{position:static!important;grid-area:4/1!important;display:flex!important;flex-wrap:wrap!important;justify-content:center!important;gap:5px!important;color:#30271c!important}
body[data-style="hybrid"] #tavern .patron-stock .ability.loot-card:not(.shared-ability-card15) .cost{position:absolute!important;inset:4px 4px auto auto!important;z-index:2;font-size:16px!important;background:#302f41!important;color:#eee6c8!important}
body[data-style="hybrid"] #tavern .patron-stock .ability.loot-card:not(.shared-ability-card15) .owner{position:absolute!important;inset:4px auto auto 4px!important;z-index:2;font:12px/16px var(--fantasy-copy)!important;background:#d7bf91!important;color:#30271c!important;display:flex!important}
body[data-style="hybrid"] .patron-stock .loot-stat-icon{width:18px;height:18px;vertical-align:middle;fill:none;stroke:currentColor}
body[data-style="hybrid"] .patron-stock .loot-glyph{width:14px;height:14px;fill:none;stroke:currentColor;vertical-align:middle}
body[data-style="hybrid"] #tavern .patron-stock .market-hero-card{position:relative!important;inset:auto!important;width:100%!important;height:236px!important;min-height:236px!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;display:block!important;overflow:visible!important}
body[data-style="hybrid"] .patron-stock .market-hero-card>.unit-card-face{position:absolute;inset:0;display:grid;grid-template-rows:27px minmax(0,1fr) 20px 57px;padding:0 3px;border:7px solid #705637;border-image:url('themes/scene10/c-paper-frame.webp') 112 stretch;background:var(--lantern-unit,#20383f);color:#f2e2bc;box-shadow:0 4px 5px #3d2b1b77;overflow:hidden}
body[data-style="hybrid"] .patron-stock .market-hero-card .unit-card-face>img{grid-area:2/1;position:static;width:100%;height:100%;min-height:0;object-fit:contain}
body[data-style="hybrid"] .patron-stock .market-hero-card .hybrid-unit-name{position:static!important;grid-area:1/1;margin:0!important;font:700 16px/20px var(--fantasy-title)!important;text-align:center;color:#f2e2bc!important;background:transparent!important}
body[data-style="hybrid"] .patron-stock .market-hero-card .hero-class-name{position:static!important;grid-area:3/1;font:12px/16px var(--fantasy-copy);text-align:center;color:#f2e2bc!important}
body[data-style="hybrid"] .patron-stock .market-hero-card .hero-body{grid-area:4/1;position:static!important;display:flex!important;flex-direction:column!important;padding:0!important;gap:2px!important;min-height:0!important;background:transparent!important}
body[data-style="hybrid"] .patron-stock .market-hero-card .hp{position:static!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:3px!important;color:#f2e2bc!important;font:16px/19px var(--fantasy-copy)!important}
body[data-style="hybrid"] .patron-stock .market-hero-card .health-track{display:block;width:100%;height:5px;background:#442926}.market-hero-card .health-track>i{display:block;height:100%;background:#b9463e}
body[data-style="hybrid"] .patron-stock .market-hero-card .stats{position:static!important;display:flex!important;align-items:center;justify-content:center;gap:9px;color:#f2e2bc!important;font:16px/20px var(--fantasy-copy)!important}.market-hero-card .stats>span{display:flex;align-items:center;gap:2px}
body[data-style="hybrid"] .patron-stock .market-hero-card :is(b,small,span){color:inherit!important}
.market-service-card{min-height:236px;padding:10px 8px;background:#e6d3a8;border:5px solid #705637;border-radius:3px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;box-sizing:border-box}
.market-service-card h3{font:700 18px/22px var(--fantasy-title);margin:0;color:#30271c}.market-service-card>.market-art{width:100px!important;height:100px!important;object-fit:contain!important}.market-service-card p{margin:0!important;font:16px/20px var(--fantasy-copy);color:#30271c}.market-service-card p b{font-size:22px}
body[data-style="hybrid"] #tavern .patron-stock .market-offer-rules{position:static;min-height:36px;margin:0!important;color:#30271c!important;font:14px/18px var(--fantasy-copy);overflow-wrap:normal;word-break:normal}
body[data-style="hybrid"] #tavern .patron-stock .patron-stock-offer>button,body[data-style="hybrid"] #tavern .patron-stock .market-bed-choices button{position:static!important;display:flex!important;align-items:center;justify-content:center;gap:6px!important;min-height:38px!important;width:100%!important;padding:5px!important;background:#294531!important;color:#f6e8c6!important;border:1px solid #927440!important;border-radius:3px!important;font:14px/20px var(--fantasy-copy)!important}
body[data-style="hybrid"] #tavern .patron-stock button :is(strong,small){color:inherit!important}
body[data-style="hybrid"] #tavern .patron-stock button:disabled{background:#605d4c!important;color:#efe4c9!important;border-color:#8a7c5c!important;opacity:1!important}
body[data-style="hybrid"] #tavern .patron-stock .market-bed-service .market-service-card{min-height:104px!important;padding:6px!important}.market-bed-service .market-service-card>.market-art{width:70px!important;height:55px!important}.market-bed-service .market-service-card p{font-size:14px;line-height:18px}
.market-bed-choices{display:flex;flex-direction:column;gap:8px}.market-bed-choices>section{padding:5px;background:#e6d3a8;border:1px solid #a78956}.market-bed-choices h4{font:700 16px/20px var(--fantasy-title);margin:0;color:#30271c}.market-bed-choices p{display:flex;align-items:center;justify-content:center;gap:3px;font:14px/18px var(--fantasy-copy);margin:4px 0!important;color:#30271c}
body[data-style="hybrid"] .patron-stock .is-inspected .market-card-object{filter:brightness(1.06);outline:2px solid #73914d;outline-offset:3px}
body[data-style="hybrid"] .patron-dialogue-view:has(>.patron-stock){grid-template-columns:minmax(220px,1fr) minmax(270px,1fr) minmax(200px,1fr)!important}
@media(max-width:800px){.patron-visit-layout{grid-template-columns:1fr}.patron-stock-cards{justify-content:flex-start}.patron-stock{padding:8px}.major-patron:has(.patron-stock){padding:6px}.composed-tavern{width:100%}}

.patron-shop-error{padding:7px;border:1px solid #9b4c38;background:#eed6ad;color:#702b20!important;font:14px/20px var(--fantasy-copy)}
/* Q39: all actual offers, four named patron clusters. No shared opaque shop tray. */
.market-overview{display:flex;flex-direction:column;gap:12px;min-width:0}
body[data-style="hybrid"] #tavern .market-overview>.composed-tavern{margin:86px auto 10px;width:min(100%,calc((100dvh - 270px)*var(--scene-aspect)))}
.patron-stock-clusters{display:grid;grid-template-columns:repeat(3,minmax(0,2fr)) minmax(0,1fr);gap:10px;align-items:start;padding:0 2px 10px;background:transparent}
body[data-style="hybrid"] #tavern .patron-stock-clusters>.patron-stock{min-width:0;padding:6px;background:#dac08dcf;border:1px solid #a98856;border-radius:5px}
.patron-stock-clusters .patron-stock>header{margin-bottom:7px}
.patron-stock-clusters .patron-stock>header h3{font:700 17px/21px var(--fantasy-title)}
body[data-style="hybrid"] #tavern .patron-stock-clusters .patron-stock-cards{display:flex!important;flex-wrap:nowrap!important;align-items:start!important;gap:7px!important}
body[data-style="hybrid"] #tavern .patron-stock-clusters .patron-stock-offer{flex:1 1 0!important;width:0!important;min-width:0!important}
body[data-style="hybrid"] #tavern .patron-stock-clusters .ability.loot-card:not(.shared-ability-card15){height:auto!important;min-height:236px!important;grid-template-rows:minmax(80px,100px) auto auto auto!important}
body[data-style="hybrid"] #tavern .patron-stock-clusters .ability.loot-card:not(.shared-ability-card15) .ability-art{min-height:80px!important}
body[data-style="hybrid"] #tavern .patron-stock-clusters .market-offer-rules{min-height:0!important;font:14px/18px var(--fantasy-copy)}
body[data-style="hybrid"] #tavern .patron-stock-clusters .market-offer-rules:empty{display:none}
body[data-style="hybrid"] #tavern .patron-stock-clusters .market-card-object{min-height:236px}
@media(max-width:899px){.patron-stock-clusters{grid-template-columns:repeat(2,minmax(0,1fr))}.composed-quest-summary{min-width:118px;font-size:14px}.composed-quest-summary>strong{font-size:14px}.composed-quest-summary :is(.icon,.market-icon,.tv-icon){width:16px!important;height:16px!important;min-width:16px!important}}

/* Actual compact room: one source plane and seven comparable cards in patron groups. */
@media(min-width:900px){
body[data-style="hybrid"] #tavern[data-composed-tavern="true"] .market-overview>.composed-tavern{position:fixed!important;inset:48px 0 auto!important;width:min(calc(100vw - 28px),calc((100dvh - 48px) * var(--scene-aspect)))!important;height:auto!important;aspect-ratio:var(--scene-aspect);margin:auto!important;z-index:1}
body[data-style="hybrid"] #tavern[data-composed-tavern="true"] .market-heading{position:relative!important;z-index:4!important;pointer-events:none}
body[data-style="hybrid"] #tavern[data-composed-tavern="true"] .patron-stock-clusters{position:fixed!important;z-index:3!important;inset:auto 18px 54px!important;gap:8px!important;padding:0!important}
body[data-style="hybrid"] #tavern[data-composed-tavern="true"] .patron-stock-clusters>.patron-stock{padding:3px!important;background:#30251bdb!important;border:1px solid #8b704b!important;color:#f3e2b9!important}
body[data-style="hybrid"] #tavern[data-composed-tavern="true"] .patron-stock-clusters .patron-stock>header{margin:0 0 3px!important;height:18px}
body[data-style="hybrid"] #tavern[data-composed-tavern="true"] .patron-stock-clusters .patron-stock>header h3{color:#f3e2b9!important;font:700 14px/18px var(--fantasy-title)!important}
body[data-style="hybrid"] #tavern[data-composed-tavern="true"] .patron-stock-clusters .patron-stock-offer{gap:3px!important}
body[data-style="hybrid"] #tavern[data-composed-tavern="true"] .patron-stock-clusters .market-card-object{height:154px!important;min-height:154px!important;max-height:154px!important}
body[data-style="hybrid"] #tavern[data-composed-tavern="true"] .patron-stock-clusters .ability.loot-card:not(.shared-ability-card15){height:154px!important;min-height:154px!important;max-height:154px!important;padding:4px!important;border-width:4px!important;grid-template-rows:minmax(35px,1fr) auto auto auto!important;gap:2px!important}
body[data-style="hybrid"] #tavern[data-composed-tavern="true"] .patron-stock-clusters .ability.loot-card:not(.shared-ability-card15) .ability-art{min-height:35px!important;max-height:45px!important}
body[data-style="hybrid"] #tavern[data-composed-tavern="true"] .patron-stock-clusters .ability.loot-card:not(.shared-ability-card15) .ability-art :is(img,svg){max-height:45px!important}
body[data-style="hybrid"] #tavern[data-composed-tavern="true"] .patron-stock-clusters .ability.loot-card:not(.shared-ability-card15) :is(.ability-name,.effects){font-size:14px!important;line-height:16px!important;min-height:0!important}
body[data-style="hybrid"] #tavern[data-composed-tavern="true"] .patron-stock-clusters .ability.loot-card:not(.shared-ability-card15) .loot-tags{font:12px/14px var(--fantasy-copy)!important;gap:2px!important}
body[data-style="hybrid"] #tavern[data-composed-tavern="true"] .patron-stock-clusters .market-offer-rules{display:none!important}
body[data-style="hybrid"] #tavern[data-composed-tavern="true"] .patron-stock-clusters .patron-stock-offer>button,body[data-style="hybrid"] #tavern[data-composed-tavern="true"] .patron-stock-clusters .market-bed-choices button{height:30px!important;min-height:30px!important;padding:2px!important;gap:3px!important;font-size:13px!important}
body[data-style="hybrid"] #tavern[data-composed-tavern="true"] .patron-stock-clusters .market-hero-card{height:154px!important;min-height:154px!important}
body[data-style="hybrid"] #tavern[data-composed-tavern="true"] .patron-stock-clusters .market-hero-card>.unit-card-face{grid-template-rows:20px minmax(0,1fr) 16px 40px!important;border-width:4px!important}
body[data-style="hybrid"] #tavern[data-composed-tavern="true"] .patron-stock-clusters .market-hero-card :is(.hp,.stats){font-size:12px!important;line-height:14px!important;gap:3px!important}
body[data-style="hybrid"] #tavern[data-composed-tavern="true"] .patron-stock-clusters .market-hero-card .stats .icon{width:13px!important;height:13px!important}
body[data-style="hybrid"] #tavern[data-composed-tavern="true"] .patron-stock-clusters .market-service-card{height:154px!important;min-height:154px!important;padding:4px!important;gap:3px!important}
body[data-style="hybrid"] #tavern[data-composed-tavern="true"] .patron-stock-clusters .market-service-card h3{font:700 14px/16px var(--fantasy-title)!important}
body[data-style="hybrid"] #tavern[data-composed-tavern="true"] .patron-stock-clusters .market-service-card>.market-art{width:55px!important;height:50px!important}
body[data-style="hybrid"] #tavern[data-composed-tavern="true"] .patron-stock-clusters .market-service-card p{font:13px/15px var(--fantasy-copy)!important}
body[data-style="hybrid"] #tavern[data-composed-tavern="true"] .patron-stock-clusters .market-bed-service .market-service-card{height:68px!important;min-height:68px!important}
body[data-style="hybrid"] #tavern[data-composed-tavern="true"] .patron-stock-clusters .market-bed-service .market-service-card>.market-art{display:none!important}
body[data-style="hybrid"] #tavern[data-composed-tavern="true"] .patron-stock-clusters .market-bed-choices>section{padding:3px!important}
body[data-style="hybrid"] #tavern[data-composed-tavern="true"] .patron-stock-clusters .market-bed-choices p{font-size:12px!important;gap:1px!important}
body[data-style="hybrid"] #tavern[data-composed-tavern="true"] .patron-stock-clusters .market-bed-choices h4{font-size:14px!important;line-height:16px!important}
}

@media(min-width:900px){
body[data-style="hybrid"] #tavern[data-composed-tavern="true"] .patron-stock-clusters .market-hero-card>.unit-card-face{height:154px!important;max-height:154px!important;min-height:0!important;box-sizing:border-box!important;grid-template-rows:20px minmax(0,1fr) 16px 36px!important}
body[data-style="hybrid"] #tavern[data-composed-tavern="true"] .patron-stock-clusters .market-hero-card .hp .icon{width:13px!important;height:13px!important;min-height:0!important}
body[data-style="hybrid"] #tavern[data-composed-tavern="true"] .patron-stock-clusters .market-bed-service .market-service-card h3{display:none!important}
body[data-style="hybrid"] #tavern[data-composed-tavern="true"] .patron-stock-clusters .loot-tags>span{background:transparent!important;color:#30271c!important;padding:0!important}
}

@media(min-width:900px){
body[data-style="hybrid"] #tavern[data-composed-tavern="true"] .market-heading>p{display:none!important}
body[data-style="hybrid"] #tavern[data-composed-tavern="true"] .patron-stock-clusters .market-hero-card .hero-body{height:36px!important;min-height:0!important;max-height:36px!important;gap:2px!important}
body[data-style="hybrid"] #tavern[data-composed-tavern="true"] .patron-stock-clusters .market-hero-card .hero-body :is(.hp,.stats){height:15px!important;min-height:0!important;max-height:15px!important;flex:none!important;padding:0!important;margin:0!important;line-height:14px!important}
body[data-style="hybrid"] #tavern[data-composed-tavern="true"] .patron-stock-clusters .market-hero-card .hero-body :is(.hp,.stats) :is(svg,.icon){height:13px!important;min-height:0!important;max-height:13px!important;width:13px!important;min-width:0!important}
}

.market-party-health{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px;color:#f4e2bb;font:13px/18px var(--fantasy-copy)}
.market-party-health>span{display:flex;align-items:center;gap:5px;min-width:0;padding:2px 6px;background:#30251be8;border:1px solid #92764f;border-radius:3px}
.market-party-health>span>b{max-width:110px;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.market-party-health>span>span{display:flex;align-items:center;gap:2px;white-space:nowrap}
.market-party-health .market-icon{width:14px;height:14px}
.market-reroll button{display:flex;align-items:center;gap:5px;padding:5px 8px;background:#294531;color:#f3e2bb;border:1px solid #9b8054;font:14px/20px var(--fantasy-copy)}
.market-reroll .market-icon{width:18px;height:18px}
@media(min-width:900px){
body[data-style="hybrid"] #tavern[data-composed-tavern="true"] .market-party-health{position:fixed;inset:auto 18px 268px;z-index:4;flex-wrap:nowrap;height:22px}
body[data-style="hybrid"] #tavern[data-composed-tavern="true"] .market-party-health>span{flex:0 1 auto;max-width:calc((100vw - 80px)/6);padding:1px 5px}
body[data-style="hybrid"] #tavern[data-composed-tavern="true"] .market-party-health>span>b{flex:0 1 auto;max-width:100px}
body[data-style="hybrid"] #tavern[data-composed-tavern="true"] .market-reroll{position:fixed;z-index:4;left:18px;top:106px}
}
