/* The Last Light counter is part of the normal room. Native rows and quotes supply every offer. */
.tavern-offers-grid{display:grid;grid-template-columns:2fr 2fr 2fr 1fr;gap:8px;min-width:0}
.tavern-offers-grid>.patron-stock{min-width:0}

@media (min-width:901px) and (min-aspect-ratio:1/1){
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern{overflow:hidden!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid{
  position:fixed!important;inset:auto 8px 4px 112px!important;z-index:30!important;
  height:350px!important;min-height:0!important;box-sizing:border-box!important;
  grid-template-columns:2fr 2fr 2fr 1fr!important;gap:8px!important;
  margin:0!important;padding:0!important;overflow:visible!important;background:transparent!important
 }
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .composed-quest-summary{
  top:44px!important;height:80px!important;min-height:80px!important;max-height:80px!important;
  font-size:16px!important;line-height:19px!important
 }
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .composed-quest-summary :is(strong,.quest-summary-title,.quest-summary-goal,.quest-summary-rewards){font-size:16px!important;line-height:19px!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .market-reroll{position:fixed!important;inset:auto auto 352px 8px!important;transform:none!important;z-index:31!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .market-reroll button{min-width:96px!important;min-height:44px!important;height:44px!important;font-size:16px!important}
}


body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid>.patron-stock{
 position:relative!important;inset:auto!important;display:flex!important;flex-direction:column!important;
 width:auto!important;height:100%!important;min-height:0!important;max-height:none!important;
 padding:5px!important;margin:0!important;box-sizing:border-box!important;
 background:#1c2922f5!important;border:2px solid #a68b5b!important;border-radius:6px!important;color:#f3e6c4!important;
 box-shadow:0 3px 10px #0a110acc!important
}
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid .patron-stock>header{
 display:flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;
 height:25px!important;min-height:25px!important;max-height:25px!important;margin:0 0 4px!important;padding:0!important
}
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid .patron-stock>header h3{font:700 18px/22px var(--fantasy-title)!important;color:#f4e7c4!important}
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid .patron-stock>header .market-icon{width:20px!important;height:20px!important}
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid .patron-stock-cards{
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:start!important;justify-content:stretch!important;
 gap:6px!important;width:100%!important;height:auto!important;min-height:0!important;overflow:visible!important
}
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid [data-patron=Tess] .patron-stock-cards{grid-template-columns:minmax(0,1fr)!important}
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid .patron-stock-offer{
 display:flex!important;flex-direction:column!important;gap:4px!important;
 width:100%!important;min-width:0!important;max-width:none!important;height:auto!important;min-height:0!important;max-height:none!important;
 margin:0!important;padding:0!important;flex:none!important;border:0!important;background:transparent!important;box-shadow:none!important
}
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid .market-card-object{
 width:100%!important;max-width:none!important;height:216px!important;min-height:216px!important;max-height:216px!important;margin:0!important
}
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid .market-card-back{display:none!important}
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid .market-card-object>:is(.ability,.market-hero-card,.market-service-card){
 width:100%!important;max-width:none!important;min-width:0!important;height:216px!important;min-height:216px!important;max-height:216px!important;box-sizing:border-box!important;margin:0!important;
 padding:0!important;border:0!important;background:transparent!important;transform:none!important;overflow:hidden!important
}
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid .market-card-object>.ability.shared-ability-card15>.ability-face15{
 width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;
 grid-template-rows:31px minmax(0,1fr) 61px 13px!important
}
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid .ability-face15>.af15-heading{height:31px!important;min-height:31px!important;max-height:31px!important}
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid .af15-heading .af15-name{font:700 16px/19px var(--fantasy-title)!important;white-space:normal!important;overflow:visible!important}
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid .af15-heading .af15-cost{font:700 18px/22px var(--fantasy-copy)!important}
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid .af15-heading .af15-cost .af15-symbol{display:none!important}
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid .af15-effect{height:61px!important;min-height:61px!important;max-height:61px!important;font-size:16px!important;line-height:19px!important}
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid .af15-effect .plain-card-copy21{font:16px/19px var(--fantasy-copy)!important}
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid .af15-effect .loot-stat-icon{width:18px!important;height:18px!important}
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid .patron-stock-offer>button{
 width:100%!important;min-width:0!important;min-height:44px!important;height:44px!important;max-height:none!important;
 display:flex!important;align-items:center!important;justify-content:space-between!important;gap:3px!important;
 padding:4px 6px!important;margin:0!important;box-sizing:border-box!important;
 background:#375e39!important;color:#f5edcf!important;border:1px solid #aac485!important;border-radius:4px!important;
 font:700 16px/19px var(--fantasy-copy)!important;cursor:pointer
}
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid .patron-stock-offer>button:disabled{background:#37443a!important;color:#d6d2c5!important;opacity:1!important;cursor:default}
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid .patron-stock-offer>button :is(span,small){display:inline-flex!important;align-items:center!important;gap:2px!important;width:auto!important;margin:0!important;font:inherit!important;white-space:nowrap!important}
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid .patron-stock-offer>button .market-icon{width:18px!important;height:18px!important}
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid .market-recruit-kit27{min-height:44px!important;height:44px!important;justify-content:center!important;background:#304539!important}
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid .market-recruit-upkeep18{min-height:24px!important;padding:2px!important;font:16px/20px var(--fantasy-copy)!important;background:transparent!important;border:0!important;color:#f4e7c4!important}
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid .market-recruit-upkeep18 .market-icon{width:17px!important;height:17px!important}
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid .market-hero-card>.unit-card-face{width:100%!important;height:216px!important;min-height:216px!important;max-height:216px!important;grid-template-rows:25px minmax(0,1fr) 20px 48px!important;box-sizing:border-box!important}
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid .market-hero-card .hybrid-unit-name{font:700 16px/20px var(--fantasy-title)!important;height:25px!important}
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid .market-hero-card .hero-class-name{font:16px/20px var(--fantasy-copy)!important}
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid .market-hero-card :is(.hp,.stats){font-size:16px!important;line-height:19px!important}
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid .market-hero-card .stats .icon{width:18px!important;height:18px!important}
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid [data-patron=Tess] [data-stock-kind="recruit"] .market-card-object,
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid [data-patron=Tess] .market-card-object>.market-hero-card,
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid [data-patron=Tess] .market-hero-card>.unit-card-face{height:190px!important;min-height:190px!important;max-height:190px!important}
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid .market-card-object>.market-service-card{
 background:#e3d0a5!important;color:#30271c!important;border:3px solid #9c8053!important;
 display:grid!important;grid-template-rows:30px minmax(0,1fr) 40px!important;gap:4px!important;padding:5px!important
}
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid .market-service-card .offer-face-header{min-height:28px!important;height:28px!important}
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid .market-service-card .offer-face-header strong{font:700 16px/19px var(--fantasy-title)!important}
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid .market-service-card .service-illustration{width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;overflow:hidden!important}
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid .market-service-card .service-illustration img{width:100%!important;height:100%!important;max-height:none!important;object-fit:contain!important}
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid .market-service-card .service-effect{font:16px/19px var(--fantasy-copy)!important;min-height:38px!important;align-self:center!important}
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid .market-service-card .service-lifetime{display:none!important}
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid .market-rest-preview{align-self:start!important;background:#2a3930!important;border:1px solid #8e9c76!important;border-radius:4px!important;padding:6px!important}
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid .story-rest-service17{display:flex!important;flex-direction:column!important;gap:7px!important;font:16px/19px var(--fantasy-copy)!important;color:#f4e7c4!important}
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid .story-rest-service17 strong{font:700 16px/19px var(--fantasy-title)!important}
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid .story-rest-service17 button{min-height:44px!important;font:700 16px/19px var(--fantasy-copy)!important}
.market-recruit-name18 input{box-sizing:border-box;min-height:44px;font-size:16px}

/* New visits quote one good per patron. Give complete faces their own counter
   space while the painted patrons remain visible behind the open room. */
@media (min-width:901px) and (min-aspect-ratio:1/1){
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid:not(:has(.patron-stock:not([data-offer-count="1"]))){
  height:294px!important;grid-template-columns:repeat(4,minmax(0,1fr))!important
 }
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid:not(:has(.patron-stock:not([data-offer-count="1"])))>.patron-stock{
  background:transparent!important;border:0!important;box-shadow:none!important;padding:0 3px!important
 }
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid:not(:has(.patron-stock:not([data-offer-count="1"]))) .patron-stock>header{
  background:#1c2922f5!important;border:1px solid #a68b5b!important;border-radius:5px!important;margin-bottom:3px!important
 }
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid:not(:has(.patron-stock:not([data-offer-count="1"]))) .patron-stock-cards{
  grid-template-columns:minmax(0,190px)!important;justify-content:center!important
 }
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid:not(:has(.patron-stock:not([data-offer-count="1"]))) [data-patron=Tess] .patron-stock-cards{
  grid-template-columns:minmax(0,1fr)!important
 }
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid:not(:has(.patron-stock:not([data-offer-count="1"]))) [data-patron=Tess] .patron-stock-offer{
  display:grid!important;grid-template-columns:minmax(0,190px) minmax(0,1fr)!important;grid-template-rows:66px 40px 44px 51px!important;align-content:start!important;gap:5px!important
 }
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid:not(:has(.patron-stock:not([data-offer-count="1"]))) [data-patron=Tess] .market-card-object{grid-area:1/1/5/2!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid:not(:has(.patron-stock:not([data-offer-count="1"]))) [data-patron=Tess] .patron-stock-offer>button:not(.market-recruit-kit27){grid-area:1/2!important;align-self:start!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid:not(:has(.patron-stock:not([data-offer-count="1"]))) [data-patron=Tess] .market-recruit-upkeep18{grid-area:2/2!important;align-self:start!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid:not(:has(.patron-stock:not([data-offer-count="1"]))) [data-patron=Tess] .market-recruit-kit27{grid-area:3/2!important;align-self:start!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid:not(:has(.patron-stock:not([data-offer-count="1"]))) [data-patron=Tess] .patron-stock-offer>button:not(.market-recruit-kit27){min-height:66px!important;height:66px!important;flex-direction:column!important;justify-content:center!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid:not(:has(.patron-stock:not([data-offer-count="1"]))) [data-patron=Tess] .market-card-object,
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid:not(:has(.patron-stock:not([data-offer-count="1"]))) [data-patron=Tess] .market-card-object>.market-hero-card,
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid:not(:has(.patron-stock:not([data-offer-count="1"]))) [data-patron=Tess] .market-hero-card>.unit-card-face{
  height:216px!important;min-height:216px!important;max-height:216px!important
 }
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid:not(:has(.patron-stock:not([data-offer-count="1"]))) [data-patron=Tess] .market-hero-card>.unit-card-face{grid-template-rows:25px minmax(0,1fr) 20px 56px!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid:not(:has(.patron-stock:not([data-offer-count="1"]))) [data-patron=Tess] .market-hero-card .hero-body{display:grid!important;grid-template-rows:22px 5px 20px!important;gap:2px!important;height:56px!important;min-height:56px!important;max-height:56px!important;padding:2px!important;box-sizing:border-box!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid:not(:has(.patron-stock:not([data-offer-count="1"]))) [data-patron=Tess] .market-hero-card .hero-body :is(.hp,.health-track,.stats){position:static!important;height:auto!important;min-height:0!important;max-height:none!important;margin:0!important;padding:0!important;align-self:center!important}
}
body[data-story=true] #tavern .market-kit27 button{min-height:44px!important;height:44px!important;padding:7px 12px!important;font:700 16px/20px var(--fantasy-copy)!important}
body[data-story=true] #tavern .market-kit27 .market-recruit-name18{grid-column:1/-1;font:16px/20px var(--fantasy-copy)!important}
body[data-story=true] #tavern .market-kit27 .market-recruit-name18 small{font:14px/20px var(--fantasy-copy)!important}

/* The complete single offer stays inside its patron's counter while hovered. */
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid:not(:has(.patron-stock:not([data-offer-count="1"]))) .patron-stock .shared-ability-card15:is(:hover,:focus-visible) .ability-face15{
 width:190px!important;min-width:190px!important;max-width:190px!important;
 height:216px!important;min-height:216px!important;max-height:216px!important;
 transform:none!important;
}

body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .market-overview[inert] .market-party-cards400{display:none!important}
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .market-party-cards400{
 position:fixed!important;top:132px!important;left:8px!important;z-index:42!important;
 width:196px!important;color:#f3e6c4!important;font:16px/20px var(--fantasy-copy)!important
}
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .market-party-cards400>summary{
 display:flex!important;align-items:center!important;justify-content:space-between!important;gap:4px!important;
 min-height:44px!important;padding:6px 8px!important;list-style:none!important;cursor:pointer!important;
 border:2px solid #b99559!important;border-radius:4px!important;background:#24352ded!important
}
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .market-party-cards400>summary::-webkit-details-marker{display:none}
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .market-party-cards400>summary .market-icon{width:20px!important;height:20px!important}
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .market-party-cards400>summary span{font-size:13px!important;white-space:nowrap!important}
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .market-party-list400{
 position:absolute!important;top:50px!important;left:0!important;display:flex!important;gap:8px!important;
 width:max-content!important;max-width:calc(100vw - 16px)!important;max-height:min(340px,calc(100vh - 190px))!important;
 padding:8px!important;overflow:auto!important;box-sizing:border-box!important;
 background:#17231df5!important;border:2px solid #b99559!important;border-radius:5px!important;box-shadow:0 8px 20px #08100ddd!important
}
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .market-party-card400{
 display:flex!important;flex:0 0 190px!important;flex-direction:column!important;gap:3px!important;
 width:190px!important;height:260px!important;min-height:260px!important;max-height:260px!important;
 margin:0!important;padding:0!important;background:transparent!important;overflow:hidden!important
}
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .market-party-card400>.unit-card-face{
 width:190px!important;height:216px!important;min-height:216px!important;max-height:216px!important;
 display:grid!important;position:relative!important;grid-template-columns:minmax(0,1fr)!important;
 grid-template-rows:25px minmax(0,1fr) 20px 56px!important;box-sizing:border-box!important
}
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .market-party-card400>.unit-card-face>img{position:static!important;grid-area:2/1!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important}
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .market-party-card400 .hybrid-unit-name{position:static!important;grid-area:1/1!important;width:100%!important;height:25px!important;font:700 16px/20px var(--fantasy-title)!important}
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .market-party-card400 .hero-class-name{position:static!important;grid-area:3/1!important;display:block!important;height:20px!important;font:16px/20px var(--fantasy-copy)!important}
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .market-party-card400 .hero-body{
 display:grid!important;position:static!important;grid-area:4/1!important;grid-template-rows:22px 5px 20px!important;gap:2px!important;
 height:56px!important;min-height:56px!important;max-height:56px!important;padding:2px!important;box-sizing:border-box!important
}
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .market-party-card400 .hero-body :is(.hp,.health-track,.stats){position:static!important;height:auto!important;min-height:0!important;max-height:none!important;margin:0!important;padding:0!important;align-self:center!important}
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .market-party-card400 .hero-body .stats{display:flex!important;justify-content:space-around!important}
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .market-party-card400>footer{
 display:flex!important;align-items:center!important;justify-content:space-between!important;gap:4px!important;
 width:190px!important;min-height:32px!important;padding:3px 6px!important;box-sizing:border-box!important;
 border:2px solid #a68b5b!important;border-radius:3px!important;background:#263a32!important;font:14px/18px var(--fantasy-copy)!important
}
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .market-party-card400>footer .market-icon{width:18px!important;height:18px!important}

/* A narrow screen keeps every offer in one continuously visible counter. */
@media (max-width:900px), (max-aspect-ratio:1/1){
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .market-party-cards400{top:292px!important;width:180px!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .market-party-list400{max-height:calc(100vh - 346px)!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid{
  position:fixed!important;inset:390px 8px 68px!important;z-index:30!important;
  width:auto!important;height:auto!important;min-height:0!important;max-height:none!important;
  display:flex!important;flex-direction:column!important;gap:8px!important;
  padding:0 3px 4px!important;margin:0!important;box-sizing:border-box!important;
  overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;touch-action:pan-y;
  background:#17231de8!important;border:2px solid #a68b5b!important;border-radius:6px!important
 }
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid>.patron-stock{height:auto!important;flex:none!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid .patron-stock-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid [data-patron=Tess] .patron-stock-cards{grid-template-columns:minmax(0,1fr)!important;justify-items:center!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid [data-patron=Tess] .patron-stock-offer{width:min(190px,100%)!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .story-forest-exit19{z-index:31!important}
}

@media (max-width:700px){
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .composed-patron-name{
  opacity:1!important;bottom:80px!important;font-size:16px!important;line-height:20px!important
 }
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern #storyRestOpen17{inset:300px 8px auto auto!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .story-forest-exit19{inset:346px 8px auto!important}
}

/* The recruit needs room for its card and the price/upkeep controls beside it. */
@media (min-width:901px) and (max-width:1100px) and (min-aspect-ratio:1/1){
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid:not(:has(.patron-stock:not([data-offer-count="1"]))){
  grid-template-columns:repeat(3,minmax(0,1fr)) minmax(0,1.9fr)!important
 }
}

body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid .market-recruit-upkeep18{
 background:#1c2922ed!important;border:1px solid #a68b5b!important;border-radius:4px!important;
 min-height:42px!important;box-sizing:border-box!important
}
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid .market-recruit-upkeep18>strong{
 display:block!important;font:700 16px/19px var(--fantasy-copy)!important
}
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid .market-recruit-upkeep18>span{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:3px!important;white-space:nowrap!important
}

body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern #storyRestChoices17{
 position:fixed!important;inset:48px 8px auto auto!important;z-index:76!important;
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important;
 width:min(310px,calc(100vw - 16px))!important;margin:0!important;padding:0!important;
}
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern #storyRestChoices17 button{
 display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:1px!important;
 min-width:0!important;min-height:86px!important;padding:4px 3px!important;
 background:#1c2922f2!important;color:#f4e7c4!important;border:2px solid #a68b5b!important;border-radius:5px!important;
 box-shadow:0 2px 6px #0a110acc!important;cursor:pointer!important;font:16px/19px var(--fantasy-copy)!important
}
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern #storyRestChoices17 button:disabled{opacity:.75!important;cursor:default!important}
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern #storyRestChoices17 button strong{font:700 16px/19px var(--fantasy-title)!important}
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern #storyRestChoices17 button span{display:flex!important;align-items:center!important;justify-content:center!important;gap:2px!important;white-space:nowrap!important}
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern #storyRestChoices17 .icon{width:17px!important;height:17px!important;vertical-align:middle!important}
body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern:has(.major-patron) #storyRestChoices17{visibility:hidden!important;pointer-events:none!important}
@media(max-width:700px){
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern #storyRestChoices17{top:244px!important;width:calc(100vw - 16px)!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern #storyRestChoices17 button{min-height:72px!important}
 /* The Morale-free profile gives party, departure and Rest separate controls below the room. */
 body.survival434[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .market-party-cards400{top:396px!important;width:calc(50vw - 12px)!important}
 body.survival434[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .market-party-list400{max-height:calc(100dvh - 510px)!important}
 body.survival434[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .story-forest-exit19{inset:396px 8px auto calc(50vw + 4px)!important;width:auto!important;height:44px!important;min-height:44px!important;flex-direction:column!important;gap:0!important}
 body.survival434[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .story-forest-exit19 small{display:none!important}
 body.survival434[data-story=true][data-style=hybrid][data-phase=tavern] #tavern #storyRestChoices17{top:448px!important}
 body.survival434[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .tavern-offers-grid{top:528px!important}
}
