.profile-taper-status { font-weight: 700; color: #398c2a; margin-bottom: .5rem; }
.profile-taper-status[hidden], .profile-taper-summary[hidden] { display: none; }
.profile-taper-summary { font-size: .85rem; margin-top: .35rem; }
.profile-taper-button { padding: .2rem .45rem; margin-left: .4rem; border: 1px solid currentColor; border-radius: 6px; color: inherit; background: transparent; cursor: pointer; }
.profile-taper-button.is-active { color: #398c2a; }
.profile-taper-button svg { width: 20px; height: 15px; vertical-align: middle; }
.profile-dimension-settings { position: relative; flex: 0 0 auto; margin-left: auto; }
.profile-dimension-settings-button { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 8px; border: 1px solid #89929b; border-radius: 8px; color: inherit; background: transparent; cursor: pointer; }
.profile-dimension-settings-button svg { width: 22px; height: 22px; transition: transform 180ms ease; }
.profile-dimension-settings-button[aria-expanded="true"] svg { transform: rotate(30deg); }
.profile-dimension-settings-button:hover, .profile-dimension-settings-button[aria-expanded="true"] { background: rgb(143 214 95 / 14%); }
.profile-dimension-settings-button:focus-visible, .profile-taper-button:focus-visible, .profile-taper-enable-label input:focus-visible { outline: 2px solid #398c2a; outline-offset: 3px; }
.profile-dimension-settings-menu.pf-card { position: absolute; top: calc(100% + 8px); right: 0; z-index: 20; width: 280px; max-width: calc(100vw - 64px); box-sizing: border-box; padding: 8px; margin: 0; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-8px) scale(.98); transform-origin: top right; transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms; }
.profile-dimension-settings-menu.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0) scale(1); transition-delay: 0s; }
.profile-taper-enable-label { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 8px; margin: 0; font-size: .9rem; line-height: 1.4; cursor: pointer; }
.profile-taper-enable-label input { box-sizing: border-box; flex: 0 0 auto; width: 18px; height: 18px; min-height: 18px; padding: 0; margin: 0; accent-color: #398c2a; cursor: pointer; }
#productDimensionsCard .profile-taper-button { box-sizing: border-box; flex: 0 0 auto; width: 0; min-width: 0; height: 32px; padding: 0; margin-left: 0; border-width: 0; overflow: hidden; opacity: 0; visibility: hidden; pointer-events: none; transform: translateX(6px) scale(.85); transition: width 180ms ease, margin-left 180ms ease, opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms; }
#productDimensionsCard.is-taper-enabled .profile-taper-button { width: 36px; margin-left: .4rem; border-width: 1px; opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(0) scale(1); transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) {
    .profile-dimension-settings-button svg, .profile-dimension-settings-menu, #productDimensionsCard .profile-taper-button { transition: none; }
}
.profile-taper-hover-overlay { position: absolute; top: 0; left: 0; pointer-events: none; z-index: 5; }
.profile-taper-hover-overlay[hidden] { display: none !important; }
.profile-taper-dialog { padding: 0; border: 0; background: transparent; color: inherit; width: min(94vw, 440px); max-height: 90vh; }
.profile-taper-dialog::backdrop { background: rgb(0 0 0 / 55%); }
.profile-taper-dialog .pf-card { padding: 24px; margin: 0; }
.profile-taper-dialog [hidden] { display: none !important; }
.profile-taper-dialog label { display: block; margin: 14px 0 5px; }
.profile-taper-dialog input, .profile-taper-dialog select { box-sizing: border-box; width: 100%; min-height: 42px; color: inherit; background: transparent; border: 1px solid #89929b; border-radius: 6px; padding: 8px; }
.profile-taper-dialog option { color: #171b1f; background: white; }
.profile-taper-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.profile-taper-error { color: #cf3030; min-height: 1.5em; margin-top: 8px; }
[data-theme="dark"] .profile-taper-status, [data-theme="dark"] .profile-taper-button.is-active, body.dark-mode .profile-taper-status { color: #8ad669; }
