#green-inventory[hidden], #green-inv-input[hidden] { display: none; }

#green-inventory {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: grid;
    place-items: center;
    background: rgba(9, 12, 16, .63);
    color: #eef2f4;
    font: 15px/1.45 Arial, sans-serif;
}

.green-inv-card {
    width: min(530px, 90vw);
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    box-sizing: border-box;
    border: 1px solid #3c4650;
    border-radius: 12px;
    background: #1b2229;
    box-shadow: 0 18px 55px rgba(0, 0, 0, .55);
}

#green-inv-title { margin: 0; font-size: 21px; overflow-wrap: anywhere; }
#green-inv-text { margin: 0; color: #c1cad3; white-space: pre-line; overflow: auto; }
#green-inv-text:empty, #green-inv-items:empty { display: none; }
#green-inv-items { min-height: 0; overflow-y: auto; display: grid; gap: 5px; }

#green-inventory button, #green-inv-input {
    padding: 9px 12px;
    border: 1px solid #43505d;
    border-radius: 6px;
    background: #28323d;
    color: #fff;
    font: inherit;
}

#green-inventory button { cursor: pointer; }
#green-inventory button:hover, #green-inventory button:focus-visible { border-color: #85ddba; }
#green-inventory button:disabled { opacity: .5; cursor: default; }
#green-inventory .green-inv-row { text-align: left; display: flex; justify-content: space-between; gap: 14px; }
.green-inv-row span { color: #a9e5c9; font-variant-numeric: tabular-nums; }
#green-inventory .green-inv-row[aria-pressed="true"] { border-color: #8be5bd; background: #30483f; }
.green-inv-actions { display: flex; justify-content: flex-end; gap: 8px; }
#green-inv-confirm:not(:disabled) { color: #102b21; background: #8be5bd; border-color: #8be5bd; }
