/* Native live-server panel rendered by [fivem](join-code "Server name"). */
.markdown-body .markdown-fivem {
    --fivem-line: color-mix(in srgb, var(--theme-border) 78%, transparent);
    position: relative;
    margin: 1.35rem 0;
    overflow: hidden;
    border: 1px solid var(--fivem-line);
    border-radius: 11px;
    background:
        radial-gradient(circle at 0 0, color-mix(in srgb, var(--theme-accent) 7%, transparent), transparent 35%),
        color-mix(in srgb, var(--theme-surface-soft) 68%, var(--theme-surface));
    color: var(--theme-text);
    font-family: var(--font-ui, var(--font-body));
    box-shadow: 0 16px 42px rgba(3, 9, 22, 0.1);
}

.markdown-body .markdown-fivem::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 2px;
    background: linear-gradient(180deg, var(--theme-accent), color-mix(in srgb, var(--theme-accent) 20%, transparent) 72%, transparent);
}

.markdown-body .markdown-fivem__header {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.72rem;
    min-height: 66px;
    padding: 0.78rem 0.9rem 0.78rem 1rem;
    border-bottom: 1px solid var(--fivem-line);
}

.markdown-body .markdown-fivem__mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid color-mix(in srgb, var(--theme-accent) 36%, var(--theme-border));
    border-radius: 9px;
    background: color-mix(in srgb, var(--theme-accent) 9%, transparent);
    color: var(--theme-accent);
}

.markdown-body .markdown-fivem__mark svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.markdown-body .markdown-fivem__heading {
    display: grid;
    gap: 0.12rem;
    min-width: 0;
}

.markdown-body .markdown-fivem__eyebrow {
    color: var(--theme-accent);
    font-family: var(--font-code, var(--font-mono));
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.markdown-body .markdown-fivem__heading strong {
    overflow: hidden;
    color: var(--theme-text);
    font-family: var(--font-heading, var(--font-ui));
    font-size: 0.94rem;
    font-weight: 650;
    line-height: 1.3;
    letter-spacing: -0.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.markdown-body .markdown-fivem__state {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    min-height: 27px;
    padding: 0.28rem 0.52rem;
    border: 1px solid var(--fivem-line);
    border-radius: 999px;
    color: var(--theme-muted);
    font-size: 0.62rem;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
}

.markdown-body .markdown-fivem__state i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--theme-muted);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-muted) 9%, transparent);
}

.markdown-body .markdown-fivem[data-fivem-loading="1"] .markdown-fivem__state i {
    animation: fivem-status-pulse 1.1s ease-in-out infinite;
}

.markdown-body .markdown-fivem.is-online .markdown-fivem__state {
    border-color: color-mix(in srgb, #48d597 28%, var(--theme-border));
    background: color-mix(in srgb, #48d597 5%, transparent);
    color: #64dba8;
}
.markdown-body .markdown-fivem.is-online .markdown-fivem__state i {
    background: #48d597;
    box-shadow: 0 0 0 3px color-mix(in srgb, #48d597 11%, transparent);
}
.markdown-body .markdown-fivem.is-offline .markdown-fivem__state {
    border-color: color-mix(in srgb, #ff7188 25%, var(--theme-border));
    color: #ff8297;
}
.markdown-body .markdown-fivem.is-offline .markdown-fivem__state i {
    background: #ff617d;
    box-shadow: 0 0 0 3px color-mix(in srgb, #ff617d 10%, transparent);
}

.markdown-body .markdown-fivem__body {
    display: grid;
    grid-template-columns: minmax(145px, 0.34fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    gap: 0.42rem 1.35rem;
    padding: 0.85rem 0.9rem 0.9rem 1rem;
}

.markdown-body .markdown-fivem__metric {
    grid-column: 1;
    grid-row: 1 / 3;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 0.4rem;
    padding-right: 1.2rem;
    border-right: 1px solid var(--fivem-line);
}

.markdown-body .markdown-fivem__metric > span {
    grid-column: 1 / -1;
    color: var(--theme-muted);
    font-family: var(--font-code, var(--font-mono));
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.markdown-body .markdown-fivem__metric strong {
    grid-column: 1 / -1;
    color: var(--theme-text);
    font-family: var(--font-code, var(--font-mono));
    font-weight: 600;
    line-height: 1;
}
.markdown-body .markdown-fivem__metric b { font-size: 1.45rem; font-weight: 600; }
.markdown-body .markdown-fivem__metric small { color: var(--theme-muted); font-size: 0.68rem; }

.markdown-body .markdown-fivem__meter {
    grid-column: 2;
    grid-row: 1;
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: color-mix(in srgb, var(--theme-border) 70%, transparent);
}

.markdown-body .markdown-fivem__meter span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--theme-accent);
    transition: width 500ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.markdown-body .markdown-fivem__message {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    color: var(--theme-muted);
    font-size: 0.68rem;
    line-height: 1.45;
}

.markdown-body .markdown-fivem__details {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--fivem-line);
    background: color-mix(in srgb, var(--theme-surface) 28%, transparent);
}

.markdown-body .markdown-fivem__details > span {
    display: grid;
    gap: 0.16rem;
    min-width: 0;
    padding: 0.62rem 0.8rem;
    border-right: 1px solid var(--fivem-line);
}
.markdown-body .markdown-fivem__details > span:last-child { border-right: 0; }
.markdown-body .markdown-fivem__details small {
    color: var(--theme-muted);
    font-family: var(--font-code, var(--font-mono));
    font-size: 0.52rem;
    font-weight: 700;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}
.markdown-body .markdown-fivem__details strong {
    overflow: hidden;
    color: var(--theme-text);
    font-family: var(--font-ui, var(--font-body));
    font-size: 0.69rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.markdown-body .markdown-fivem__description {
    margin: 0;
    padding: 0.7rem 1rem 0;
    color: var(--theme-muted);
    font-size: 0.68rem;
    line-height: 1.5;
}
.markdown-body .markdown-fivem__description[hidden] { display: none; }

.markdown-body .markdown-fivem__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.32rem;
    padding: 0.58rem 1rem 0.72rem;
}
.markdown-body .markdown-fivem__tags[hidden] { display: none; }
.markdown-body .markdown-fivem__tags span {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    border: 1px solid color-mix(in srgb, var(--theme-accent) 20%, var(--theme-border));
    border-radius: 999px;
    background: color-mix(in srgb, var(--theme-accent) 6%, transparent);
    color: var(--theme-muted);
    padding: 0.18rem 0.48rem;
    font-family: var(--font-code, var(--font-mono));
    font-size: 0.54rem;
}

.markdown-body .markdown-fivem__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    min-height: 51px;
    padding: 0.58rem 0.9rem 0.58rem 1rem;
    border-top: 1px solid var(--fivem-line);
    background: color-mix(in srgb, var(--theme-surface) 38%, transparent);
}

.markdown-body .markdown-fivem__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.8rem;
    min-width: 0;
}

.markdown-body .markdown-fivem__updated,
.markdown-body .markdown-fivem__code {
    color: var(--theme-muted);
    font-family: var(--font-code, var(--font-mono));
    font-size: 0.57rem;
}

.markdown-body .markdown-fivem__code {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.markdown-body .markdown-fivem__code::before {
    content: "";
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--theme-border);
}
.markdown-body .markdown-fivem__code strong { color: var(--theme-text); font: inherit; font-weight: 650; }

.markdown-body .markdown-fivem__actions { display: flex; align-items: center; gap: 0.42rem; }

.markdown-body .markdown-fivem__actions :is(button, a) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    min-height: 34px;
    margin: 0;
    padding: 0.43rem 0.67rem;
    border: 1px solid var(--fivem-line);
    border-radius: 7px;
    background: transparent;
    color: var(--theme-muted);
    font-family: var(--font-ui, var(--font-body));
    font-size: 0.67rem;
    font-weight: 750;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.markdown-body .markdown-fivem__actions :is(button, a):hover {
    border-color: color-mix(in srgb, var(--theme-accent) 42%, var(--theme-border));
    background: color-mix(in srgb, var(--theme-accent) 7%, transparent);
    color: var(--theme-text);
    transform: translateY(-1px);
}

.markdown-body .markdown-fivem__actions a {
    border-color: var(--theme-accent);
    background: var(--theme-accent);
    color: var(--theme-on-accent);
}
.markdown-body .markdown-fivem__actions a:hover {
    border-color: var(--theme-accent-hover);
    background: var(--theme-accent-hover);
    color: var(--theme-on-accent);
}
.markdown-body .markdown-fivem__actions :is(button, a):focus-visible {
    outline: 2px solid color-mix(in srgb, var(--theme-accent) 65%, transparent);
    outline-offset: 2px;
}
.markdown-body .markdown-fivem__actions button:disabled { opacity: 0.55; cursor: wait; transform: none; }

@keyframes fivem-status-pulse {
    0%, 100% { opacity: 0.45; transform: scale(0.85); }
    50% { opacity: 1; transform: scale(1); }
}

@media (max-width: 600px) {
    .markdown-body .markdown-fivem__header { grid-template-columns: 36px minmax(0, 1fr); }
    .markdown-body .markdown-fivem__mark { width: 36px; height: 36px; }
    .markdown-body .markdown-fivem__state { grid-column: 1 / -1; justify-self: start; }
    .markdown-body .markdown-fivem__body { grid-template-columns: 1fr; gap: 0.65rem; }
    .markdown-body .markdown-fivem__metric {
        grid-column: 1;
        grid-row: 1;
        padding: 0 0 0.7rem;
        border-right: 0;
        border-bottom: 1px solid var(--fivem-line);
    }
    .markdown-body .markdown-fivem__meter { grid-column: 1; grid-row: 2; }
    .markdown-body .markdown-fivem__message { grid-column: 1; grid-row: 3; }
    .markdown-body .markdown-fivem__details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .markdown-body .markdown-fivem__details > span:nth-child(2) { border-right: 0; }
    .markdown-body .markdown-fivem__details > span:nth-child(-n + 2) { border-bottom: 1px solid var(--fivem-line); }
    .markdown-body .markdown-fivem__footer { align-items: stretch; flex-direction: column; }
    .markdown-body .markdown-fivem__actions { width: 100%; }
    .markdown-body .markdown-fivem__actions :is(button, a) { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
    .markdown-body .markdown-fivem *,
    .markdown-body .markdown-fivem *::before,
    .markdown-body .markdown-fivem *::after { animation: none !important; transition: none !important; }
}
