/* ============================================
HeroHubUI Styles - v7 (ArmoryUI Alignment)
Mobile-first responsive design
All selectors scoped under .herohub-layout
Overlays namespaced by ID
============================================ */

/* Root layout container */
.herohub-layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
}

/* Main content area */
.herohub-layout .herohub-main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ============================================
HERO SELECTOR (UNCHANGED)
============================================ */

.herohub-layout .hero-selector {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.herohub-layout .hero-selector::-webkit-scrollbar {
    height: 6px;
}

.herohub-layout .hero-selector::-webkit-scrollbar-thumb {
    background: var(--clr-border);
    border-radius: 3px;
}

.herohub-layout .hero-list {
    display: flex;
    gap: 0.5rem;
}

.herohub-layout .hero-list-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    flex-shrink: 0;
    padding: 0.5rem;
    border: 2px solid var(--clr-border);
    border-radius: 4px;
    cursor: pointer;
    scroll-snap-align: start;
    background: var(--clr-surface);
    transition: all 0.2s ease;
}

.herohub-layout .hero-list-item:hover {
    background: var(--clr-surface-light);
    border-color: var(--clr-accent-dim);
}

.herohub-layout .hero-list-item.active {
    outline: 2px solid var(--clr-accent);
    outline-offset: -2px;
    background: var(--clr-surface-dark);
}

.herohub-layout .hero-portrait {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.herohub-layout .hero-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.herohub-layout .hero-info {
    text-align: center;
    width: 100%;
}

.herohub-layout .hero-name {
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--clr-text-bright);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.herohub-layout .hero-meta {
    font-size: 0.65rem;
    color: var(--clr-text-dim);
}

/* Traits display in identity card */
.herohub-layout .identity-traits {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.herohub-layout .identity-traits .trait-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    font-size: 0.75rem;
    background: var(--clr-surface-dark);
    border: 1px solid var(--clr-border);
    border-radius: 4px;
    color: var(--clr-accent);
}

/* ============================================
IDENTITY CARD (UNCHANGED)
============================================ */

.herohub-layout .identity-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--clr-surface);
    border-radius: 4px;
    border: 1px solid var(--clr-border);
}

.herohub-layout .identity-portrait {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 4px;
    overflow: hidden;
}

.herohub-layout .identity-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.herohub-layout .identity-info {
    flex: 1;
    min-width: 0;
}

.herohub-layout .identity-name {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--clr-text-bright);
    margin-bottom: 0.25rem;
}

.herohub-layout .identity-class {
    font-size: 0.85rem;
    color: var(--clr-text-dim);
    margin-bottom: 0.5rem;
}

.herohub-layout .identity-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.herohub-layout .identity-stats .stat-dps,
.herohub-layout .identity-stats .stat-mps {
    font-size: 0.9rem;
}

.herohub-layout .identity-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.herohub-layout .tag-badge {
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
    background: var(--clr-surface-dark);
    border-radius: 3px;
    color: var(--clr-text-dim);
}

/* ============================================
TAB BAR (UNCHANGED)
============================================ */

.herohub-layout .tab-bar {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--clr-border);
}

.herohub-layout .tab-btn {
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--clr-text-dim);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.herohub-layout .tab-btn:hover {
    color: var(--clr-text);
    background: var(--clr-surface);
}

.herohub-layout .tab-btn.active {
    color: var(--clr-accent);
    border-bottom-color: var(--clr-accent);
}

.herohub-layout .tab-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.herohub-layout .tab-btn:disabled:hover {
    background: transparent;
}

/* ============================================
EQUIPMENT PANEL (FROM ARMORYUI - SCOPED)
============================================ */

.herohub-layout .equipment-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Equipment slots container */
.herohub-layout .equipment-slots {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Equipped slot - matches ArmoryUI */
.herohub-layout .equip-slot {
    background: var(--clr-shadow);
    border: 1px solid var(--clr-slot-dashed);
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.2s;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.herohub-layout .equip-slot:hover {
    border-color: var(--clr-text-dim);
}

.herohub-layout .equip-slot.empty {
    border-style: dashed;
}

.herohub-layout .equip-slot.locked {
    border-color: var(--clr-accent-dim);
    background: rgba(var(--rgb-accent), 0.05);
}

/* Slot label */
.herohub-layout .slot-label {
    font-size: 0.7rem;
    color: var(--clr-hint);
    width: 60px;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

/* Lock toggle */
.herohub-layout .lock-toggle {
    font-size: 0.8rem;
    cursor: pointer;
    opacity: 0.3;
    transition: opacity 0.2s;
    margin-top: 0.2rem;
}

.herohub-layout .lock-toggle:hover {
    opacity: 1;
}

.herohub-layout .lock-toggle.active {
    opacity: 1;
    filter: drop-shadow(0 0 5px var(--clr-accent));
}

/* Item icon */
.herohub-layout .equip-slot .item-icon {
    position: relative;
    width: 32px;
    height: 32px;
    background: var(--clr-hp-bar-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border-radius: 2px;
}

/* Equipped level badge */
.herohub-layout .equipped-level {
    position: absolute;
    bottom: -6px;
    right: -6px;
    background: linear-gradient(135deg, var(--clr-surface-light), var(--clr-bg));
    color: var(--clr-text-bright);
    border: 1px solid var(--clr-border-light);
    font-size: 0.55rem;
    padding: 0.1rem 0.25rem;
    border-radius: 2px;
    z-index: 2;
    font-weight: bold;
    box-shadow: 0 2px 4px var(--clr-shadow-strong);
    letter-spacing: 0.5px;
}

/* Item info */
.herohub-layout .equip-slot .item-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.herohub-layout .item-equipped-info {
    align-items: flex-start;
    padding-top: 0.25rem;
    flex: 1;
}

.herohub-layout .item-equipped-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.herohub-layout .item-equipped-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.herohub-layout .item-equipped-name {
    white-space: normal;
    font-weight: 500;
    color: var(--clr-text-bright);
}

/* iLevel tag mini */
.herohub-layout .item-ilevel-tag-mini {
    font-size: 0.7rem;
    color: var(--clr-text-dim);
    flex-shrink: 0;
}

/* Slot placeholder */
.herohub-layout .slot-placeholder {
    color: var(--clr-text-dim);
    font-style: italic;
    font-size: 0.8rem;
}

/* Unequip button */
.herohub-layout .btn-unequip {
    background: none;
    border: none;
    color: var(--clr-unequip);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 0.5rem;
}

.herohub-layout .btn-unequip:hover {
    color: var(--clr-unequip-hover);
}

/* ============================================
INVENTORY SECTION (FROM ARMORYUI - SCOPED)
============================================ */

.herohub-layout .inventory-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.herohub-layout .inventory-header h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--clr-text-bright);
}

.herohub-layout .inventory-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.herohub-layout .inventory-controls select {
    min-height: var(--touch-target-min);
    padding: 0.5rem;
    border: 1px solid var(--clr-border);
    border-radius: 4px;
    background: var(--clr-surface);
    color: var(--clr-text);
    font-size: 0.9rem;
}

.herohub-layout .inventory-controls select:focus {
    outline: none;
    border-color: var(--clr-accent);
}

/* Sort direction button */
.herohub-layout .sort-dir-btn {
    min-height: var(--touch-target-min);
    min-width: var(--touch-target-min);
    padding: 0.5rem;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.herohub-layout .sort-dir-btn:hover {
    background: var(--clr-surface-light);
}

/* Inventory grid - list layout (ArmoryUI style) */
.herohub-layout .inventory-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.2rem;
    max-height: 450px;
    overflow-y: auto;
    padding: 0.1rem;
    flex: 1;
    min-height: 0;
    align-content: start;
}

/* Inventory scroll container */
.herohub-layout .inventory-scroll-container {
    display: block;
    max-height: 500px;
    overflow-y: scroll;
    padding-right: 10px;
    border: 1px solid var(--clr-border);
}

/* Inventory item container */
.herohub-layout .inventory-item-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-shrink: 0;
}

/* Inventory item */
.herohub-layout .inventory-item {
    background: var(--clr-shadow);
    border: 1px solid var(--clr-slot-dashed);
    padding: 0.15rem 0.3rem;
    border-radius: 4px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.8rem;
    min-width: 0;
    overflow: hidden;
    flex-shrink: 0;
}

.herohub-layout .inventory-item:hover {
    background: var(--clr-surface-light);
}

/* Inventory item info */
.herohub-layout .inventory-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

/* Inventory item header */
.herohub-layout .inventory-item-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
}

.herohub-layout .inventory-item-header .item-header {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    min-width: 0;
    flex: 1;
    font-weight: bold;
    font-size: 0.8rem;
    margin-bottom: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Item level tag */
.herohub-layout .item-level-tag {
    background: linear-gradient(to bottom, var(--clr-surface-light), var(--clr-surface));
    border: 1px solid var(--clr-border-light);
    color: var(--clr-text-bright);
    font-size: 0.6rem;
    padding: 0.1rem 0.3rem;
    border-radius: 2px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 1px 2px var(--clr-shadow);
}

/* Item iLevel tag inventory */
.herohub-layout .item-ilevel-tag-inventory {
    font-size: 0.7rem;
    color: var(--clr-text-dim);
}

/* Item quantity */
.herohub-layout .item-qty {
    font-size: 0.7rem;
    color: var(--clr-text-dim);
}

/* Item type */
.herohub-layout .item-type {
    font-size: 0.7rem;
    min-width: 55px;
    flex-shrink: 0;
    color: var(--clr-text-dim);
    text-transform: capitalize;
}

/* Item effects */
.herohub-layout .item-effects {
    font-size: 0.65rem;
    color: var(--clr-text-dim);
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem;
    flex: 1;
    margin: 0;
    line-height: 1.1;
}

.herohub-layout .item-effects span {
    background: var(--clr-white-faint);
    padding: 0.1rem 0.2rem;
    border-radius: 2px;
}

/* Item actions */
.herohub-layout .inventory-item-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Stat delta container */
.herohub-layout .stat-delta-container {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.herohub-layout .stat-delta-preview {
    font-size: 0.7rem;
}

.herohub-layout .stat-delta {
    font-weight: bold;
}

.herohub-layout .stat-delta-separator {
    color: var(--clr-text-dim);
    margin: 0 0.1rem;
}

/* Action buttons */
.herohub-layout .btn-action {
    flex: 1;
    font-size: 0.7rem;
    padding: 0.15rem 0.35rem;
    background: var(--clr-btn-bg);
    border: 1px solid var(--clr-btn-border);
    color: var(--clr-btn-text);
    cursor: pointer;
    min-width: 0;
}

.herohub-layout .btn-action:hover {
    background: var(--clr-btn-hover-bg);
    color: var(--clr-text-bright);
}

.herohub-layout .btn-equip {
    border-color: var(--clr-equip-border);
    color: var(--clr-equip-text);
}

/* Class restriction styling */
.herohub-layout .item-restricted {
    opacity: 0.5;
    filter: grayscale(80%);
}

.herohub-layout .item-restricted .btn-equip {
    opacity: 0.3;
    pointer-events: none;
}

/* ============================================
RARITY BORDERS (FROM ARMORYUI)
============================================ */

.herohub-layout .rarity-border-common { border-color: var(--clr-rarity-border-common); }
.herohub-layout .rarity-border-uncommon { border-color: var(--clr-rarity-border-uncommon); }
.herohub-layout .rarity-border-rare { border-color: var(--clr-rarity-border-rare); }
.herohub-layout .rarity-border-epic { border-color: var(--clr-rarity-border-epic); }
.herohub-layout .rarity-border-legendary { border-color: var(--clr-rarity-border-legendary); }
.herohub-layout .rarity-border-mythic { border-color: var(--clr-rarity-border-mythic); }

.herohub-layout .rarity-common { color: var(--clr-rarity-common); }
.herohub-layout .rarity-uncommon { color: var(--clr-rarity-uncommon); }
.herohub-layout .rarity-rare { color: var(--clr-rarity-rare); }
.herohub-layout .rarity-epic { color: var(--clr-rarity-epic); }
.herohub-layout .rarity-legendary { color: var(--clr-rarity-legendary); }

/* ============================================
PLACEHOLDER TABS
============================================ */

.herohub-layout .tab-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
    color: var(--clr-text-dim);
}

.herohub-layout .tab-placeholder h3 {
    margin: 0 0 0.5rem 0;
    color: var(--clr-text-bright);
}

/* ============================================
EMPTY STATE
============================================ */

.herohub-layout .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
    color: var(--clr-text-dim);
}

.herohub-layout .empty-heroes {
    text-align: center;
    padding: 2rem;
    color: var(--clr-text-dim);
    font-style: italic;
}

.herohub-layout .empty-msg {
    text-align: center;
    padding: 2rem;
    color: var(--clr-text-dim);
}

/* ============================================
OVERLAY STYLES (ID-NAMESPACED)
Not scoped under .herohub-layout - these mount in #overlay-root
============================================ */

/* Filter Overlay - HeroHub */
#herohub-filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

#herohub-filter-overlay .filter-overlay-content {
    background: var(--clr-surface-dark);
    width: 90%;
    max-width: 600px;
    height: 85vh;
    border: 1px solid var(--clr-accent);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

#herohub-filter-overlay .filter-header {
    padding: 1rem;
    background: var(--clr-surface);
    border-bottom: 1px solid var(--clr-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#herohub-filter-overlay .filter-header h2 {
    margin: 0;
    color: var(--clr-text-bright);
}

#herohub-filter-overlay .btn-close {
    background: none;
    border: none;
    color: var(--clr-text);
    font-size: 1.5rem;
    cursor: pointer;
    min-width: var(--touch-target-min);
    min-height: var(--touch-target-min);
}

#herohub-filter-overlay .filter-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

#herohub-filter-overlay .filter-footer {
    padding: 1rem;
    background: var(--clr-surface);
    border-top: 1px solid var(--clr-border);
    display: flex;
    gap: 1rem;
}

#herohub-filter-overlay .filter-footer-actions,
#herohub-filter-overlay .filter-footer-actions-primary {
    min-height: var(--touch-target-min);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

#herohub-filter-overlay .filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

#herohub-filter-overlay .filter-group h3 {
    font-size: 0.9rem;
    color: var(--clr-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

#herohub-filter-overlay .filter-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.5rem;
}

#herohub-filter-overlay .filter-toggle {
    background: var(--clr-surface-light);
    border: 1px solid var(--clr-border);
    color: var(--clr-text-dim);
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    font-size: 0.8rem;
    transition: all 0.2s;
    min-height: var(--touch-target-min);
}

#herohub-filter-overlay .filter-toggle:hover {
    background: var(--clr-surface);
}

#herohub-filter-overlay .filter-toggle.active {
    background: var(--clr-accent);
    color: var(--clr-bg);
    border-color: var(--clr-accent-bright);
    box-shadow: 0 0 10px rgba(var(--rgb-accent), 0.3);
}

/* iLevel slider */
#herohub-filter-overlay .ilevel-slider-container {
    padding: 0 0.5rem;
}

#herohub-filter-overlay .range-slider-full {
    width: 100%;
    min-height: var(--touch-target-min);
}

/* Keyword chips */
#herohub-filter-overlay .keyword-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

#herohub-filter-overlay .keyword-chip {
    background: var(--clr-surface-light);
    border: 1px solid var(--clr-accent-dim);
    color: var(--clr-accent-bright);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

#herohub-filter-overlay .keyword-chip .remove {
    cursor: pointer;
    opacity: 0.6;
    min-width: var(--touch-target-min);
    min-height: var(--touch-target-min);
    display: flex;
    align-items: center;
    justify-content: center;
}

#herohub-filter-overlay .keyword-chip .remove:hover {
    opacity: 1;
}

/* Affix Modal - HeroHub */
#herohub-affix-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    max-width: 500px;
    height: 70vh;
    background: var(--clr-surface);
    border: 2px solid var(--clr-accent-bright);
    z-index: 1100;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

#herohub-affix-modal .affix-search-bar {
    padding: 1rem;
    background: var(--clr-surface-dark);
}

#herohub-affix-modal .affix-search-bar input {
    width: 100%;
    background: var(--clr-bg);
    border: 1px solid var(--clr-border);
    color: var(--clr-text);
    padding: 0.6rem;
    border-radius: 4px;
    min-height: var(--touch-target-min);
}

#herohub-affix-modal .affix-tabs {
    display: flex;
    border-bottom: 1px solid var(--clr-border);
}

#herohub-affix-modal .affix-tab {
    flex: 1;
    padding: 0.75rem;
    text-align: center;
    cursor: pointer;
    font-size: 0.8rem;
    opacity: 0.6;
    min-height: var(--touch-target-min);
}

#herohub-affix-modal .affix-tab:hover {
    opacity: 0.8;
}

#herohub-affix-modal .affix-tab.active {
    opacity: 1;
    background: var(--clr-surface-light);
    border-bottom: 2px solid var(--clr-accent);
}

#herohub-affix-modal .affix-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
}

#herohub-affix-modal .affix-item {
    padding: 0.6rem;
    border-bottom: 1px solid var(--clr-white-faint);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    min-height: var(--touch-target-min);
}

#herohub-affix-modal .affix-item:hover {
    background: var(--clr-surface-light);
}

#herohub-affix-modal .text-dim-mini {
    font-size: 0.7rem;
    color: var(--clr-text-dim);
}

#herohub-affix-modal .btn-full-width {
    width: 100%;
    min-height: var(--touch-target-min);
}

/* ============================================
RESPONSIVE - Desktop (> 768px)
============================================ */

@media (min-width: 769px) {
    .herohub-layout {
        display: grid;
        grid-template-columns: 260px 1fr;
        grid-template-rows: auto auto 1fr;
        gap: 1rem;
        padding: 1rem;
        height: calc(100dvh - var(--header-height) - 2rem);
    }

    .herohub-layout .hero-selector {
        grid-row: 1 / -1;
        flex-direction: column;
        overflow-y: auto;
        overflow-x: hidden;
        border-right: 1px solid var(--clr-border);
        padding-right: 1rem;
    }

    .herohub-layout .hero-list {
        flex-direction: column;
        width: 100%;
    }

    .herohub-layout .hero-list-item {
        width: auto;
        flex-direction: row;
        align-items: center;
        text-align: left;
    }

    .herohub-layout .hero-portrait {
        width: 48px;
        height: 48px;
        margin-bottom: 0;
        margin-right: 0.5rem;
    }

    .herohub-layout .hero-info {
        text-align: left;
    }

    .herohub-layout .herohub-main {
        grid-column: 2;
        grid-row: 1 / -1;
        overflow-y: auto;
    }

    .herohub-layout .identity-card {
        position: sticky;
        top: 0;
        z-index: 10;
    }

    /* Equipment layout: side by side */
    .herohub-layout .equipment-layout {
        display: grid;
        grid-template-columns: 320px 1fr;
        gap: 1rem;
    }

    .herohub-layout .equipped-section {
        grid-column: 1;
    }

    .herohub-layout .inventory-section {
        grid-column: 2;
    }

    .herohub-layout .inventory-grid {
        max-height: none;
        overflow-y: visible;
    }
}

/* ============================================
TOUCH TARGETS (Mobile)
============================================ */

@media (max-width: 768px) {
    .herohub-layout .hero-list-item,
    .herohub-layout .equip-slot,
    .herohub-layout .btn-equip,
    .herohub-layout .btn-unequip,
    .herohub-layout .lock-toggle,
    .herohub-layout .btn-action,
    .herohub-layout .tab-btn,
    .herohub-layout .sort-dir-btn,
.herohub-layout .inventory-controls select,
#herohub-filter-overlay .filter-toggle,
#herohub-filter-overlay .btn-close,
#herohub-affix-modal .affix-tab,
#herohub-affix-modal .affix-item {
    min-height: var(--touch-target-min);
    min-width: var(--touch-target-min);
}

    /* Overlay full screen on mobile */
    #herohub-filter-overlay .filter-overlay-content {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    #herohub-affix-modal {
        width: 100%;
        height: 100%;
        max-width: none;
        transform: none;
        top: 0;
        left: 0;
        border-radius: 0;
    }
}
