/*
 * Original desktop hero window.
 * This file is loaded only above the phone/tablet breakpoint. It must not
 * contain mobile selectors or modify the three phone layouts.
 */

body.trav47HeroPage .trav47HeroTabs {
    display: none !important;
}

body.trav47HeroPage .trav47HeroDesktopTabs {
    position: relative;
    right: -7px;
    top: -9px;
    z-index: 36;
    display: block !important;
    width: calc(100% + 15px);
    height: 50px;
    margin-bottom: 10px;
    padding: 4px;
    border: 1px solid #34220d;
    background-color: #a58b6d;
    background-image: linear-gradient(to top, #caa065 0%, #876338 20%, #ba8f5b 54%, #f3ce8b 74%, #ecd9a5 92%);
    box-sizing: border-box;
}

body.trav47HeroPage .trav47HeroDesktopTabs > .scrollFrom,
body.trav47HeroPage .trav47HeroDesktopTabs > .scrollTo {
    display: none;
}

body.trav47HeroPage .trav47HeroDesktopTabs > .scrollingContainer {
    position: relative;
    display: flex;
    width: 100%;
    height: 55px;
    margin-top: -11px;
    padding-top: 11px;
    overflow: hidden;
    box-sizing: border-box;
}

body.trav47HeroPage .trav47HeroDesktopTabs .content {
    position: relative;
    z-index: 1;
    flex: 1 1 20%;
    display: inline-block;
    min-width: 0;
    height: 42px;
}

body.trav47HeroPage .trav47HeroDesktopTabs .content > a.tabItem {
    position: relative;
    display: inline-block;
    width: 100%;
    height: 42px;
    margin: 0;
    padding: 0 5px;
    overflow: hidden;
    border: 0;
    border-top: 1px solid #2d1408;
    border-bottom: 1px solid #d7b672;
    background-color: #5f473b;
    box-shadow: 0 -10px 2px -5px rgba(0, 0, 0, .45) inset, 0 20px 10px -5px rgba(0, 0, 0, .2) inset;
    color: #eccd8e;
    font-size: 12px;
    font-weight: bold;
    line-height: 42px;
    text-align: center;
    text-decoration: none;
    text-overflow: ellipsis;
    text-shadow: none;
    white-space: nowrap;
    cursor: pointer;
    box-sizing: border-box;
}

body.trav47HeroPage .trav47HeroDesktopTabs .content > a.tabItem::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0) 3px, rgba(255, 255, 255, .45) 4px, rgba(255, 255, 255, 0) 7px, rgba(255, 255, 255, 0) 27px, #9d6960 50px);
    pointer-events: none;
}

body.trav47HeroPage .trav47HeroDesktopTabs .content:not(:last-of-type) > a.tabItem::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 2px;
    background-image: linear-gradient(#62493a 0, #d7b27a 12px, #e7c184 15px, #c6a871 20px, #c6a871 24px, #88663c 31px);
}

body.trav47HeroPage .trav47HeroDesktopTabs .content > a.tabItem.active {
    background-color: #85664a;
    color: #f2e1d0;
    cursor: default;
}

body.trav47HeroPage .trav47HeroDesktopTabs .content > a.tabItem:not(.active):hover,
body.trav47HeroPage .trav47HeroDesktopTabs .content > a.tabItem:not(.active):focus {
    background-color: #a27e57;
    color: #f2e1d0;
}

/* Keep adventures aligned with every other hero section. The adventure
   component resets the content padding, which otherwise pulls the desktop
   tab strip 9px upward and makes the fixed header controls look displaced. */
body.trav47HeroPage.hero_adventure #content.trav47AdventureContent {
    padding: 9px 6px 12px;
}

/* Adventures and auctions are original desktop tabs, not large icon cards. */
body.hero_inventory .trav47HeroQuickDestinations {
    display: none !important;
}

/* Desktop inventory follows the phone composition without sharing any phone
   selector: hero stage first, full-width item grid second. */
body.hero_inventory .trav47HeroView-inventory {
    --trav47-desktop-hero-slot: 48px;
    --trav47-desktop-inventory-gap: 3px;
    padding-bottom: 12px;
    background: #363b2c;
}

body.hero_inventory #contentOuterContainer.trav47HeroWindow > .trav47HeroContainer {
    padding-bottom: 0;
    background: #363b2c;
}

body.hero_inventory #contentOuterContainer.trav47HeroWindow > .trav47HeroContainer > #content.trav47HeroContent {
    width: 554px;
    padding: 10px 0 0;
    margin: 0 auto;
    background-color: #363b2c;
}

body.hero_inventory #contentOuterContainer.trav47HeroWindow > .contentFooter {
    border-color: #776746;
    border-top: 0;
    background: #363b2c;
}

body.hero_inventory .trav47HeroView-inventory #bodyOptions {
    position: relative;
    float: none;
    clear: both;
    display: block;
    width: calc(100% + 15px);
    min-width: 0;
    max-width: none;
    height: 450px;
    margin: -19px -7px 0 -8px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #776746;
    border-bottom-color: #4e432f;
    border-radius: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(37, 40, 29, .18)),
        url('../../images/hero/full/heroInventoryBackdrop-v1.png') center 55% / cover no-repeat;
    background-color: #8b8675;
    box-shadow:
        inset 0 0 0 2px rgba(233, 218, 174, .18),
        inset 0 -38px 48px rgba(28, 31, 23, .22),
        0 2px 4px rgba(43, 38, 27, .18);
    box-sizing: border-box;
    isolation: isolate;
}

body.hero_inventory .trav47HeroView-inventory #hero_inventory {
    position: relative;
    float: none;
    clear: both;
    display: block;
    width: calc(100% + 15px);
    min-width: 0;
    max-width: none;
    margin: 0 -7px 0 -8px;
    padding: 6px;
    border: 1px solid #776746;
    border-top: 0;
    border-radius: 0 0 6px 6px;
    background: linear-gradient(180deg, #4b5039, #363b2c);
    box-shadow: inset 0 0 0 1px rgba(225, 207, 151, .1), 0 2px 4px rgba(43, 38, 27, .16);
    box-sizing: border-box;
}

body.hero_inventory .trav47HeroView-inventory #hero_body_container,
body.hero_inventory .trav47HeroView-inventory #hero_body,
body.hero_inventory .trav47HeroView-inventory #hero_body_content {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.hero_inventory .trav47HeroView-inventory #hero_body_container {
    position: relative;
    z-index: 1;
}

body.hero_inventory .trav47HeroView-inventory #hero_body {
    z-index: 1;
    overflow: hidden;
}

body.hero_inventory .trav47HeroView-inventory #hero_body .heroBodyImage {
    position: absolute;
    top: 3%;
    right: auto;
    bottom: auto;
    left: 48%;
    width: auto;
    min-width: 0;
    max-width: none;
    height: 96%;
    max-height: 96%;
    object-fit: contain;
    object-position: center bottom;
    transform: translateX(-50%);
    filter: drop-shadow(0 4px 4px rgba(23, 27, 19, .32));
}

body.hero_inventory .trav47HeroView-inventory #hero_body_content {
    z-index: 2;
    overflow: visible;
    pointer-events: none;
}

body.hero_inventory .trav47HeroView-inventory #hero_body_content > .content {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

body.hero_inventory .trav47HeroView-inventory #hero_body_content .content > .trav47-hero-equipment-slot {
    position: absolute;
    right: 9px;
    left: auto;
    z-index: 4;
    width: var(--trav47-desktop-hero-slot);
    height: var(--trav47-desktop-hero-slot);
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(120, 104, 67, .94);
    border-radius: 4px;
    background: linear-gradient(145deg, rgba(77, 82, 57, .84), rgba(45, 51, 37, .9));
    box-shadow: inset 0 0 0 1px rgba(214, 197, 144, .14), inset 0 7px 12px rgba(255, 255, 255, .035), 0 1px 2px rgba(26, 28, 21, .35);
    pointer-events: auto;
    cursor: pointer;
    box-sizing: border-box;
}

body.hero_inventory .trav47HeroView-inventory #hero_body_content #helmet { top: 3%; }
body.hero_inventory .trav47HeroView-inventory #hero_body_content #body { top: 17%; }
body.hero_inventory .trav47HeroView-inventory #hero_body_content #rightHand { top: 31%; }
body.hero_inventory .trav47HeroView-inventory #hero_body_content #leftHand { top: 45%; }
body.hero_inventory .trav47HeroView-inventory #hero_body_content #shoes { top: 59%; }
body.hero_inventory .trav47HeroView-inventory #hero_body_content #horse { top: 73%; }
body.hero_inventory .trav47HeroView-inventory #hero_body_content .content > #bag.trav47-hero-equipment-slot {
    top: 87%;
    width: var(--trav47-desktop-hero-slot) !important;
    height: var(--trav47-desktop-hero-slot) !important;
}

body.hero_inventory .trav47HeroView-inventory #hero_body_content .trav47-hero-equipment-slot > a,
body.hero_inventory .trav47HeroView-inventory #hero_body_content .trav47-hero-equipment-slot .item {
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    box-shadow: none;
    box-sizing: border-box;
}

body.hero_inventory .trav47HeroView-inventory #hero_body_content .content > #bag.trav47-hero-equipment-slot > a,
body.hero_inventory .trav47HeroView-inventory #hero_body_content .content > #bag.trav47-hero-equipment-slot .item,
body.hero_inventory .trav47HeroView-inventory #hero_body_content .content > #bag.trav47-hero-equipment-slot .item.onHero {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
}

body.hero_inventory .trav47HeroView-inventory #hero_body_content .trav47-hero-slot-placeholder {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    width: auto;
    max-width: 68%;
    height: auto;
    max-height: 68%;
    margin: auto;
    object-fit: contain;
    opacity: .58;
    filter: sepia(.12) saturate(.78) brightness(.94);
    pointer-events: none;
}

body.hero_inventory .trav47HeroView-inventory #hero_body_content .trav47-hero-slot-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

body.hero_inventory .trav47HeroView-inventory #itemsToSale {
    position: relative;
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    grid-auto-flow: row;
    align-items: stretch;
    justify-content: stretch;
    gap: var(--trav47-desktop-inventory-gap);
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow: visible;
    background: transparent;
    direction: rtl;
    box-sizing: border-box;
}

body.hero_inventory .trav47HeroView-inventory #itemsToSale > .inventory {
    position: relative;
    inset: auto;
    float: none;
    clear: none;
    display: block;
    width: 100%;
    min-width: 0;
    max-width: none;
    height: auto;
    min-height: 0;
    aspect-ratio: 1 / 1;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(150, 130, 83, .88);
    border-radius: 3px;
    background: linear-gradient(145deg, rgba(61, 66, 47, .96), rgba(42, 47, 35, .98));
    box-shadow: inset 0 0 0 1px rgba(220, 202, 145, .07), inset 0 8px 14px rgba(255, 255, 255, .025);
    cursor: pointer;
    box-sizing: border-box;
}

body.hero_inventory .trav47HeroView-inventory #itemsToSale > .inventory .item,
body.hero_inventory .trav47HeroView-inventory #itemsToSale > .inventory .item.highlight,
body.hero_inventory .trav47HeroView-inventory #itemsToSale > .inventory .item.whileDragging {
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background-color: transparent;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    box-shadow: none;
    box-sizing: border-box;
}

body.hero_inventory .trav47HeroView-inventory #itemsToSale .amount {
    right: 2px;
    left: auto;
    top: 2px;
    min-width: 18px;
    height: 16px;
    padding: 0 3px;
    border-radius: 2px;
    background: rgba(245, 240, 222, .9);
    color: #3b3d31;
    font: 700 10px/16px Tahoma, Arial, sans-serif;
    text-align: center;
    box-sizing: border-box;
}

body.hero_inventory .trav47HeroView-inventory #itemsToSale > .clear,
body.hero_inventory .trav47HeroView-inventory #itemsToSale > .market {
    display: none;
}

body.hero_inventory .trav47HeroView-inventory .trav47HeroAnimalResources {
    margin-top: 7px;
}

/* Desktop-only in-window equipment/consumable dialog. The phone version keeps
   its existing viewport modal and overlay from travianHeroPhone.css. */
body.hero_inventory #contentOuterContainer.trav47HeroWindow.trav47-hero-use-host {
    position: relative;
}

body.hero_inventory #contentOuterContainer.trav47HeroWindow > .trav47HeroUseModal {
    position: absolute;
    inset: 38px 0 0;
    z-index: 100;
    display: grid;
    place-items: center;
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 12px;
    overflow: hidden;
    box-sizing: border-box;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.hero_inventory #contentOuterContainer.trav47HeroWindow > .trav47HeroUseModal > .trav47HeroUsePanel {
    max-height: calc(100% - 24px);
    margin: 0;
    box-shadow: 0 5px 14px rgba(48, 42, 29, .28), inset 0 0 0 1px rgba(255, 250, 226, .7);
}

body.hero_inventory #contentOuterContainer.trav47HeroWindow > .trav47HeroHeader > .heroSectionHeader,
body.hero_inventory #contentOuterContainer.trav47HeroWindow > .trav47HeroHeader > .heroSectionHeader .heroLevelBadge,
body.hero_inventory #contentOuterContainer.trav47HeroWindow > .trav47HeroHeader > .heroSectionHeader .heroLevelBadge bdi {
    color: #fff4df !important;
    font: 700 16px/24px Tahoma, Arial, sans-serif !important;
    line-height: 24px !important;
    -webkit-text-fill-color: #fff4df !important;
}

body.hero_inventory #contentOuterContainer.trav47HeroWindow > .trav47HeroHeader > .heroSectionHeader .heroLevelBadge,
body.hero_inventory #contentOuterContainer.trav47HeroWindow > .trav47HeroHeader > .heroSectionHeader .heroLevelBadge bdi {
    display: inline !important;
    min-width: 0 !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: inherit !important;
}

/* Desktop resource transfer stays inside the hero window. */
body.hero_inventory #contentOuterContainer.trav47HeroWindow #content.trav47HeroContent.trav47-hero-resource-host {
    position: relative;
}

body.hero_inventory #contentOuterContainer.trav47HeroWindow #content.trav47HeroContent > .trav47HeroResourceModal {
    position: absolute;
    inset: 0;
    z-index: 101;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 12px;
    overflow: hidden;
    box-sizing: border-box;
    background: transparent;
}

body.hero_inventory #contentOuterContainer.trav47HeroWindow #content.trav47HeroContent > .trav47HeroResourceModal > .trav47HeroResourceModalBackdrop {
    background: transparent;
}

body.hero_inventory #contentOuterContainer.trav47HeroWindow #content.trav47HeroContent > .trav47HeroResourceModal > .trav47HeroResourceModalPanel {
    width: min(390px, calc(100% - 24px));
    max-height: calc(100% - 24px);
    margin: 0;
    overflow: hidden auto;
    border-color: #776746;
    background: #f5f2e6;
    box-shadow: 0 5px 14px rgba(48, 42, 29, .28), inset 0 0 0 1px rgba(255, 250, 226, .7);
}

body.hero_inventory #contentOuterContainer.trav47HeroWindow #content.trav47HeroContent > .trav47HeroResourceModal .trav47HeroResourceModalPanel > header {
    min-height: 35px;
    padding: 5px 8px;
    border-bottom-color: #57492f;
    background: linear-gradient(180deg, #5b6145, #3c432f);
    box-sizing: border-box;
}

body.hero_inventory #contentOuterContainer.trav47HeroWindow #content.trav47HeroContent > .trav47HeroResourceModal .trav47HeroResourceTransferForm {
    padding: 10px;
}

/* Desktop attributes view. Kept in the desktop-only stylesheet so the three
   phone layouts continue to use their dedicated composition unchanged. */
body.hero_inventory #content.trav47HeroView-attributes {
    background: #f2f0e7;
}

body.hero_inventory #content.trav47HeroView-attributes #attributes {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    min-width: 0;
    color: #354433;
    box-sizing: border-box;
}

body.hero_inventory #content.trav47HeroView-attributes #attributes > .roundedCornersBox {
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
}

body.hero_inventory #content.trav47HeroView-attributes #attributes > .trav47HeroStatusPanel {
    border-color: #aebda7;
    border-radius: 7px;
    background: #f7f8f2;
    box-shadow: inset 0 1px #fff, 0 1px 3px rgba(51, 66, 45, .12);
}

body.hero_inventory #content.trav47HeroView-attributes #attributes > .trav47HeroStatusPanel .boxes-contents {
    padding: 10px 12px;
    background: linear-gradient(180deg, #fffef9, #edf2e9);
}

body.hero_inventory #content.trav47HeroView-attributes #attributes > .roundedCornersBox:not(.trav47HeroStatusPanel) {
    overflow: hidden;
    border: 1px solid #aebda7;
    border-radius: 7px;
    background: #f5f5ef;
    box-shadow: inset 0 1px #fff, 0 1px 3px rgba(51, 66, 45, .12);
}

body.hero_inventory #content.trav47HeroView-attributes #attributes > .roundedCornersBox:not(.trav47HeroStatusPanel) > h4 {
    min-height: 38px;
    margin: 0;
    padding: 0;
    border: 0;
    border-bottom: 1px solid #b7c5b0;
    background: linear-gradient(180deg, #eef4e9, #dce8d6);
}

body.hero_inventory #content.trav47HeroView-attributes #attributes .openCloseSwitchBar {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 7px 11px;
    color: #344e30;
    cursor: pointer;
    box-sizing: border-box;
}

body.hero_inventory #content.trav47HeroView-attributes #attributes .openCloseSwitchBar .title {
    font-size: 14px;
    font-weight: 700;
}

body.hero_inventory #content.trav47HeroView-attributes #attributes .openCloseSwitchBar > .openedClosedSwitch {
    flex: 0 0 auto;
    margin: 0 0 0 7px;
}

body.hero_inventory #content.trav47HeroView-attributes #attributes .heroPropertiesContent {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 9px;
    border: 0;
    border-radius: 0;
    background: #f3f4ed;
    box-shadow: none;
    box-sizing: border-box;
}

body.hero_inventory #content.trav47HeroView-attributes #attributes .heroPropertiesContent.hide {
    display: none;
}

body.hero_inventory #content.trav47HeroView-attributes #attributes .heroPropertiesContent > .clear {
    display: none;
}

body.hero_inventory #content.trav47HeroView-attributes #attributes .heroPropertiesContent #setResource,
body.hero_inventory #content.trav47HeroView-attributes #attributes .trav47HeroAttackPanel .attackBehaviour {
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 9px 10px;
    border: 1px solid #c7d0c2;
    border-radius: 5px;
    background: #fffef9;
    box-sizing: border-box;
}

body.hero_inventory #content.trav47HeroView-attributes #attributes .heroPropertiesContent .changeResourcesHeadline,
body.hero_inventory #content.trav47HeroView-attributes #attributes .trav47HeroAttackPanel .changeResourcesHeadline {
    margin: 0 0 7px;
    padding: 0 0 6px;
    border-bottom: 1px solid #d8dfd4;
    color: #3e5539;
    font-size: 13px !important;
}

body.hero_inventory #content.trav47HeroView-attributes #attributes .trav47HeroAttackPanel .attackBehaviour .options {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 28px;
}

body.hero_inventory #content.trav47HeroView-attributes #attributes .trav47HeroAttackPanel .attackBehaviour .options > br {
    display: none;
}

body.hero_inventory #content.trav47HeroView-attributes #attributes .trav47HeroBenefits {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 0 10px;
    overflow: hidden;
    border: 1px solid #aebda7;
    border-radius: 7px;
    background: #f4f3eb;
    box-shadow: inset 0 1px #fff, 0 1px 3px rgba(51, 66, 45, .12);
    box-sizing: border-box;
}

body.hero_inventory #content.trav47HeroView-attributes #attributes .trav47HeroBenefitsHeader {
    min-height: 0;
    padding: 5px 10px;
    border-bottom: 1px solid #b7c5b0;
    background: linear-gradient(180deg, #edf4e8, #dce8d6);
}

body.hero_inventory #content.trav47HeroView-attributes #attributes .trav47HeroBenefitsTitle h3 {
    color: #304c2b;
    font-size: 15px;
    line-height: 18px;
}

body.hero_inventory #content.trav47HeroView-attributes #attributes .trav47HeroBenefitsTitle p {
    margin-top: 0;
    color: #687363;
    font-size: 11px;
    line-height: 14px;
}

body.hero_inventory #content.trav47HeroView-attributes #attributes .trav47HeroBenefitList {
    display: block;
    width: 100%;
    margin: 0;
    padding: 9px 10px;
    box-sizing: border-box;
}

body.hero_inventory #content.trav47HeroView-attributes #attributes .trav47HeroBenefitCard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(205px, 44%);
    grid-template-rows: auto auto;
    column-gap: 14px;
    row-gap: 2px;
    align-items: center;
    width: 100%;
    min-width: 0;
    min-height: 62px;
    margin: 0 0 6px;
    padding: 8px 10px;
    border: 1px solid #c5cec0;
    border-radius: 5px;
    background: linear-gradient(180deg, #fffef9, #eeefe7);
    box-shadow: inset 0 1px rgba(255, 255, 255, .96);
    box-sizing: border-box;
}

body.hero_inventory #content.trav47HeroView-attributes #attributes .trav47HeroBenefitCard:last-child {
    margin-bottom: 0;
}

body.hero_inventory #content.trav47HeroView-attributes #attributes .trav47HeroBenefitHeading {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
}

body.hero_inventory #content.trav47HeroView-attributes #attributes .trav47HeroBenefitDescription {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
    overflow: visible;
    color: #687064;
    font-size: 10px;
    line-height: 15px;
    text-overflow: clip;
    white-space: normal;
}

body.hero_inventory #content.trav47HeroView-attributes #attributes .trav47HeroBenefitControls {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    width: 100%;
    min-width: 0;
}

body.hero_inventory #content.trav47HeroView-attributes #attributes .trav47HeroBenefitProgress {
    min-width: 70px;
    height: 10px;
}

body.hero_inventory #content.trav47HeroView-attributes #attributes .trav47HeroBenefitEffect {
    min-width: 64px;
    padding: 3px 7px;
}

body.hero_inventory #content.trav47HeroView-attributes #attributes .trav47HeroBenefitsActions {
    padding: 1px 10px 0;
}

/* Desktop hero appearance editor. The preview height is locked once, from the
   initial collapsed controls height, so expanding a choice never stretches it. */
body.trav47HeroPage.hero:not(.hero_inventory) #content.hero_editor #heroEditor.trav47HeroAppearanceEditor {
    --trav47-desktop-appearance-height: 340px;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 7px;
    direction: rtl;
    border: 1px solid #b6c3ad;
    border-radius: 7px;
    background: linear-gradient(180deg, #f8faf5, #edf2e9);
    box-shadow: inset 0 1px #fff, 0 1px 3px rgba(50, 65, 44, .14);
    box-sizing: border-box;
}

body.trav47HeroPage.hero:not(.hero_inventory) #content.hero_editor #heroEditor .trav47HeroAppearancePreview {
    position: relative;
    top: auto;
    right: auto;
    float: none;
    flex: 0 0 254px;
    width: 254px;
    min-width: 254px;
    height: var(--trav47-desktop-appearance-height);
    min-height: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid #9fae96;
    border-radius: 6px;
    background: linear-gradient(180deg, #e3ecdd, #c7d6bc);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .46);
    box-sizing: border-box;
}

body.trav47HeroPage.hero:not(.hero_inventory) #content.hero_editor #heroEditor .trav47HeroAppearancePreview .image {
    position: absolute;
    inset: 4px;
    width: auto;
    height: auto;
    margin: 0;
    overflow: hidden;
}

body.trav47HeroPage.hero:not(.hero_inventory) #content.hero_editor #heroEditor .trav47HeroAppearancePreview .image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
}

body.trav47HeroPage.hero:not(.hero_inventory) #content.hero_editor #heroEditor .trav47HeroAppearanceControls {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 6px;
    float: none;
    width: auto;
    min-width: 0;
    margin: 0;
}

body.trav47HeroPage.hero:not(.hero_inventory) #content.hero_editor #heroEditor .trav47HeroAppearanceGender,
body.trav47HeroPage.hero:not(.hero_inventory) #content.hero_editor #heroEditor .trav47HeroAppearanceSections,
body.trav47HeroPage.hero:not(.hero_inventory) #content.hero_editor #heroEditor .trav47HeroAppearanceSections > .boxes-contents,
body.trav47HeroPage.hero:not(.hero_inventory) #content.hero_editor #heroEditor #attributesContainer {
    float: none;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    box-sizing: border-box;
}

body.trav47HeroPage.hero:not(.hero_inventory) #content.hero_editor #heroEditor .trav47HeroAppearanceGender .info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    float: none;
    width: 100%;
    min-height: 38px;
    padding: 4px 6px 4px 10px;
    border: 1px solid #b9c6b2;
    border-radius: 5px;
    background: linear-gradient(180deg, #fbfcf8, #e6ede1);
    box-sizing: border-box;
}

body.trav47HeroPage.hero:not(.hero_inventory) #content.hero_editor #heroEditor .trav47HeroAppearanceGender .headline {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    line-height: 28px;
}

body.trav47HeroPage.hero:not(.hero_inventory) #content.hero_editor #heroEditor .trav47HeroAppearanceGender .title {
    display: block;
    width: auto;
    margin: 0;
    padding: 0 3px;
    color: #344a30;
    font-size: 12px;
    font-weight: 700;
    line-height: 28px;
}

body.trav47HeroPage.hero:not(.hero_inventory) #content.hero_editor #heroEditor #genderButtons {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
    float: none;
    height: auto;
    margin: 0;
}

body.trav47HeroPage.hero:not(.hero_inventory) #content.hero_editor #heroEditor #genderButtons button.icon {
    position: relative;
    width: 30px;
    min-width: 30px;
    height: 30px;
    min-height: 30px;
    margin: 0;
    padding: 0;
    border: 1px solid #a9b5a3;
    border-radius: 5px;
    background: linear-gradient(180deg, #fff, #e3e9df);
    box-shadow: inset 0 1px #fff;
    box-sizing: border-box;
}

body.trav47HeroPage.hero:not(.hero_inventory) #content.hero_editor #heroEditor #genderButtons button.icon.iconActive {
    border-color: #64883d;
    background: linear-gradient(180deg, #91b95a, #668f34);
    box-shadow: inset 0 1px rgba(255, 255, 255, .45);
}

body.trav47HeroPage.hero:not(.hero_inventory) #content.hero_editor #heroEditor #genderButtons button.icon img {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 18px;
    height: 18px;
    margin: 0;
    background: url('../../images/hero/full/gender.png') transparent no-repeat right 0;
}

body.trav47HeroPage.hero:not(.hero_inventory) #content.hero_editor #heroEditor #genderButtons button.icon img.heroEditorActivateFemale {
    background-position: right -28px;
}

body.trav47HeroPage.hero:not(.hero_inventory) #content.hero_editor #heroEditor #attributesContainer > .info {
    float: none;
    width: 100%;
    min-width: 0;
    margin: 0 0 4px;
    overflow: hidden;
    border: 1px solid #bdc8b7;
    border-radius: 4px;
    background: #fff;
    box-shadow: inset 0 1px rgba(255, 255, 255, .86);
    box-sizing: border-box;
}

body.trav47HeroPage.hero:not(.hero_inventory) #content.hero_editor #heroEditor #attributesContainer > .info:last-child {
    margin-bottom: 0;
}

body.trav47HeroPage.hero:not(.hero_inventory) #content.hero_editor #heroEditor #attributesContainer > .info > .headline {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    height: 28px;
    margin: 0;
    padding: 0 9px 0 27px;
    border: 0;
    background: linear-gradient(180deg, #f9faf6, #e5ebe1);
    line-height: 28px;
    box-shadow: none;
    cursor: pointer;
    box-sizing: border-box;
}

body.trav47HeroPage.hero:not(.hero_inventory) #content.hero_editor #heroEditor #attributesContainer > .info > .headline::after {
    content: '';
    position: absolute;
    top: 9px;
    left: 10px;
    width: 7px;
    height: 7px;
    border-left: 2px solid #617b50;
    border-bottom: 2px solid #617b50;
    transform: rotate(45deg);
    transition: transform .15s ease, top .15s ease;
    box-sizing: border-box;
}

body.trav47HeroPage.hero:not(.hero_inventory) #content.hero_editor #heroEditor #attributesContainer > .info.infoOpen > .headline::after {
    top: 11px;
    transform: rotate(225deg);
}

body.trav47HeroPage.hero:not(.hero_inventory) #content.hero_editor #heroEditor #attributesContainer > .info > .headline .title {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    color: #3c4d38;
    font-size: 12px;
    font-weight: 700;
    line-height: 28px;
    text-decoration: none;
}

body.trav47HeroPage.hero:not(.hero_inventory) #content.hero_editor #heroEditor #attributesContainer > .info > .headline .expander,
body.trav47HeroPage.hero:not(.hero_inventory) #content.hero_editor #heroEditor #attributesContainer .clear {
    display: none;
}

body.trav47HeroPage.hero:not(.hero_inventory) #content.hero_editor #heroEditor #attributesContainer > .info > .details {
    display: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    justify-items: center;
    gap: 5px;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 6px;
    border: 0;
    border-top: 1px solid #cbd5c6;
    background: #f7f9f5;
    box-sizing: border-box;
}

body.trav47HeroPage.hero:not(.hero_inventory) #content.hero_editor #heroEditor #attributesContainer > .info.infoOpen > .details {
    display: grid;
}

body.trav47HeroPage.hero:not(.hero_inventory) #content.hero_editor #heroEditor #attributesContainer > .info > .details .attribute {
    display: block;
    float: none;
    width: 54px;
    max-width: 100%;
    height: 54px;
    margin: 0;
    padding: 3px;
    object-fit: contain;
    border: 1px solid #c2ccb9;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    box-sizing: border-box;
}

body.trav47HeroPage.hero:not(.hero_inventory) #content.hero_editor #heroEditor #attributesContainer > .info > .details .attribute:hover {
    border-color: #76954d;
    background: #e8f1df;
}

body.trav47HeroPage.hero:not(.hero_inventory) #content.hero_editor #heroEditor .trav47HeroAppearanceActions,
body.trav47HeroPage.hero:not(.hero_inventory) #content.hero_editor #heroEditor .trav47HeroAppearanceActions form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.trav47HeroPage.hero:not(.hero_inventory) #content.hero_editor #heroEditor .trav47HeroAppearanceButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    height: 31px;
    margin: 0;
    padding: 0 13px;
    border: 1px solid #5f812f;
    border-radius: 5px;
    background: linear-gradient(180deg, #8db653, #628e31);
    color: #fff;
    font: 700 12px/29px Tahoma, Arial, sans-serif;
    text-shadow: 0 1px rgba(45, 66, 26, .65);
    box-shadow: inset 0 1px rgba(255, 255, 255, .42), 0 1px 2px rgba(48, 66, 36, .15);
    cursor: pointer;
    box-sizing: border-box;
}

body.trav47HeroPage.hero:not(.hero_inventory) #content.hero_editor #heroEditor .trav47HeroAppearanceButton.secondary {
    border-color: #a2ada0;
    background: linear-gradient(180deg, #fff, #e3e7df);
    color: #4b5b47;
    text-shadow: none;
}

body.trav47HeroPage.hero:not(.hero_inventory) #content.hero_editor #heroEditor .trav47HeroAppearanceStatus {
    flex: 0 0 100%;
    min-height: 15px;
    margin: 0;
    padding: 1px 0 0;
    color: #667162;
    font: 700 10px/14px Tahoma, Arial, sans-serif;
    text-align: center;
}

/* Desktop adventures: keep every adventure on its own full-width row. */
body.trav47HeroPage.hero_adventure #content.trav47AdventureContent .trav47AdventureList {
    grid-template-columns: minmax(0, 1fr);
}

body.trav47HeroPage.hero_adventure #content.trav47AdventureContent .trav47AdventureCard {
    grid-template-columns: minmax(0, 1.15fr) minmax(150px, .85fr) auto;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    padding: 5px 7px;
}

body.trav47HeroPage.hero_adventure #content.trav47AdventureContent .trav47AdventureCardHeader {
    grid-column: auto;
    min-height: 36px;
    margin: 0;
    padding: 0 2px;
    border-bottom: 0;
    background: transparent;
}

body.trav47HeroPage.hero_adventure #content.trav47AdventureContent .trav47AdventureMeta {
    grid-template-columns: repeat(2, minmax(70px, 1fr));
}

body.trav47HeroPage.hero_adventure #content.trav47AdventureContent .trav47AdventureMeta > span {
    padding: 2px 3px;
}

body.trav47HeroPage.hero_adventure #content.trav47AdventureContent .trav47AdventureSendForm,
body.trav47HeroPage.hero_adventure #content.trav47AdventureContent .trav47AdventureSendButton {
    align-self: center;
}

/* Desktop adventure dispatch: origin, duration and arrival share one row. */
body.trav47HeroPage .trav47AdventureJourneyInfo {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.trav47HeroPage .trav47AdventureJourneyInfo .trav47AdventureArrivalRow {
    grid-column: auto;
    justify-self: stretch;
    justify-content: space-between;
    width: auto;
}

/* Desktop auction access notice. */
body.trav47HeroPage.hero_auction #content.trav47HeroContent #auctionAdventureGate.trav47AuctionAdventureGate {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px 10px;
    float: none;
    clear: both;
    width: calc(100% - 10px);
    max-width: none;
    margin: 7px 5px 9px;
    padding: 9px 11px;
    border: 1px solid #c5d3b5;
    border-radius: 7px;
    color: #405334;
    background: linear-gradient(180deg, #fbfdf8, #edf4e6);
    box-shadow: inset 0 1px #fff, 0 1px 3px rgba(63, 85, 46, .12);
    direction: rtl;
    box-sizing: border-box;
}

body.trav47HeroPage.hero_auction #content.trav47HeroContent #auctionAdventureGate .auctionAdventureBarText {
    position: static;
    float: none;
    min-width: 0;
    margin: 0;
    padding: 0;
    color: #405334;
    font: 700 12px/19px Tahoma, Arial, sans-serif;
    text-align: right;
}

body.trav47HeroPage.hero_auction #content.trav47HeroContent #auctionAdventureGate .auctionAdventureBarNumbers {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    float: none;
    min-width: 50px;
    margin: 0;
    padding: 2px 8px;
    border: 1px solid #aeca8b;
    border-radius: 999px;
    color: #557332;
    background: #e4efd7;
    font: 700 11px/18px Tahoma, Arial, sans-serif;
    direction: ltr;
    box-sizing: border-box;
}

body.trav47HeroPage.hero_auction #content.trav47HeroContent #auctionAdventureGate > .clear {
    display: none;
}

body.trav47HeroPage.hero_auction #content.trav47HeroContent #auctionAdventureGate .auctionAdventureBar {
    grid-column: 1 / -1;
    float: none;
    width: 100%;
    height: 7px;
    margin: 0;
    padding: 1px;
    overflow: hidden;
    border: 1px solid #b9c9aa;
    border-radius: 999px;
    background: #fff;
    box-sizing: content-box;
}

body.trav47HeroPage.hero_auction #content.trav47HeroContent #auctionAdventureGate .auctionAdventureBar .bar {
    float: right;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #66983c, #8fba59);
}

/* Give the desktop silver converter a clearer visual weight. */
body.trav47HeroPage.hero_auction #content.trav47HeroContent .trav47CurrencyConverter {
    margin-top: -10px;
    border-color: #8fa181;
    box-shadow: inset 0 1px rgba(255, 255, 255, .55), 0 1px 3px rgba(49, 66, 40, .2);
}

body.trav47HeroPage.hero_auction #content.trav47HeroContent #auctionAdventureGate .auctionAdventureBarNumbers bdi {
    display: inline-flex;
    flex-direction: row;
    gap: 1px;
    direction: rtl;
}

body.trav47HeroPage.hero_auction #content.trav47HeroContent .trav47CurrencyPanel {
    background: #e4eadf;
}

body.trav47HeroPage.hero_auction #content.trav47HeroContent .trav47CurrencyModes {
    background: #d8e2d1;
}

body.trav47HeroPage.hero_auction #content.trav47HeroContent .trav47CurrencyForm,
body.trav47HeroPage.hero_auction #content.trav47HeroContent button.trav47CurrencyMode.is-active {
    background: #e4eadf !important;
}
