.tr-service-status {
    --tr-service-status-bg: #0b6b3a;
    --tr-service-status-fg: #fff;
    --tr-service-status-accent: #baf5d2;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 0;
    color: var(--tr-service-status-fg);
    background: var(--tr-service-status-bg);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.tr-service-status[hidden] {
    display: none !important;
}

.tr-service-status--yellow {
    --tr-service-status-bg: #f4c430;
    --tr-service-status-fg: #18212b;
    --tr-service-status-accent: #5e4500;
}

.tr-service-status--red {
    --tr-service-status-bg: #bd2f2f;
    --tr-service-status-fg: #fff;
    --tr-service-status-accent: #ffd1d1;
}

.tr-service-status__inner {
    display: flex;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: min(1180px, calc(100% - 32px));
    min-height: 44px;
    margin: 0 auto;
    padding: 10px 0;
}

.tr-service-status__label {
    flex: 0 0 auto;
    color: var(--tr-service-status-accent);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tr-service-status__message {
    margin: 0;
    color: var(--tr-service-status-fg);
    font-size: 0.9rem;
    font-weight: 650;
    line-height: 1.45;
    white-space: pre-line;
}

body.tr-native-app .tr-service-status__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
    width: 100%;
    min-height: 0;
    padding: 9px 14px;
}

body.tr-native-app .tr-service-status__label {
    font-size: 0.61rem;
}

body.tr-native-app .tr-service-status__message {
    font-size: 0.76rem;
}

@media (max-width: 640px) {
    .tr-service-status__inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
        width: calc(100% - 28px);
        padding: 9px 0;
    }

    .tr-service-status__message {
        font-size: 0.82rem;
    }
}

.tr-service-status-admin-card {
    max-width: 980px;
    margin-top: 20px;
    padding: 20px 24px;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    background: #fff;
}

.tr-service-status-admin-card .form-table th {
    width: 190px;
}

.tr-service-status-clear-form {
    margin-top: 2px;
}

.tr-service-status-admin-legend {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    max-width: 980px;
    margin-top: 18px;
}

.tr-service-status-admin-legend > div {
    display: grid;
    grid-template-columns: 12px auto 1fr;
    align-items: center;
    gap: 8px;
    padding: 11px 13px;
    border: 1px solid #dcdcde;
    border-radius: 7px;
    background: #fff;
}

.tr-service-status-admin-legend > div span:last-child {
    color: #646970;
    font-size: 12px;
}

.tr-service-status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.tr-service-status-dot--green { background: #0b6b3a; }
.tr-service-status-dot--yellow { background: #f4c430; }
.tr-service-status-dot--red { background: #bd2f2f; }
.tr-service-status-dot--none { background: #a7adb3; }
