.app-temp-page {
    min-height: 100vh;
    padding: 26px;
    background: #eef2f5;
}

.app-temp-panel {
    width: min(100%, 410px);
    min-height: calc(100vh - 52px);
    margin: 0 auto;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 14px 34px rgba(16, 24, 40, 0.1);
}

.app-temp-capacity-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.app-temp-capacity-heading h4 {
    margin: 0;
}

.app-temp-queue-toggle {
    margin: 0;
    color: var(--ink);
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.app-temp-queue-toggle .form-check-input:checked {
    border-color: var(--ink);
    background-color: var(--ink);
}

.app-temp-meter-heading {
    justify-content: space-between;
    gap: 16px;
}

.app-temp-meter-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.88rem;
}

.app-temp-meter-context {
    display: grid;
    gap: 3px;
    margin: -2px 0 7px;
    color: var(--muted);
    font-size: 0.75rem;
    line-height: 1.3;
}

.app-temp-meter-context strong {
    color: var(--ink);
    font-weight: 800;
}

.app-temp-percentage {
    color: var(--ink);
    font-weight: 500;
}

.app-temp-meter-context > strong {
    color: var(--substation-critical);
    font-weight: 800;
}

.app-temp-overflow {
    display: block;
}

.app-temp-queue-segment {
    position: absolute;
    top: 0;
    bottom: 0;
}

.app-temp-queue-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 9px;
    padding-top: 0;
}

.app-temp-queue-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--ink);
    font-size: 0.81rem;
    font-weight: 400;
    line-height: 1.35;
}

.app-temp-queue-count strong {
    font-weight: 800;
}

.app-temp-see-projects {
    min-width: 54px;
    border-color: #b8c2ce;
    color: #475467;
    font-size: 0.72rem;
    font-weight: 750;
}

.app-temp-devices-section {
    padding-top: 16px;
}

.app-temp-devices-list {
    padding: 4px 12px;
}

.app-temp-devices-list .substation-technical-row {
    min-height: 31px;
}

.app-temp-device-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.app-temp-device-pill-injection {
    background: color-mix(in srgb, #0ea5e9 12%, white);
    color: #0369a1;
}

.app-temp-device-pill-yes {
    background: color-mix(in srgb, var(--substation-available) 14%, white);
    color: var(--substation-available);
}

.app-temp-device-pill-no {
    background: var(--substation-track);
    color: var(--substation-neutral);
}

@media (max-width: 560px) {
    .app-temp-page {
        padding: 0;
    }

    .app-temp-panel {
        width: 100%;
        min-height: 100vh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
}
