.calc-panel {
    border-radius: 5px;
    border: 1px solid var(--color1);
    background: var(--color4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    margin-bottom: 30px;
}

.calc-panel .row {
    align-items: stretch;
}

.calc-panel .col-lg-8,
.calc-panel .col-lg-4 {
    display: flex;
    flex-direction: column;
}

.calc-panel textarea {
    flex: 1;
    min-height: 220px;
    background-color: var(--pre-bg);
    color: var(--textcolor);
}

.right-stats {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.right-stats>.stat {
    flex: 0 0 auto;
}

.muted {
    color: var(--sidebar-tc) !important;
}

.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
}

.stat {
    position: relative;
    padding: 0.5rem;
    border-radius: 5px;
    background: var(--color3);
    border: 1px solid var(--color1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.stat::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.2);
}

.stat .muted { font-size: .78rem; }
.stat .h5.mono { font-size: 1.25rem; font-weight: 700; color: var(--bnw); }
.stat.text-center.muted.small { padding: 0.65rem; }

@media (max-width:991px) {
    .stat { min-height: 64px; }
}

.calc-panel .stat {
    border-left: 5px solid var(--other);
    box-shadow: none;
}
.calc-panel .stat::before { display: none; }

#inputValue {
    width: 50%;
    border-radius: 5px 0 0 5px;
}

#inputUnit {
    width: 50%;
    font-size: 1rem;
    border-radius: 0 5px 5px 0;
}

#unitDropdownMenu {
    max-height: 280px;
    overflow-y: auto;
}