.calc-detail {
    min-height: 100vh;
    background: #f6f6f6;
    padding: 24px 0 32px;
}

.calc-detail__wrap {
    position: relative;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 0 8px;
}

.calc-detail__grid {
    position: absolute;
    inset: 0;
    opacity: 0.015;
    pointer-events: none;
    background-image:
        linear-gradient(#000 1px, transparent 1px),
        linear-gradient(90deg, #000 1px, transparent 1px);
    background-size: 20px 20px;
}

.calc-shell {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    background: #fff;
    border-radius: 22px;
    padding: 6px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.calc-shell__header {
    margin-bottom: 24px;
    text-align: center;
}

.calc-shell__title {
    margin: 0;
    font-size: 30px;
    color: #111827;
    font-weight: 700;
}

.calc-shell__line {
    height: 4px;
    width: 144px;
    margin: 8px auto 0;
    border-radius: 999px;
    background: #e53935;
}

.calc-body {
    border: 1px solid #e5e7eb;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    padding: 12px;
    box-shadow: 0 20px 30px rgba(17, 24, 39, 0.08);
}

.calc-group {
    margin-bottom: 12px;
}

.calc-group--phase {
    margin-bottom: 12px;
}

.calc-switches-line {
    display: block;
    gap: 12px;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.calc-radio-row {
    display: flex;
    gap: 8px;
    width: 100%;
}

.calc-radio-card {
    flex: 1;
    display: block;
}

.calc-radio-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.calc-radio-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    border: 2px solid #f1c9c9;
    background: #fff;
    color: #6b7280;
    border-radius: 12px;
    padding: 8px 10px;
    cursor: pointer;
    transition: all 0.18s ease;
    user-select: none;
    text-align: center;
    position: relative;
    z-index: 1;
}

.calc-radio-card:hover .calc-radio-box {
    border-color: #e77b7b;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(203, 14, 15, 0.08);
}

.calc-radio-card:active .calc-radio-box {
    transform: scale(0.98);
}

.calc-radio-input:checked + .calc-radio-box {
    border-color: #cb0e0f;
    background: #fff;
    color: #cb0e0f;
    box-shadow:
        0 0 0 1px rgba(203, 14, 15, 0.14),
        0 4px 8px rgba(203, 14, 15, 0.14);
}

.calc-radio-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.calc-radio-inner {
    fill: currentColor;
    stroke: none;
    opacity: 0;
    transform-origin: center;
    transform: scale(0.4);
    transition:
        opacity 0.16s ease,
        transform 0.16s ease;
}

.calc-radio-input:checked + .calc-radio-box .calc-radio-inner {
    opacity: 1;
    transform: scale(1);
}

.calc-radio-text {
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.calc-switch-row {
    display: flex;
    align-items: center;
    /* gap: 6px; */
}

.calc-switch-label {
    min-width: 30px;
    font-size: 13px;
    color: #6b7280;
    font-weight: 600;
    text-align: center;
    transition: color 0.2s ease;
    cursor: pointer;
}

.calc-switch-label--active-left,
.calc-switch-label--active-right {
    font-weight: 700;
}

.calc-switch-label--active-left {
    color: #9f1239;
}

.calc-switch-label--active-right {
    color: #cb0e0f;
}

.check {
    position: relative;
    background: linear-gradient(90deg, #fca5a5, #cb0e0f);
    line-height: 0;
    font-size: 25px;
    border-radius: 1em;
    box-shadow: inset 0 0 0 1px rgba(203, 14, 15, 0.22);
}

.check input[type="checkbox"],
.check label,
.check label::before,
.check label::after {
    appearance: none;
    display: inline-block;
    font-size: inherit;
    border-radius: 1em;
    border: 0;
    transition: 0.35s ease-in-out;
    box-sizing: border-box;
    cursor: pointer;
}

.check label {
    width: 2.2em;
    height: 1em;
    background: transparent;
    overflow: hidden;
}

.check input[type="checkbox"] {
    position: absolute;
    z-index: 1;
    width: 0.8em;
    height: 0.8em;
    top: 0.1em;
    left: 0.1em;
    background: linear-gradient(45deg, #dedede, #ffffff);
    box-shadow: 0 6px 7px rgba(0, 0, 0, 0.3);
    outline: none;
}

.check input[type="checkbox"]:checked {
    left: 1.3em;
}

.check input[type="checkbox"]:checked + label {
    background: transparent;
}

.check label::before,
.check label::after {
    content: "· ·";
    position: absolute;
    overflow: hidden;
    left: 0.5em;
    top: 0.5em;
    height: 1em;
    letter-spacing: -0.04em;
    color: rgba(255, 255, 255, 0.72);
    font-family: "Times New Roman", serif;
    z-index: 2;
    font-size: 0.6em;
    border-radius: 0;
    transform-origin: 0 0 -0.5em;
    backface-visibility: hidden;
}

.check label::after {
    content: "?";
    top: 0.65em;
    left: 0.6em;
    height: 0.1em;
    width: 0.35em;
    font-size: 0.2em;
    transform-origin: 0 0 -0.4em;
}

.check input[type="checkbox"]:checked + label::before,
.check input[type="checkbox"]:checked + label::after {
    left: 2.55em;
    top: 0.4em;
    line-height: 0.1em;
    transform: rotateY(360deg);
}

.check input[type="checkbox"]:checked + label::after {
    height: 0.16em;
    top: 0.55em;
    left: 2.6em;
    font-size: 0.6em;
    line-height: 0;
}

.check input[type="checkbox"]:not(:checked) + label::before,
.check input[type="checkbox"]:not(:checked) + label::after {
    color: rgba(255, 255, 255, 0.72);
}

.calc-fields {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.calc-field {
    width: 100%;
}

.calc-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    color: #374151;
    font-weight: 500;
    font-size: 16px;
}

.calc-help {
  width: 16px;
  height: 16px;
    border-radius: 50%;
    border: 1px solid #9ca3af;
    color: #6b7280;
    font-size: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  cursor: help;
}

.calc-help-tooltip {
  position: absolute;
  z-index: 9999;
  max-width: min(280px, calc(100vw - 16px));
  background: #111827;
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
  padding: 8px 10px;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.calc-row {
    display: flex;
    gap: 8px;
}

.calc-row--eff {
    align-items: center;
    gap: 16px;
}

.calc-input,
.calc-select {
    width: 100%;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 16px;
    outline: none;
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.2s ease;
    background: #fff;
}

.calc-input:focus,
.calc-select:focus {
    border-color: #e53935;
    box-shadow: 0 0 0 3px rgba(254, 226, 226, 0.8);
}

.calc-input--grow {
    flex: 1;
    min-width: 0;
}

.calc-select-wrap {
    position: relative;
    flex-shrink: 0;
}

.calc-select-wrap--sm {
    width: 96px;
}

.calc-select-wrap--md {
    width: 110px;
}

.calc-select {
    appearance: none;
    padding-right: 34px;
    cursor: pointer;
}

.calc-select-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

.calc-zap-wrap {
    position: relative;
}

.calc-input--zap {
    padding-left: 44px;
}

.calc-zap {
    position: absolute;
    left: 12px;
    top: 50%;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    color: #e53935;
}

.calc-range {
    flex: 1;
    accent-color: #e53935;
}

.calc-input--eff {
    width: 80px;
    padding: 10px 12px;
}

.calc-actions {
    margin-top: 32px;
    display: flex;
    gap: 12px;
}

.calc-btn__icon {
    width: 18px;
    height: 18px;
}

#calculatorDetailRoot .calc-actions .calc-3d-btn {
    position: relative;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    cursor: pointer !important;
    outline-offset: 4px !important;
    transition: filter 250ms !important;
    user-select: none !important;
    touch-action: manipulation !important;
    flex: 1 !important;
    min-height: 52px !important;
}

#calculatorDetailRoot .calc-actions .calc-3d-btn .calc3d-shadow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: hsl(0deg 0% 0% / 0.25);
    will-change: transform;
    transform: translateY(2px);
    transition: transform 600ms cubic-bezier(0.3, 0.7, 0.4, 1);
    z-index: 1;
}

#calculatorDetailRoot .calc-actions .calc-3d-btn .calc3d-edge {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: linear-gradient(
        to left,
        hsl(340deg 100% 16%) 0%,
        hsl(340deg 100% 32%) 8%,
        hsl(340deg 100% 32%) 92%,
        hsl(340deg 100% 16%) 100%
    );
    z-index: 2;
}

#calculatorDetailRoot .calc-actions .calc-3d-btn .calc3d-front {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    width: 100%;
    min-height: 52px;
    padding: 12px 27px;
    border-radius: 12px;
    font-size: 1.1rem;
    color: white !important;
    background: hsl(345deg 100% 47%) !important;
    will-change: transform;
    transform: translateY(-4px);
    transition: transform 600ms cubic-bezier(0.3, 0.7, 0.4, 1);
    z-index: 3;
    box-sizing: border-box;
}

#calculatorDetailRoot .calc-actions .calc-3d-btn .calc3d-front * {
    color: white !important;
}

#calculatorDetailRoot .calc-actions .calc-3d-btn:hover {
    filter: brightness(110%);
}

#calculatorDetailRoot .calc-actions .calc-3d-btn:hover .calc3d-front {
    transform: translateY(-6px);
    transition: transform 250ms cubic-bezier(0.3, 0.7, 0.4, 1.5);
}

#calculatorDetailRoot .calc-actions .calc-3d-btn:active .calc3d-front {
    transform: translateY(-2px);
    transition: transform 34ms;
}

#calculatorDetailRoot .calc-actions .calc-3d-btn:hover .calc3d-shadow {
    transform: translateY(4px);
    transition: transform 250ms cubic-bezier(0.3, 0.7, 0.4, 1.5);
}

#calculatorDetailRoot .calc-actions .calc-3d-btn:active .calc3d-shadow {
    transform: translateY(1px);
    transition: transform 34ms;
}

#calculatorDetailRoot .calc-actions .calc-3d-btn:focus:not(:focus-visible) {
    outline: none;
}

.calc-error {
    margin-top: 16px;
    border-radius: 8px;
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #b91c1c;
    padding: 8px 12px;
    font-size: 14px;
}

.calc-field-error {
    margin: 6px 0 0;
    font-size: 12px;
    color: #b91c1c;
}

.calc-result {
    margin-top: 32px;
    border-radius: 20px;
    border: 1px solid #e6eaf0;
    background: #fff;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
    padding: 20px;
}

.calc-result__title {
    margin: 0 0 16px;
    font-size: 22px;
    color: #111827;
}
.calc-result__title:empty {
    display: none;
}

.calc-result-list p {
    margin: 0 0 8px;
    font-size: 14px;
    color: #4b5563;
}

.calc-result-list p span {
    color: #111827;
}

.calc-result-final {
    margin-top: 10px;
    border-top: 1px solid #e5e7eb;
    padding-top: 10px;
    color: #e53935 !important;
    font-weight: 600;
}

.calc-result-strong {
    margin: 0 0 10px;
    color: #111827 !important;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.calc-result-label {
    font-weight: 600;
    color: #374151;
}

.calc-result-value {
    font-weight: 800;
    color: #111827;
    text-align: right;
}

.calc-modern {
    padding: 6px 2px 2px;
}

.calc-modern__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.calc-modern__head-left {
    display: flex;
    align-items: center;
    gap: 5px;
}

.calc-modern__icon {
    width: 30px;
    height: 30px;
    color: #e62b2b;
    flex-shrink: 0;
}

.calc-modern__title {
    margin: 0;
    font-size: clamp(26px, 4vw, 25px);
    line-height: 1;
    font-weight: 800;
    color: #07142b;
}

.calc-modern__summary {
    margin: 0;
    font-size: clamp(13px, 1.3vw, 16px);
    line-height: 1.5;
    font-weight: 400;
    color: #0f213f;
}

.calc-modern__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    /* background: #fdebec; */
    color: #e62b2b;
    border-radius: 14px;
    padding: 10px 14px;
    font-size: clamp(13px, 1.6vw, 17px);
    font-weight: 600;
}

.calc-modern__badge-icon {
    width: 22px;
    height: 22px;
}

.calc-modern__divider {
    margin: 16px 0 10px;
    height: 1px;
    background: #e6eaf0;
}

.calc-modern__rows {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.calc-modern-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.calc-modern-row__label {
    color: #0f213f;
    font-size: clamp(18px, 2.8vw, 22px);
    font-weight: 500;
    white-space: nowrap;
}

.calc-modern-row__dots {
    flex: 1;
    border-bottom: 4px dotted #d9dee8;
    transform: translateY(-6px);
}

.calc-modern-row__value {
    color: #07142b;
    font-size: clamp(26px, 3.6vw, 25px);
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.calc-modern-row__unit {
    font-size: 0.62em;
    font-weight: 500;
    margin-left: 4px;
}

.calc-formula__title {
    margin: 0 0 12px;
    font-weight: 600;
    color: #111827;
}

.calc-formula__box {
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    padding: 12px;
    text-align: center;
    font-family: monospace;
    font-size: 16px;
    color: #111827;
}

.calc-frac {
    display: inline-block;
    flex-direction: column;
    align-items: center;
    vertical-align: middle;
    line-height: 1.1;
    margin: 0 2px;
}

.calc-frac__top {
    display: block;
    padding: 0 6px 2px;
    border-bottom: 1.5px solid #111827;
}

.calc-frac__bottom {
    display: block;
    padding: 2px 6px 0;
}

.calc-formula__defs {
    margin-top: 12px;
    font-size: 12px;
    color: #4b5563;
    line-height: 1.6;
}

.calc-formula__defs p {
    margin: 0;
}

.calc-fx-card {
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.calc-fx-head {
    margin-bottom: 14px;
    display: flex;
    justify-content: center;
}

.calc-fx-head-left {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.calc-fx-head-copy {
    text-align: center;
}

.calc-fx-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #cb0e0f;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-family: serif;
    font-style: italic;
    line-height: 1;
}

.calc-fx-title {
    margin: 0;
    font-size: clamp(15px, 3.2vw, 21px);
    line-height: 1;
    font-weight: 800;
    color: #07142b;
}

.calc-fx-subtitle {
    /* margin: 8px 0 0; */
    font-size: clamp(10px, 1.8vw, 12px);
    color: #1f2937;
    font-weight: 500;
}

.calc-fx-formula-box {
    /* border-radius: 18px; */
    /* border: 1px solid #ef4e4e; */
    /* background: #fff5f5; */
    /* padding: 18px; */
    margin: -8px 0 10px;
}

.calc-fx-formula-text {
    text-align: center;
    color: #07142b;
    font-weight: 700;
    font-size: clamp(18px, 3.2vw, 22px);
}

.calc-fx-mul {
    color: #cb0e0f;
    padding: 0 0.08em;
}

.calc-fx-acc {
    border: 1px solid #d7dce5;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    margin-top: 14px;
}

.calc-fx-panels {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.calc-fx-panels .calc-fx-acc {
    flex: 1;
    margin-top: 0;
}

.calc-fx-panels--single .calc-fx-acc {
    width: 100%;
}

.calc-fx-panels--single .calc-fx-acc-body {
    padding: 14px 18px;
}

.calc-fx-panels--single .calc-fx-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 22px;
    row-gap: 10px;
}

.calc-fx-acc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 5px 15px;
    color: #07142b;
    font-size: clamp(15px, 1.4vw, 18px);
    font-weight: 700;
}

.calc-fx-acc-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.calc-fx-acc-icon {
    width: 28px;
    height: 28px;
    color: #cb0e0f;
    flex-shrink: 0;
}

.calc-fx-chevron {
    width: 24px;
    height: 24px;
    color: #0f213f;
    flex-shrink: 0;
}

.calc-fx-acc--open .calc-fx-acc-body {
    border-top: 1px solid #e2e8f0;
    padding: 14px 16px;
}

.calc-fx-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.calc-fx-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0f213f;
    font-size: clamp(13px, 1.1vw, 15px);
}

.calc-fx-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cb0e0f;
    flex-shrink: 0;
}

.calc-fx-badge {
    min-width: 46px;
    padding: 4px 8px;
    border-radius: 10px;
    background: #fdebec;
    color: #cb0e0f;
    font-weight: 700;
    text-align: center;
}

.calc-fx-eq {
    color: #0f213f;
    font-weight: 600;
}

.calc-fx-desc {
    color: #1f2937;
}

.calc-fx-list--compact {
    gap: 8px;
}

.calc-fx-list--compact .calc-fx-dot {
    display: none;
}

.calc-fx-list--compact .calc-fx-item {
    font-size: 12px;
    gap: 6px;
}

.calc-fx-list--compact .calc-fx-badge {
    min-width: 38px;
    padding: 3px 6px;
    font-size: 12px;
}

.calc-modern--formula .calc-formula {
    padding: 2px 2px 0;
}

.calc-modern--formula .calc-formula__title {
    margin-bottom: 10px;
    color: #0f213f;
    font-weight: 700;
}

.calc-formula__defs--modern {
    margin-top: 14px;
    border-top: 1px solid #e6eaf0;
    padding-top: 12px;
}

.calc-formula__defs-title {
    margin: 0 0 8px !important;
    font-weight: 700;
    color: #0f213f;
}

.calc-formula__defs-title--sub {
    margin-top: 10px !important;
}

.calc-calculation {
    max-width: 360px;
    margin: 0 auto;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    padding: 16px;
    font-family: monospace;
    font-size: 14px;
    line-height: 2;
    color: #1f2937;
}

.calc-calculation pre {
    margin: 0;
    white-space: pre-wrap;
}

.calc-result-actions {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.calc-mini-btn {
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e53935;
}

.calc-mini-btn--primary {
    background: #e53935;
    color: #fff;
}

.calc-mini-btn--primary:hover {
    background: #c62828;
}

.calc-mini-btn--secondary {
    background: #fff;
    color: #e53935;
}

.calc-mini-btn--secondary:hover {
    background: #fef2f2;
}

.calc-is-hidden {
    display: none !important;
}

@media (min-width: 768px) {
    .calc-shell {
        padding: 24px;
    }

    .calc-body {
        padding: 32px;
    }
}

@media (max-width: 640px) {
    .calc-actions {
        flex-direction: row;
    }

    .calc-actions .calc-3d-btn {
        min-height: 44px !important;
    }

    .calc-actions .calc-3d-btn .calc3d-front {
        min-height: 44px !important;
        padding: 9px 14px !important;
        font-size: 0.95rem !important;
    }

    .calc-switches-line {
        gap: 8px;
        justify-content: space-between;
        flex-wrap: nowrap;
        display: block;
    }

    .calc-group,
    .calc-group--phase {
        margin-bottom: 8px;
    }

    .calc-switch-row {
        /* gap: 4px; */
    }

    .calc-switch-label {
        min-width: 30px;
        font-size: 12px;
    }

    .check {
        font-size: 22px;
    }

    .calc-radio-row {
        gap: 6px;
        justify-content: space-between;
        width: 100%;
    }

    .calc-radio-card {
        flex: 1 1 0;
    }

    .calc-radio-box {
        min-height: 46px;
        padding: 6px 8px;
        gap: 6px;
    }

    .calc-radio-icon {
        width: 15px;
        height: 15px;
    }

    .calc-radio-text {
        font-size: 11px;
    }

    .calc-result-strong {
        font-size: 13px;
        gap: 18px;
    }

    .calc-label {
        font-size: 12px;
    }

    .calc-input::placeholder {
        font-size: 11px;
    }

    .calc-result {
        padding: 14px;
    }

    .calc-result.calc-result--compact-mobile {
        padding: 2px;
    }

    .calc-modern__title {
        font-size: 20px;
    }

    .calc-modern__badge {
        padding: 8px 10px;
        border-radius: 12px;
        font-size: 14px;
        gap: 6px;
    }

    .calc-modern__badge-icon {
        width: 18px;
        height: 18px;
    }

    .calc-modern__rows {
        gap: 12px;
    }

    .calc-modern-row__label {
        font-size: 12px;
    }

    .calc-modern-row__dots {
        border-bottom-width: 3px;
        transform: translateY(-4px);
    }

    .calc-modern-row__value {
        font-size: 16px;
    }
    .calc-modern__icon {
        width: 20px;
        height: 20px;
        color: #e62b2b;
        flex-shrink: 0;
    }

    .calc-shell__title {
    font-size: 15px;
}

.calc-shell__line {
    height: 2px;
    width: 107px;
    margin: -1px auto 0;
    border-radius: 999px;
    background: #e53935;
}
}

/* Fallback hard-override for 3D action buttons */
.calc-3d-btn {
    position: relative !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    cursor: pointer !important;
    outline-offset: 4px !important;
    transition: filter 250ms !important;
    user-select: none !important;
    touch-action: manipulation !important;
    flex: 1 !important;
    min-height: 52px !important;
    width: 100% !important;
}

.calc-3d-btn .calc3d-shadow {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 12px !important;
    background: hsl(0deg 0% 0% / 0.25) !important;
    will-change: transform !important;
    transform: translateY(2px) !important;
    transition: transform 600ms cubic-bezier(0.3, 0.7, 0.4, 1) !important;
    z-index: 1 !important;
}

.calc-3d-btn .calc3d-edge {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 12px !important;
    background: linear-gradient(
        to left,
        hsl(340deg 100% 16%) 0%,
        hsl(340deg 100% 32%) 8%,
        hsl(340deg 100% 32%) 92%,
        hsl(340deg 100% 16%) 100%
    ) !important;
    z-index: 2 !important;
}

.calc-3d-btn .calc3d-front {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    position: relative !important;
    width: 100% !important;
    min-height: 52px !important;
    padding: 12px 27px !important;
    border-radius: 12px !important;
    font-size: 1.1rem !important;
    color: #fff !important;
    background: hsl(345deg 100% 47%) !important;
    will-change: transform !important;
    transform: translateY(-4px) !important;
    transition: transform 600ms cubic-bezier(0.3, 0.7, 0.4, 1) !important;
    z-index: 3 !important;
    box-sizing: border-box !important;
}

.calc-3d-btn .calc3d-front,
.calc-3d-btn .calc3d-front * {
    color: #fff !important;
}

.calc-3d-btn:hover {
    filter: brightness(110%) !important;
}
.calc-3d-btn:hover .calc3d-front {
    transform: translateY(-6px) !important;
    transition: transform 250ms cubic-bezier(0.3, 0.7, 0.4, 1.5) !important;
}
.calc-3d-btn:active .calc3d-front {
    transform: translateY(-2px) !important;
    transition: transform 34ms !important;
}
.calc-3d-btn:hover .calc3d-shadow {
    transform: translateY(4px) !important;
    transition: transform 250ms cubic-bezier(0.3, 0.7, 0.4, 1.5) !important;
}
.calc-3d-btn:active .calc3d-shadow {
    transform: translateY(1px) !important;
    transition: transform 34ms !important;
}

@media (max-width: 640px) {
    .calc-result-actions {
        margin-top: 14px;
        gap: 8px;
    }

    .calc-mini-btn {
        padding: 6px 10px;
        font-size: 10px;
        border-radius: 5px;
    }

    .calc-fx-head-left {
        gap: 8px;
    }

    .calc-fx-icon-box {
        width: 34px;
        height: 34px;
        font-size: 19px;
        border-radius: 9px;
    }

    .calc-fx-formula-box {
        /* padding: 12px; */
        border-radius: 14px;
    }

    .calc-fx-formula-text {
        font-size: 16px;
    }

    .calc-fx-acc-head {
        padding: 12px;
    }

    .calc-fx-acc--open .calc-fx-acc-body {
        padding: 8px;
    }

    .calc-fx-panels {
        flex-direction: row;
        gap: 8px;
    }

    .calc-fx-panels .calc-fx-acc {
        min-width: 0;
    }

    .calc-fx-panels--single .calc-fx-list {
        grid-template-columns: 1fr;
        column-gap: 0;
    }

    .calc-fx-item {
        font-size: 12px;
        gap: 6px;
    }

    .calc-fx-badge {
        min-width: 44px;
        padding: 4px 6px;
    }

    .calc-fx-acc-head {
        font-size: 12px;
        padding: 10px 8px;
        gap: 6px;
    }

    .calc-fx-acc-icon {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 640px) {
    #calculatorDetailRoot .calc-actions .calc-3d-btn,
    .calc-3d-btn {
        min-height: 34px !important;
        height: 34px !important;
    }

    #calculatorDetailRoot .calc-actions .calc-3d-btn .calc3d-front,
    .calc-3d-btn .calc3d-front {
        min-height: 34px !important;
        height: 34px !important;
        padding: 5px 10px !important;
        font-size: 0.82rem !important;
        line-height: 1 !important;
        border-radius: 9px !important;
        transform: translateY(-2px) !important;
    }

    #calculatorDetailRoot .calc-actions .calc-3d-btn .calc3d-edge,
    #calculatorDetailRoot .calc-actions .calc-3d-btn .calc3d-shadow,
    .calc-3d-btn .calc3d-edge,
    .calc-3d-btn .calc3d-shadow {
        border-radius: 10px !important;
    }
}
