/* ── Inventory action modal form components ── */
.lm-qty-row,
.lm-price-row {
    display: flex;
    align-items: stretch;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}
.lm-input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--font-size-lg);
    font-family: var(--font-body);
    outline: none;
}
.lm-input::placeholder {
    color: rgba(255, 255, 255, 0.28);
}
.lm-qty-btns {
    display: flex;
    flex-shrink: 0;
}
.lm-qty-btns button {
    min-width: 42px;
    padding: 0 10px;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(200, 212, 224, 0.7);
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.1s;
}
.lm-qty-btns button:hover {
    background: rgba(255, 255, 255, 0.09);
}
.lm-coin-icon {
    width: 20px;
    height: 20px;
    margin: auto 0 auto 10px;
    object-fit: contain;
}
.lm-each-label {
    padding: 0 12px;
    align-self: center;
    font-size: var(--font-size-base);
    color: rgba(255, 255, 255, 0.35);
}
.lm-storage-btns {
    display: flex;
    gap: var(--space-xs);
}
.lm-storage-btn {
    flex: 1;
    padding: 9px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.25);
    color: rgba(200, 212, 224, 0.55);
    font-size: var(--font-size-sm);
    font-family: var(--font-body);
    cursor: pointer;
    transition:
        background 0.15s,
        border-color 0.15s,
        color 0.15s;
    text-align: center;
}
.lm-storage-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(200, 212, 224, 0.8);
}
.lm-storage-btn--active {
    border-color: rgba(185, 152, 100, 0.45);
    background: rgba(185, 152, 100, 0.1);
    color: rgba(220, 196, 150, 0.9);
}
.lm-storage-capacity {
    margin-top: 6px;
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.35);
}
.lm-storage-capacity--warn {
    color: #c87060;
}
.lm-total-row {
    display: flex;
    gap: var(--space-sm);
    padding: 10px 20px 0;
}
.lm-total-chip {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    font-size: var(--font-size-base);
}
.lm-total-chip-label {
    color: rgba(255, 255, 255, 0.35);
    margin-right: 2px;
}
.lm-total-chip-value {
    color: rgba(200, 212, 224, 0.75);
    font-weight: 600;
}
.lm-market-info {
    padding: 10px 20px 0;
}
.lm-market-item-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 3px 3px 0 0;
    border-bottom: none;
}
.lm-market-item-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}
.lm-market-item-icon .item-icon__img {
    width: 30px;
    height: 30px;
}
.lm-market-item-name {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}
.lm-market-stats {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0 0 3px 3px;
}
.lm-market-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: var(--font-size-base);
}
.lm-market-stat-row:first-child {
    border-top: none;
}
.lm-market-stat-label {
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}
.lm-market-stat-value {
    color: rgba(200, 212, 224, 0.8);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-weight: 500;
}
.lm-market-stat-value img,
.lm-market-stat-label img {
    width: 13px;
    height: 13px;
    object-fit: contain;
}
.lm-receive-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 14px;
    margin: 14px 20px 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    font-size: var(--font-size-base);
    color: rgba(255, 255, 255, 0.5);
}
.lm-receive-row .inv-gold-inline {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-weight: 700;
    color: rgba(197, 160, 89, 0.95);
    font-size: var(--font-size-lg);
}
.lm-receive-row .inv-gold-inline img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}
.lm-limit-cta {
    display: block;
    color: rgba(197, 160, 89, 0.8);
    margin-top: 3px;
}
/* ── Skill panel info tip ─────────────────────────────────────────── */
.svc-info-tip {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: 12px 14px;
    margin-top: 20px;
    background: rgba(197, 160, 89, 0.02);
    border: 1px solid rgba(197, 160, 89, 0.1);
    border-radius: 4px;
    position: relative;
}
.svc-info-tip-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.09);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}
.svc-info-tip-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3px;
}
.svc-info-tip-text {
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.4;
}
/* Quick-set row inside the shared .transfer-panel */
.inv-xfer-quick {
    display: flex;
    gap: var(--space-xs);
    margin-bottom: 12px;
}
.inv-xfer-quick-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.65);
    border-radius: 3px;
    font-size: var(--font-size-xs);
    padding: 4px 6px;
    cursor: pointer;
    transition: background 0.12s;
}
.inv-xfer-quick-btn:hover {
    background: rgba(197, 160, 89, 0.1);
    color: var(--gold);
    border-color: rgba(197, 160, 89, 0.3);
}

/* City-unavailable notice inside the svc-section */
.inv-undocked-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 8px 10px;
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    font-size: var(--font-size-sm);
    line-height: 1.4;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 4px;
}

.inv-undocked-notice img {
    flex-shrink: 0;
    display: block;
}
.inv-storage--readonly {
    opacity: 0.65;
    pointer-events: none; /* blocks drops onto this grid when not docked */
}
.inv-storage--readonly .sp-hold-slot {
    pointer-events: auto; /* allow clicking items to view details */
}

/* Item detail modal - row 1: actions; row 2: Close centered */
.inv-detail-modal__footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: 12px 16px;
    border-top: 1px solid rgba(197, 160, 89, 0.14);
    flex-shrink: 0;
}

.inv-detail-modal__actions-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: center;
    gap: 6px;
    width: 100%;
    max-width: 100%;
}

.inv-detail-modal__actions-row .btn {
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
    padding: 0.5rem 0.25rem;
    font-size: var(--font-size-xs);
    letter-spacing: 0.04em;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inv-detail-modal__close {
    min-width: 0;
    padding: 0.6rem 0.4rem;
}

@media (min-width: 1024px) {
    .inv-detail-modal__footer {
        padding: 14px 24px;
    }

    .inv-detail-modal__actions-row {
        gap: var(--space-sm);
    }

    .inv-detail-modal__actions-row .btn {
        padding: 0.65rem 0.5rem;
        font-size: var(--font-size-sm);
        letter-spacing: 0.06em;
    }
}
