/**
 * Resources window. Load order is significant: keep this file's <link> position in index.html.
 */

.modal-panel--resources {
    max-width: min(480px, 92vw);
}

.resource-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
    width: 100%;
    padding-right: 6px;
}

.resource-section__title {
    margin: 14px 0 2px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.resource-section__title:first-child {
    margin-top: 0;
}

.resource-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    background: var(--well);
    border: 2px solid var(--edge);
}

.resource-row__icon {
    width: 28px;
    height: 28px;
    flex: none;
}

.resource-row__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.resource-row__name {
    flex: 1;
    font-size: 15px;
    color: var(--text);
}

.resource-row__amount {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.resource-row__rate {
    min-width: 64px;
    text-align: right;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    color: var(--text-dim);
}

.resource-row__rate.is-positive {
    color: var(--ok);
}

.resource-row__rate.is-neutral {
    color: var(--text-dim);
}

.resource-row__rate.is-negative {
    color: var(--danger);
}

.resource-empty {
    color: var(--text-muted);
    opacity: 0.8;
}

/* A terminal session notice has no close control and keeps the board behind it. */
.modal-panel--session {
    max-width: min(480px, 92vw);
    text-align: center;
}

.session-ended {
    font-size: 20px;
    color: var(--text);
}
