input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.node input,
.node select {
    width: 80%;
    height: 21px;
    margin: auto;
    border: 1px solid #3d3d3d;
    border-radius: 6px;
    text-align: center;
    font-weight: 400;
}

.node input {
    background-color: transparent;
    box-shadow: inset 2px 2px 4px #00000040;
}

.node select {
    padding-left: 12px;
    background-color: transparent;
    background-color: #303233;
    box-shadow: inset 2px 2px 4px #00000040;
    text-align-last: center;
}

.node {
    font-size: 14px;
    display: flex;
    position: absolute;
    width: 130px;
    height: auto;
    border: 2px solid #3d3d3d;
    border-radius: 8px;
    box-shadow: 2px 2px 8px #00000040;
    flex-flow: column nowrap;
    transform-origin: top left;
}

.node.selected {
    border-color: #6a9fb5;
    /* box-shadow: 4px 4px 12px #00000040; */
}

.node-header {
    display: flex;
    min-height: 22px;
    max-height: 22px;
    padding: 2px;
    border-radius: 6px 6px 0 0;
    background: linear-gradient(180deg, #3d3d3d, #303233);
    background-color: #303233;
    align-items: center;
    /* filter: sepia(.5) hue-rotate(20deg); */
}

.node-expand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 1px solid #303233;
    border-radius: 6px;
    background-color: transparent;
    font-weight: 500;
    flex-shrink: 0;
    line-height: 15px;
}

.node-expand:hover {
    background-color: #3d3d3d;
    transition: 0.1s;
}

.node-expand:active {
    background-color: #303233;
    box-shadow: inset 1px 1px 3px #00000040;
    transition: 0.1s;
}

.node-title {
    user-select: none;
    margin-left: 4px;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    font-size: 15px;
    font-weight: 400;
    white-space: nowrap;
}

.node-body {
    position: relative;
    height: 100%;
    /* min-height: 52px; */
    border-top: 1px solid #3d3d3d;
    border-radius: 0 0 6px 6px;
    background-color: #303233e0;
    box-shadow: inset 0px 2px 8px #00000040;
}

.row {
    display: flex;
    height: 26px;
    align-items: center;
    justify-content: center;
}

.row:first-child input,
.row:first-child select {
    position: relative;
    bottom: -1px;
    top: unset;
}

.row:last-child input {
    position: relative;
    bottom: unset;
    top: -1px;
}

.row:only-child input {
    position: relative;
    bottom: -0.5px;
    top: unset;
}

.input,
.output {
    position: relative;
    width: 9px;
    height: 18px;
    border: 3px solid #3d3d3d;
    background-color: #303233;
}

.node.selected .input,
.node.selected .output {
    border-color: #6a9fb5;
    /* background-color: #6a9fb5; */
}

.input:hover:after,
.output:hover:after {
    border: 2px solid #1d1f21a0;
    transition: 0.2s;
}

.input:after,
.output:after {
    content: "";
    box-sizing: border-box;
    position: absolute;
    width: 14px;
    height: 14px;
    border: 3px solid #1d1f21;
    border-radius: 50%;
    background-color: inherit;
    transition: 0.2s;
}

.input {
    left: -2px;
    margin-right: auto;
    border-left: none;
    border-radius: 0 10px 10px 0;
}

.input:after {
    top: -1px;
    left: -7px;
}

.input-name,
.output-name {
    position: absolute;
    padding: 2px;
    color: #3d3d3d;
    opacity: 0%;
    border-radius: 6px;
    background-color: #1d1f2180;
    font-size: 15px;
    font-weight: 500;
    transition: 0.15s;
    pointer-events: none;
}

.node:hover .input-name,
.node:hover .output-name {
    opacity: 100%;
    transition: 0.15s;
}

.row:hover .input-name {
    color: #94949580;
    transition: 0.2s;
}

.output:hover + .output-name {
    color: #94949580;
    transition: 0.2s;
}

.input-name {
    left: 0;
    transform: translateX(calc(-100% - 12px));
}

.output-name {
    right: 0;
    transform: translateX(calc(100% + 12px));
}

.output {
    right: -2px;
    margin-left: auto;
    border-right: none;
    border-radius: 10px 0 0 10px;
    /* top: 13px; */
}

.output:after {
    top: -1px;
    right: -7px;
}

.blank {
    position: relative;
    width: 9px;
    height: 18px;
    margin: auto;
    opacity: 0;
}

.node *:not(input) {
    user-select: none;
}
