/* Server-MOTD & Icon - on top of text-generators.css, texture-editor.css and painting-generator.css (pg-seg) */
.mo-stage {
    overflow-x: auto;
    border-radius: 12px;
}

#moCanvas {
    display: block;
    border-radius: 12px;
    width: 100%;
    max-width: 963px;
    height: auto;
    margin: 0 auto;
    image-rendering: pixelated;
}

.mo-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
    gap: 18px;
    align-items: start;
}

.main .mo-layout {
    margin-top: 24px;
}

.mo-fields {
    margin-top: 14px;
}

.mo-players {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.mo-source {
    margin-bottom: 12px;
}

.mo-src[hidden],
.main #moCut[hidden] {
    display: none;
}

.tg-panel .mo-file {
    width: 100%;
    justify-content: center;
    cursor: pointer;
}

.mo-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.mo-icon-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}

#moIcon {
    width: 128px;
    height: 128px;
    border: 1px solid var(--tg-line);
    border-radius: 10px;
    background: repeating-conic-gradient(#3a3f4b 0% 25%, #2a2e38 0% 50%) 50% / 16px 16px;
    image-rendering: pixelated;
}

.mo-icon-opts {
    display: grid;
    gap: 8px;
}

.mo-icon-opts .pg-seg {
    margin: 0;
}

.tg-panel .mo-icon-opts .toggle-row {
    justify-content: flex-start;
    margin: 0;
    text-align: left;
}

.tg-panel .mo-icon-opts input[type="color"] {
    width: 34px;
    height: 24px;
    margin-left: auto;
    padding: 1px;
    border: 1px solid var(--tg-line);
    border-radius: 6px;
}

.mo-icon-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-top: 14px;
}

.tg-panel .mo-icon-actions .btn {
    justify-content: center;
}

.mo-outs {
    display: grid;
    gap: 8px;
}

.mo-out {
    display: grid;
    grid-template-columns: minmax(0, 190px) minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid var(--tg-line);
    border-radius: 10px;
    background: var(--tg-field);
    text-align: left;
}

.mo-out span {
    display: grid;
    gap: 2px;
}

.mo-out b {
    color: var(--text-primary);
    font-size: 0.8rem;
}

.mo-out small {
    color: var(--text-muted);
    font-size: 0.7rem;
}

.mo-out code {
    font-size: 0.78rem;
    overflow-wrap: anywhere;
}

.main .mo-below .tg-panel + .tg-panel {
    margin-top: 24px;
}

.mo-steps {
    padding-left: 22px;
}

@media (max-width: 960px) {
    .mo-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 560px) {
    /* the list entry stays readable: scroll sideways instead of shrinking it */
    #moCanvas {
        width: 640px;
        max-width: none;
    }

    .mo-icon-row {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
    }

    .mo-out {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .mo-out span {
        grid-column: 1 / -1;
    }
}
