form[name="thread"] {
    display: flex;
    flex-direction: column;

    .new-thread {
        display: flex;
        flex-direction: row;
        margin-bottom: var(--margin-top-bottom);

        .logo {
            width: 3.5rem;
            height: 3.5rem;
        }

        .block-form-thread {
            display: flex;
            flex: 1;
            flex-direction: row;

            & > div {
                display: flex;
                flex: 1;
                align-items: center;
                margin-left: var(--margin-left-right);
            }

            .form-row {
                flex: 2;
            }
        }
    }

    .form-row-tag {
        display: flex;
        align-items: center;

        .tag-label {
            font-size: 85%;

            & + .tag-label {
                margin-left: calc(var(--margin-left-right) / 2);
            }
        }

        .form-row {
            & > label {
                position: unset;
            }
        }
    }

    button.form-tag {
        font-size: 0.7rem;
        font-weight: bold;
        background: none;
        padding: 0 0.2rem;
        border: 1px dashed;
    }

    .display-overlay {
        z-index: 99;

        &.overlay-hide {
            display: none;
        }

        &.overlay-show {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: color-mix(in srgb, var(--button-primary-color) 70%, transparent);
            display: flex;
            align-items: center;
            justify-content: center;

            .tag-container {
                display: flex;
                flex-direction: column;
                background: var(--background-color-page);
                opacity: 1;
                padding: 2rem;
                border-radius: 0.3rem;

                & > div {
                    margin-bottom: var(--margin-top-bottom);

                    & > label {
                        font-size: 1.2rem;
                    }

                    #thread_tags {
                        margin-top: var(--margin-top-bottom);

                        label {
                            margin-right: var(--margin-left-right);
                        }
                    }
                }
            }
        }
    }
}

#thread_newMessage {
    display: flex;
    flex-direction: column-reverse;
}
