.account-extension-original-hidden {
    display: none !important;
}

.account-extension-main {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    max-width: 100%;
    min-height: 100vh;
    padding-top: 3.25rem;
    background: #f0f3f8;
}

.account-extension-wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.75rem;
}

.account-extension-toolbar,
.account-section-heading,
.account-product-card-head,
.account-product-meta,
.account-product-actions,
.account-card-row,
.account-status-banner {
    display: flex;
    align-items: center;
}

.account-extension-toolbar {
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.account-extension-toolbar h2 {
    margin: 0 0 .35rem;
    color: #172033;
    font-size: 1.55rem;
    font-weight: 600;
    line-height: 1.25;
}

.account-extension-toolbar p,
.account-section-heading h3,
.account-section-heading p {
    margin: 0;
}

.account-extension-toolbar p,
.account-muted {
    color: #778196;
    font-size: .85rem;
}

.account-section,
.account-order-panel {
    margin-bottom: 1.25rem;
    border: 1px solid #e4e8ef;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(30, 42, 65, .04);
}

.account-section-heading {
    min-height: 3.25rem;
    justify-content: space-between;
    gap: .75rem;
    padding: .75rem 1rem;
    border-bottom: 1px solid #edf0f4;
}

.account-section-heading h3 {
    color: #283044;
    font-size: 1rem;
    font-weight: 600;
}

.account-product-detail {
    display: grid;
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
    gap: 1.25rem;
    padding: 1rem;
}

.product-detail-main {
    display: grid;
    gap: 1rem;
}

.product-detail-image img {
    display: block;
    width: 100%;
    max-height: 340px;
    object-fit: cover;
    border: 1px solid #e2e7ee;
    border-radius: 6px;
    background: #fff;
}

.product-detail-summary h3 {
    margin: 0 0 .45rem;
    color: #20283a;
    font-size: 1.25rem;
    line-height: 1.35;
}

.product-detail-summary p {
    margin: 0 0 .75rem;
    color: #5e6a80;
    line-height: 1.6;
}

.product-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: .9rem;
}

.product-detail-tags span {
    padding: .22rem .55rem;
    border: 1px solid #d9e3f0;
    border-radius: 999px;
    background: #f5f8fc;
    color: #40506a;
    font-size: .76rem;
}

.product-detail-price {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1rem;
}

.product-detail-price strong {
    color: #d9480f;
    font-size: 1.45rem;
}

.product-detail-price span {
    color: #687288;
    font-size: .84rem;
}

.product-detail-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
}

.product-detail-actions label {
    display: flex;
    align-items: center;
    gap: .45rem;
    color: #4a5568;
    font-size: .88rem;
}

.product-detail-actions input[type="number"] {
    width: 84px;
    padding: .45rem .55rem;
    border: 1px solid #d8e0ea;
    border-radius: 5px;
    background: #fff;
    color: #20283a;
}

.product-detail-content {
    padding: 0 1rem 1rem;
}

.product-detail-content h4 {
    margin: 0 0 .65rem;
    color: #20283a;
    font-size: 1rem;
}

.product-detail-content > div {
    padding: .9rem 1rem;
    border: 1px solid #e2e7ee;
    border-radius: 6px;
    background: #fff;
    color: #42506a;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.product-detail-content > div p {
    margin: 0 0 .75rem;
}

.product-detail-content > div p:last-child {
    margin-bottom: 0;
}

.product-detail-content > div a {
    color: #c53520;
    text-decoration: underline;
}

.product-detail-content > div a:hover {
    color: #b02e1b;
}

.product-detail-content > div img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.product-detail-content > div ul,
.product-detail-content > div ol {
    margin: 0 0 .75rem 1.2rem;
    padding: 0;
}

.product-detail-content > div li {
    margin-bottom: .3rem;
}

.product-detail-content > div h1,
.product-detail-content > div h2,
.product-detail-content > div h3,
.product-detail-content > div h5,
.product-detail-content > div h6 {
    margin: .9rem 0 .5rem;
    color: #20283a;
    line-height: 1.4;
}

.product-detail-content > div blockquote {
    margin: .75rem 0;
    padding: .5rem .9rem;
    border-left: 3px solid #cdd7e4;
    background: #f7f9fc;
    color: #5e6a80;
}

.product-detail-content > div pre {
    margin: .75rem 0;
    padding: .75rem .9rem;
    border-radius: 5px;
    background: #f5f7fa;
    overflow-x: auto;
    font-family: Consolas, Menlo, monospace;
    font-size: .84rem;
}

.product-detail-content > div code {
    padding: .1rem .35rem;
    border-radius: 3px;
    background: #eef2f7;
    font-family: Consolas, Menlo, monospace;
    font-size: .84rem;
}

.product-detail-content > div pre code {
    padding: 0;
    background: none;
}

.product-detail-content > div table {
    width: 100%;
    margin: .75rem 0;
    border-collapse: collapse;
}

.product-detail-content > div th,
.product-detail-content > div td {
    padding: .45rem .6rem;
    border: 1px solid #e2e7ee;
    text-align: left;
}

.product-detail-content > div th {
    background: #f5f7fa;
    color: #20283a;
}

.product-detail-content > div hr {
    margin: 1rem 0;
    border: none;
    border-top: 1px solid #e2e7ee;
}

@media (max-width: 760px) {
    .account-product-detail {
        grid-template-columns: 1fr;
        padding: .9rem .85rem;
    }

    .product-detail-content {
        padding: 0 .85rem .9rem;
    }
}

.card-shop-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    padding: 1rem 1rem 0;
}

.card-shop-tab {
    padding: .42rem .95rem;
    border: 1px solid #d8e0ea;
    border-radius: 999px;
    background: #fff;
    color: #4a5568;
    font-size: .86rem;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.card-shop-tab:hover {
    border-color: #f3c9c2;
    color: #c53520;
}

.card-shop-tab.active {
    border-color: #c53520;
    background: #c53520;
    color: #fff;
}

.account-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.account-product-card {
    display: flex;
    min-width: 0;
    min-height: 230px;
    flex-direction: column;
    padding: 1rem;
    border: 1px solid #e2e7ee;
    border-top: 3px solid #c53520;
    border-radius: 6px;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.account-product-card:hover {
    border-color: #f3c9c2;
    box-shadow: 0 8px 22px rgba(42, 93, 154, .1);
    transform: translateY(-2px);
}

.account-product-card-head {
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
}

.account-product-card h4 {
    min-width: 0;
    margin: 0;
    color: #20283a;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.account-product-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: .9rem;
    border: 1px solid #edf0f4;
    border-radius: 4px;
    background: #f7f9fc;
    object-fit: cover;
}

.account-price {
    flex: none;
    color: #d04a3a;
    font-size: 1.08rem;
    font-weight: 700;
    white-space: nowrap;
}

.account-product-description {
    display: -webkit-box;
    min-height: 3.9em;
    margin: .8rem 0;
    overflow: hidden;
    color: #687288;
    font-size: .86rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.account-product-meta {
    justify-content: space-between;
    gap: .75rem;
    margin-top: auto;
    padding-top: .75rem;
    color: #687288;
    font-size: .8rem;
}

.account-product-actions {
    justify-content: space-between;
    gap: .75rem;
    margin-top: .85rem;
}

.account-product-actions label {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin: 0;
    color: #687288;
    font-size: .82rem;
}

.account-product-actions input {
    width: 4.3rem;
    height: 2.15rem;
    padding: .25rem .45rem;
    border: 1px solid #ccd4df;
    border-radius: 4px;
    color: #283044;
    background: #fff;
}

.account-btn {
    min-height: 2.15rem;
    padding: .42rem .85rem;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: .84rem;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, opacity .15s ease;
}

.account-btn:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.account-btn-primary {
    color: #fff;
    border-color: #b02e1b;
    background: #b02e1b;
}

.account-btn-primary:hover:not(:disabled) {
    border-color: #a82a18;
    background: #a82a18;
}

.account-btn-light {
    color: #38445a;
    border-color: #d2d9e3;
    background: #fff;
}

.account-btn-light:hover:not(:disabled) {
    border-color: #9eb0c6;
    background: #f7f9fc;
}

.account-btn-danger {
    color: #b4342a;
    border-color: #efc5c1;
    background: #fff5f4;
}

.account-btn-danger:hover:not(:disabled) {
    border-color: #d99690;
    background: #ffebe9;
}

.account-btn-small {
    min-height: 1.8rem;
    padding: .28rem .6rem;
    font-size: .78rem;
}

.account-link-button {
    padding: .2rem;
    border: 0;
    color: #b02e1b;
    background: transparent;
    font-size: .82rem;
    cursor: pointer;
}

.account-link-button:hover {
    color: #9c2716;
}

.account-notice {
    margin: 0 0 1rem;
    padding: .7rem .85rem;
    border: 1px solid #ffd4cf;
    border-radius: 4px;
    color: #a72d23;
    background: #fff4f2;
    font-size: .85rem;
}

.account-notice.success {
    border-color: #bde7cf;
    color: #176b3b;
    background: #effbf4;
}

.account-loading,
.account-empty {
    grid-column: 1 / -1;
    padding: 2.2rem 1rem;
    color: #8490a3;
    text-align: center;
}

.account-order-list {
    width: 100%;
}

.account-order-row {
    display: grid;
    grid-template-columns: minmax(180px, 2fr) minmax(60px, .45fr) minmax(95px, .7fr) minmax(80px, .6fr) 52px;
    align-items: center;
    gap: .85rem;
    min-height: 4.2rem;
    padding: .75rem 1rem;
    border-bottom: 1px solid #edf0f4;
    color: #475268;
    font-size: .84rem;
}

.account-order-row:last-child {
    border-bottom: 0;
}

.account-order-row strong {
    display: block;
    color: #253047;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.account-order-amount strong,
.account-order-amount span {
    display: block;
}

.account-order-amount span {
    margin-top: .18rem;
    white-space: nowrap;
}

.account-status {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    min-height: 1.6rem;
    padding: .18rem .52rem;
    border-radius: 3px;
    color: #8a5a05;
    background: #fff3cd;
    font-size: .76rem;
    white-space: nowrap;
}

.account-status.is-success,
.account-status-banner.is-success {
    color: #176b3b;
    background: #eaf8f0;
}

.account-status.is-info,
.account-status-banner.is-info {
    color: #a82a18;
    background: #e9f5fb;
}

.account-status.is-muted,
.account-status-banner.is-muted {
    color: #667085;
    background: #eef1f5;
}

.account-status.is-danger,
.account-status-banner.is-danger {
    color: #a12d2d;
    background: #fff0f0;
}

.account-status-banner {
    align-items: flex-start;
    flex-direction: column;
    gap: .2rem;
    margin-bottom: 1rem;
    padding: .9rem 1rem;
    border-radius: 5px;
    color: #8a5a05;
    background: #fff6da;
}

.account-status-banner strong {
    font-size: .95rem;
}

.account-status-banner span {
    font-size: .82rem;
    opacity: .85;
}

.account-order-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: #edf0f4;
}

.account-order-detail-grid > div {
    display: flex;
    min-width: 0;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem 1rem;
    background: #fff;
}

.account-order-detail-grid span {
    color: #7b8598;
    font-size: .82rem;
}

.account-order-detail-grid strong {
    min-width: 0;
    color: #283044;
    font-size: .84rem;
    font-weight: 600;
    overflow-wrap: anywhere;
    text-align: right;
}

.account-payment-list {
    padding: .35rem 1rem;
}

.account-payment-option {
    display: flex;
    align-items: center;
    gap: .7rem;
    min-height: 3.2rem;
    margin: 0;
    border-bottom: 1px solid #edf0f4;
    color: #334057;
    cursor: pointer;
}

.account-payment-option:last-child {
    border-bottom: 0;
}

.account-payment-option span {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: .15rem;
}

.account-payment-option span strong {
    color: #334057;
    font-weight: 600;
}

.account-payment-option span small {
    color: #7a8599;
    font-size: .75rem;
}

.account-payment-option.is-disabled {
    cursor: not-allowed;
    opacity: .5;
}

.account-payment-option img {
    width: auto;
    max-width: 100px;
    height: 26px;
    object-fit: contain;
}

.account-order-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .65rem;
    padding: 0 1rem 1rem;
}

.account-card-list {
    padding: .75rem 1rem;
}

.account-order-failure {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin-bottom: 1rem;
    padding: .8rem 1rem;
    border-left: 3px solid #d84a43;
    color: #7d2d29;
    background: #fff5f4;
    font-size: .84rem;
}

.account-order-failure strong {
    flex: none;
}

.account-card-row {
    justify-content: space-between;
    gap: .75rem;
    padding: .65rem .75rem;
    border: 1px solid #e1e6ed;
    border-radius: 4px;
    background: #f8fafc;
}

.account-card-row + .account-card-row {
    margin-top: .55rem;
}

.account-card-row code {
    min-width: 0;
    color: #263248;
    font-family: Consolas, Menlo, monospace;
    font-size: .82rem;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.account-credential-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    padding: 1rem;
}

.account-credential-grid > div {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    padding: .65rem .75rem;
    border: 1px solid #e2e7ee;
    border-radius: 5px;
    background: #f8fafc;
}

.account-credential-grid span {
    color: #687288;
    font-size: .76rem;
}

.account-credential-grid strong {
    color: #20283a;
    font-family: Consolas, Menlo, monospace;
    font-size: .88rem;
    overflow-wrap: anywhere;
}

.account-pay-dialog > .account-section-heading,
.account-pay-dialog > .account-order-actions {
    padding-left: 1rem;
    padding-right: 1rem;
}

.account-pay-dialog > .account-credential-grid {
    padding-top: 0;
}

@media (max-width: 640px) {
    .account-credential-grid {
        grid-template-columns: 1fr;
    }
}

.account-pay-modal {
    position: fixed;
    z-index: 1060;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(20, 28, 42, .55);
}

.account-pay-dialog {
    width: min(92vw, 420px);
    max-height: 88vh;
    overflow: auto;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 18px 55px rgba(20, 28, 42, .25);
}

.account-pay-dialog > .account-muted {
    display: block;
    padding: 0 1rem 1rem;
    text-align: center;
}

.account-pay-image {
    display: block;
    width: min(72vw, 280px);
    height: min(72vw, 280px);
    margin: 1.25rem auto;
    object-fit: contain;
}

.account-pay-qr-wrap {
    width: min(72vw, 280px);
    margin: 1.25rem auto;
}

.account-pay-qr {
    display: block;
    width: 100%;
    height: auto;
}

.account-pay-data {
    margin: 1rem;
    padding: .85rem;
    overflow: auto;
    border-radius: 4px;
    color: #283044;
    background: #f4f6f9;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.account-pay-open {
    display: block;
    width: calc(100% - 2rem);
    margin: 1rem;
    text-align: center;
}

@media (max-width: 900px) {
    .account-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .account-order-row {
        grid-template-columns: minmax(150px, 1.5fr) 55px minmax(90px, .7fr) 80px 48px;
    }
}

@media (max-width: 640px) {
    .account-extension-wrap {
        padding: 1rem .85rem;
    }

    .account-extension-toolbar {
        align-items: flex-start;
    }

    .account-extension-toolbar h2 {
        font-size: 1.28rem;
    }

    .card-shop-tabs {
        padding: .85rem .85rem 0;
    }

    .account-product-grid,
    .account-order-detail-grid {
        grid-template-columns: 1fr;
    }

    .account-product-card {
        min-height: 0;
    }

    .account-order-row {
        grid-template-columns: 1fr auto;
        gap: .45rem .75rem;
        padding: .85rem;
    }

    .account-order-row > :nth-child(2),
    .account-order-row > :nth-child(3) {
        color: #687288;
        font-size: .78rem;
    }

    .account-order-row > :nth-child(4) {
        grid-column: 1;
    }

    .account-order-row > :nth-child(5) {
        grid-column: 2;
        grid-row: 1 / span 3;
    }

    .account-order-detail-grid > div {
        padding: .8rem .85rem;
    }

    .account-card-row {
        align-items: stretch;
        flex-direction: column;
    }

    .account-card-row .account-btn {
        align-self: flex-end;
    }
}

.registration-extension {
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.registration-extension-card {
    width: min(100%, 450px);
    padding: 2rem;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, .08);
}

.registration-extension-brand {
    margin-bottom: 1.5rem;
    text-align: center;
}

.registration-extension-brand img {
    max-width: 180px;
    max-height: 72px;
}

.registration-extension-brand strong {
    color: #343a40;
    font-size: 1.5rem;
}

.registration-extension-brand p {
    margin: .65rem 0 0;
    color: #687288;
    font-size: .875rem;
}

.registration-extension-notice {
    margin-bottom: 1rem;
    padding: .7rem .85rem;
    border-radius: 4px;
    background: #fff0f0;
    color: #b42318;
    font-size: .875rem;
}

.registration-extension-notice.info {
    background: #eef6ff;
    color: #a82a18;
}

.registration-extension-notice.success {
    background: #edf9f0;
    color: #18794e;
}

.registration-invite-group {
    margin-bottom: .85rem;
}

.registration-invite-status {
    min-height: 1.25rem;
    padding: .35rem .15rem 0;
    font-size: .8rem;
    line-height: 1.4;
}

.registration-invite-status.checking {
    color: #52677d;
}

.registration-invite-status.valid {
    color: #18794e;
}

.registration-invite-status.invalid,
.registration-invite-status.error {
    color: #b42318;
}

.registration-rules {
    margin: 0 0 1rem;
    padding: .8rem 0;
    border-top: 1px solid #e4e8ee;
    border-bottom: 1px solid #e4e8ee;
    color: #536273;
    font-size: .78rem;
    line-height: 1.55;
}

.registration-rules > strong {
    display: block;
    margin-bottom: .5rem;
    color: #343a40;
    font-size: .875rem;
}

.registration-rules > div {
    display: grid;
    gap: .15rem;
    padding: .4rem 0;
}

.registration-rules b {
    color: #343a40;
    font-weight: 600;
}

.registration-rules span {
    overflow-wrap: anywhere;
}

.registration-rule-note {
    margin: 0 0 .4rem;
    color: #a82a18;
}

.registration-plan-details {
    margin: -.25rem 0 1rem;
    padding: .75rem 0 .15rem;
    border-top: 1px solid #e4e8ee;
    color: #536273;
    font-size: .78rem;
    line-height: 1.5;
}

.registration-plan-details > strong {
    display: block;
    margin-bottom: .45rem;
    color: #343a40;
    font-size: .9rem;
}

.registration-plan-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem .7rem;
    margin-bottom: .5rem;
    color: #a82a18;
}

.registration-plan-details ul {
    display: grid;
    gap: .25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.registration-plan-details li {
    display: grid;
    grid-template-columns: 1rem minmax(0, 1fr);
    gap: .25rem;
}

.registration-plan-details li > span {
    color: #18794e;
    font-weight: 700;
}

.registration-plan-details li.unsupported > span {
    color: #b42318;
}

.registration-plan-details p {
    margin: 0;
}

.registration-email-code {
    display: flex;
    gap: .5rem;
}

.registration-email-code input {
    min-width: 0;
    flex: 1;
}

.registration-recaptcha {
    display: flex;
    justify-content: center;
    min-height: 78px;
    margin-bottom: 1rem;
}

.registration-tos {
    margin-bottom: 1rem;
    color: #687288;
    font-size: .8rem;
}

.registration-tos label {
    display: flex;
    align-items: flex-start;
    gap: .35rem;
}

.registration-tos a {
    color: #0665d0;
}

.registration-extension-footer {
    margin-top: 1rem;
    text-align: center;
    font-size: .875rem;
}

.node-health-wrap {
    padding-top: 1.75rem;
}

.node-health-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin: 1rem;
    border: 1px solid #e6eaf0;
    background: #e6eaf0;
}

.node-health-summary > div {
    display: flex;
    min-height: 4.25rem;
    flex-direction: column;
    justify-content: center;
    gap: .2rem;
    padding: .7rem .85rem;
    background: #fff;
}

.node-health-summary span,
.node-health-metric span {
    color: #7a8599;
    font-size: .76rem;
}

.node-health-summary strong {
    color: #28344a;
    font-size: 1.2rem;
    font-weight: 600;
}

.node-health-summary .is-online-text {
    color: #18794e;
}

.node-health-summary .is-offline-text {
    color: #b42318;
}

.node-health-history-head {
    display: grid;
    grid-template-columns: minmax(170px, 1.45fr) 88px 90px 170px minmax(240px, 2fr);
    align-items: center;
    gap: .75rem;
    padding: .65rem 1rem;
    border-top: 1px solid #edf0f4;
    border-bottom: 1px solid #edf0f4;
    color: #7a8599;
    background: #fafbfc;
    font-size: .76rem;
}

.node-health-cell-labels {
    display: grid;
    grid-template-columns: minmax(170px, 1.45fr) 88px 90px 170px minmax(240px, 2fr);
    align-items: center;
    gap: .75rem;
    margin: .55rem 1rem -.2rem;
    color: #9099a8;
    font-size: .68rem;
}

.node-health-cell-labels-track {
    display: flex;
    min-width: 0;
    grid-column: 5;
    gap: 2px;
}

.node-health-cell-labels-track span {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.node-health-row {
    display: grid;
    grid-template-columns: minmax(170px, 1.45fr) 88px 90px 170px minmax(240px, 2fr);
    align-items: center;
    gap: .75rem;
    min-height: 4.6rem;
    padding: .75rem 1rem;
    border-bottom: 1px solid #edf0f4;
}

.node-health-row:last-child {
    border-bottom: 0;
}

.node-health-name,
.node-health-metric {
    min-width: 0;
}

.node-health-name strong,
.node-health-metric strong {
    display: block;
    overflow: hidden;
    color: #2b364c;
    font-size: .84rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.node-health-name span {
    display: block;
    margin-top: .18rem;
    color: #8a94a6;
    font-size: .72rem;
}

.node-health-status {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: .35rem;
    min-height: 1.55rem;
    padding: .18rem .5rem;
    border-radius: 3px;
    font-size: .75rem;
    white-space: nowrap;
}

.node-health-status i {
    width: .42rem;
    height: .42rem;
    border-radius: 50%;
    background: currentColor;
}

.node-health-status.is-online {
    color: #18794e;
    background: #eaf8f0;
}

.node-health-status.is-offline {
    color: #b42318;
    background: #fff0f0;
}

.node-health-status.is-unknown {
    color: #667085;
    background: #eef1f5;
}

.node-health-legend {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .45rem .75rem;
    color: #667085;
    font-size: .72rem;
}

.node-health-legend-title {
    color: #7a8599;
}

.node-health-legend-item {
    display: inline-flex;
    align-items: center;
    gap: .28rem;
    white-space: nowrap;
}

.node-health-legend-item i {
    width: .42rem;
    height: .42rem;
    border-radius: 50%;
}

.node-health-legend-item.is-up i {
    background: #36a269;
}

.node-health-legend-item.is-slow i {
    background: #e3a93a;
}

.node-health-legend-item.is-down i {
    background: #d75b52;
}

.node-health-legend-item.is-agent i {
    background: #8975c7;
}

.node-health-metric strong {
    margin-top: .2rem;
    font-size: .78rem;
}

.node-health-error {
    display: block;
    margin-top: .2rem;
    overflow: hidden;
    color: #b42318;
    font-size: .7rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.node-health-cells {
    display: flex;
    min-width: 0;
    gap: 2px;
}

.node-health-cell {
    display: block;
    min-width: 8px;
    height: 1.1rem;
    flex: 1;
    border-radius: 2px;
    background: #edf0f4;
}

.node-health-cell.is-up {
    background: #36a269;
}

.node-health-cell.is-slow {
    background: #e3a93a;
}

.node-health-cell.is-down {
    background: #d75b52;
}

.node-health-cell.is-agent {
    background: #8975c7;
}

.node-health-cell.is-empty {
    background: #e7ebf0;
}

.node-health-no-data {
    color: #9aa3b2;
    font-size: .75rem;
}

@media (max-width: 900px) {
    .node-health-history-head,
    .node-health-cell-labels,
    .node-health-row {
        grid-template-columns: minmax(150px, 1.4fr) 78px 80px 145px minmax(180px, 2fr);
        gap: .55rem;
    }

    .node-health-cell-labels-track {
        grid-column: 5;
    }
}

@media (max-width: 640px) {
    .node-health-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .node-health-history-head {
        display: none;
    }

    .node-health-cell-labels {
        display: none;
    }

    .node-health-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: .5rem .75rem;
        padding: .85rem;
    }

    .node-health-row > .node-health-status {
        grid-column: 2;
        grid-row: 1;
    }

    .node-health-row > .node-health-metric {
        grid-column: 1 / -1;
    }

    .node-health-row > .node-health-history {
        grid-column: 1 / -1;
    }
}
