.top {
    display: grid;
    grid-template-columns: 1fr 25em;
    grid-gap: 1em;
}

@media screen and (max-width: 40em) {
    .top {
        display: flex;
        flex-direction: column-reverse;
    }
}

.cover {
    aspect-ratio: 4/3;
    position: relative;
    border-radius: 1em;
    overflow: hidden;
    padding: var(--gap);
    display: flex;
    flex-direction: column-reverse;
    justify-content: start;
}

.cover * {
    position: relative;
}

.cover img {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 1em;
    position: absolute;
}


.itemIO .ico_tag {
    height: 3em;

    img {
        height: 2.8em;
    }
}

.depend .ico_tag {
    height: 40px;

    img {
        height: calc(40px - 0.2em);
    }
}

.ico_tag > div {
    max-height: none;
}

.depend .ico_tag {
    height: 40px;

    img {
        height: calc(40px - 0.2em);
    }
}

.ico_tag > div > div {
    display: grid;
    grid-template-columns: 1fr auto;
    padding-right: var(--gap);
}

.ico_tag > div > div label {
    display: none;
}

.ico_tag > div > div input[type=number] {
    position: absolute;
    width: 100%;
    height: 100%;
}

.ico_tag > div > div > div:nth-child(2) {
    grid-column: 1/3;
    height: 1.7em;
    min-width: 8em;
    position: relative;
}

.ico_tag > div > div > div:nth-child(3) {
    grid-column: 2/3;
    grid-row: 1/2;
}

.ico_tag > div > div > div:nth-child(3) > input {
    display: none;
}

.ico_tag > div > div > div:nth-child(3) > label {
    opacity: 0 !important;
    display: block;
    width: 1em;
    overflow: hidden;
    white-space: nowrap;
    margin: 0;
    z-index: 20;
    position: relative;
}

.ico_tag > div > div > div:nth-child(3):before {
    content: '🗙';
    position: absolute;
    z-index: 10;
    transition: color 0.2s ease;
    transform: translate(0, -2px);
}

.ico_tag > div > div > div:nth-child(3):hover:before {
    color: var(--red);
}

.ico_tag:has(input:checked) {
    display: none;
}

.itemIO .ico_tag, .itemIO button {
    height: 4em;
}

body {
    --container_w: 80em;
}

.blueprint_form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    grid-template-rows: auto 1fr;
    grid-gap: var(--gap);
    transition: all 0.2s ease;
}

.blueprint_form > div:nth-child(1) {
    grid-row: 2/3;
    grid-column: 1/4;
}

.blueprint_form > div:nth-child(3) {
    grid-template-columns: auto 1fr;
}

.blueprint_form > div:nth-child(3) > a {
    white-space: nowrap;
    overflow: hidden;
}

.blueprint_form > div:nth-child(3) > input {
    grid-column: 1/3;
}

@media screen and (max-width: 40em) {
    .blueprint_form {
        grid-template-columns: 1fr auto;
    }

    .blueprint_form > div:nth-child(4) {
        grid-area: 1/2/1/3;
    }

    .blueprint_form > div:nth-child(2) {
        grid-column: 1/2;
    }

    .blueprint_form > div:nth-child(3) {
        grid-column: 1/3;
    }

    .blueprint_form > div:nth-child(1) {
        grid-row: 3/4;
        grid-column: 1/3;
    }

}

.blueprint_form > div {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    grid-gap: var(--gap);
    font-weight: bold;
}

.blueprint_form label {
    margin-left: var(--gap);
    text-decoration-line: line-through;
    text-decoration-color: #0000;
    transition: all 0.2s ease;
}

.blueprint_form > div:nth-child(4) > input {
    display: none;
}

.blueprint_form > div:nth-child(4) > label {
    opacity: 0 !important;
    width: 1em;
    overflow: hidden;
    white-space: nowrap;
    margin: 0;
    z-index: 20;
}

.blueprint_form > div:nth-child(4):before {
    content: '🗙';
    position: absolute;
    z-index: 10;
    transition: color 0.2s ease;
}

.blueprint_form > div:nth-child(4):hover:before, .blueprint_form:has(input:checked) > div:nth-child(4):before {
    color: var(--red);
}

.blueprint_form:has(input:checked) {
    max-height: 1.7em;
    overflow: hidden;
    padding-top: 0.2em;
}

.blueprint_form:has(input:checked) * {
    text-decoration-color: var(--text);
    text-decoration-line: line-through;
    opacity: 0.5;
}

.author textarea {
    height: 2.3em;
    min-height: 2.3em;
}

.tags > span {
    border-radius: 2em;
}

.numbers input {
    width: 6em;
    margin-top: var(--gap);
}

.depend .ico_tag, .depend button {
    height: 40px;
}

.depend .ico_tag div, .link .link_result {
    padding-right: 5px;
}

.depend b, .link b {
    position: absolute;
    right: 0;
    top: -2px;
    opacity: 0;
    color: var(--red);
    transition: opacity 0.2s ease;
}

.depend .ico_tag:hover b, .link .link_result:hover b {
    opacity: 1;
}

.link button {
    height: 5em;
}

.dropdown_search input {
    min-width: 1em;
}


@media screen and (min-width: 40em) {
    #err {
        min-width: calc(100% - 18em);
    }
}