/* --------------------------------------------------------------------------
   1. Structure
   -------------------------------------------------------------------------- */

.main-inner {
    max-width: 1000px;
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   2. Homepage
   -------------------------------------------------------------------------- */

.introduction p {
    font-size: 20px;
}

@media (max-width: 991px) {
    .introduction p {
        font-size: 18px;
    }
}

/* --------------------------------------------------------------------------
   3. VBL Selectors and Cards
   -------------------------------------------------------------------------- */

.classification-selector {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

@media (max-width: 1399px) {
    .classification-selector {
        max-width: 90vw;
    }
}

@media (max-width: 991px) {
    .classification-selector {
        max-width: 1200px;
    }
}

.classification-selector__subtitle {
    font-size: 14px;
    color: #333;
    margin: 0 0 4px;
}

.classification-selector__title {
    font-size: 24px;
    font-weight: 700;
    color: #0090d4;
    margin: 0 0 24px;
}

.classification-selector__title__sm {
    font-size: 22px;
    font-weight: 700;
    color: #0090d4;
    margin: 0 0 24px;
}

.classification-selector__icon {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 80px;
    height: auto;
}

/* OLD Button groups */
.classification-selector__group {
    background: #f2f2f2;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 16px;
}

.classification-selector__group-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px;
}

.classification-selector__buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.classification-selector__btn {
    flex: 1 1 0;
    min-width: 60px;
    padding: 10px 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.classification-selector__btn:hover {
    border-color: #0090d4;
    color: #0090d4;
}

.classification-selector__btn.is-active {
    background: #0090d4;
    color: #fff;
    border-color: #0090d4;
}

/* Button Group */

.classification-grid {
    position: relative;
    
}

.classification-grid__axis-top {
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: #0090d4;
    margin: 0 0 8px;
    letter-spacing: 4px;
    width: 100%;
    display: inline-block;
    padding-left: 44px;
}

.classification-grid__axis-side {
    position: absolute;
    left: 5px;
    top: 50%;
    transform: rotate(-90deg) translateX(-50%);
    transform-origin: left center;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: #0090d4;
    margin: 0;
    white-space: nowrap;
    letter-spacing: 4px;
}

.classification-grid__table {
    width: calc(100% - 24px);
    border-collapse: collapse;
    table-layout: fixed;
    margin-left: 24px;
}

.classification-grid__table thead th {
    padding: 6px 4px;
    font-size: 13px;
    font-weight: 800;
    color: #333;
    text-align: center;
    background: #fff;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.classification-grid__table thead th:first-child {
    background: #fff;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.classification-grid__table tbody th {
    padding: 6px 8px;
    font-size: 13px;
    font-weight: 800;
    color: #333;
    text-align: center;
    background: #fff;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    width: 40px;
}

.classification-grid__table tbody td {
    padding: 0;
    background: #fff;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.classification-grid__cell {
    display: block;
    height: 36px;
    border: none;
    background: #0090d4;
    cursor: pointer;
    padding: 0;
    width: 36px;
    border-radius: 8px;
    margin: 5px;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.3s;
}

@media (max-width: 375px) {
    .classification-grid__cell {
        height: 30px;
        width: 30px;
    }
}

.classification-grid__cell:hover {
    background: #1f4350;
}

.classification-grid__cell:disabled {
    background: #f2f2f2;
    cursor: default;
    pointer-events: none;
}

.classification-grid__cell.is-active {
    background: #1f4350;
    outline: 3px solid #ffd000 !important;
    box-shadow: 0 0 0 0;
}

.classification-grid__cell.is-highlighted {
    background: #f2f2f2;
    cursor: default;
}



/* Result area */
.classification-selector__result {
    margin-top: 32px;
}

.classification-selector__result-title {
    font-size: 22px;
    font-weight: 700;
    color: #0090d4;
    margin: 0 0 16px;
}

/* Prompt message */
.classification-selector__prompt {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #d8e8f5;
    border-left: 4px solid #0090d4;
    border-radius: 4px;
    padding: 16px 20px;
}

.classification-selector__prompt-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: #0090d4;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.classification-selector__prompt p {
    margin: 0;
    font-size: 14px;
    color: #333;
}

/* Classification panels */
.classification-selector__panel[hidden] {
    display: none;
}

.classification-selector__classification-label {
    font-size: 18px;
    font-weight: 600;
    color: #0090d4;
    margin: 0 0 16px;
}

.classification-selector__images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.classification-selector__images img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    object-fit: cover;
}

/* Navigation */

.classification-selector__nav__outer {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    padding: 20px 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    bottom: 0;
    margin-top: 40px;
    box-sizing: border-box;
}

.classification-selector__nav__outer.is-fixed {
    position: fixed;
    bottom: 0px;
    left: 0;
    right: 0;
    max-width: 1200px;
    border-radius: 12px;
    margin-top: 0;
    z-index: 100;
}

@media (max-width: 1399px) {
    .classification-selector__nav__outer.is-fixed {
        max-width: 90vw;
    }
}

@media (max-width: 991px) {
    .classification-selector__nav__outer.is-fixed {
        max-width: 1200px;
        margin: 0 50px;
        padding-bottom: 35px;
    }
}

@media (max-width: 768px) {
    .classification-selector__nav__outer.is-fixed {
        padding: 20px 40px;
        max-width: 1200px;
        margin: 0 20px;
    }
}

@media (max-width: 600px) {
    .classification-selector__nav__outer {
        padding: 20px 20px;
        padding-bottom: 35px;
    }
    .classification-selector__nav__outer.is-fixed {
        padding: 20px 20px;
        padding-bottom: 35px;
    }
}

.scroll-indicator {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.scroll-indicator svg {
    width: 50px;
    height: 50px;
    color: var(--color-primary);
    animation: bounce 1.5s ease-in-out infinite;
}

.is-fixed .scroll-indicator {
    opacity: 1;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(4px); }
}

@media (max-width: 480px) {
    .classification-selector__nav__outer.is-fixed {
        padding: 12px 20px;
        padding-bottom: 35px;
    }
    .scroll-indicator svg {
        width: 30px;
        height: 30px;
    }
}

.classification-selector__nav {
    display: flex;
    justify-content: space-between;
    margin-top: 0;
}

.classification-selector__nav-btn {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.classification-selector__nav-btn--prev {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    text-decoration: none;
    transition: all 0.3s ease;
}

.classification-selector__nav-btn--prev:hover {
    border-color: #0090d4;
}

.classification-selector__nav-btn--next {
    background: #0090d4;
    color: #fff;
    border: none;
    text-decoration: none;
    transition: all 0.3s ease;
}

.classification-selector__nav-btn--next:hover {
    background: var(--color-primary-hover);
    color: #fff;
}

.header-divider {
    display: block;
    width: calc(100% + 80px);
    background: rgba(0, 0, 0, 0.3);
    height: 1px;
    margin-left: -40px;
}

.classification-selector__header {
    margin-bottom: 25px;
}

/* Responsive */
@media (max-width: 600px) {
    .classification-selector {
        padding: 24px 20px;
    }

    .classification-selector__icon {
        top: 24px;
        right: 20px;
        width: 60px;
    }

    .classification-selector__buttons {
        gap: 6px;
    }

    .classification-selector__btn {
        min-width: 60px;
        padding: 8px 4px;
        font-size: 12px;
    }

    .classification-selector__images {
        grid-template-columns: 1fr;
    }
    .header-divider {
        display: block;
        width: calc(100% + 40px);
        background: rgba(0, 0, 0, 0.3);
        height: 1px;
        margin-left: -20px;
    }
}

@media (max-width: 375px) {
    .classification-selector__btn {
        min-width: 50px;
        padding: 8px 4px;
        font-size: 12px;
    }
}

/* Panel Fade */

.classification-selector__panel {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.classification-selector__panel.is-visible {
    opacity: 1;
}

.classification-selector__prompt {
    transition: opacity 0.3s ease;
}

/* Traffic Lights */

.market-signals__title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.market-signals__card {
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.market-signals__item {
    
}

.market-signals__gradient {
    background: linear-gradient(180deg, rgba(233, 40, 39, 1) 0%, rgba(241, 188, 67, 1) 49%, rgba(1, 152, 90, 1) 100%);
    width: 56px;
    border-radius: 6px;
    margin-right: 15px;
}

.market-signals__outer {
    display: flex;
}

.market-signals__dot {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    flex-shrink: 0;
}

.market-signals__dot--red   { background-color: #d93025; }
.market-signals__dot--amber { background-color: #d4882a; }
.market-signals__dot--green { background-color: #2e8b3e; }

.market-signals__list {
    list-style: disc;
    padding-left: 1.1rem;
    margin-bottom: 20px;
}

.market-signals__list li {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
}

/* Explanation Page with Hotspots */

.hotspot-viewer__image-wrap {
    position: relative;
    display: block;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.hotspot-viewer__image {
    display: block;
    width: 100%;
    height: auto;
}

/* Controls */
.hotspot-viewer__controls {
    display: flex;
    gap: 8px;
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    flex-wrap: wrap;
}

.hotspot-viewer__toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
}

.hotspot-viewer__toggle.is-active[data-point-type="fat"] {
    background: #dc3545;
    color: #fff;
}

.hotspot-viewer__toggle.is-active[data-point-type="conformation"] {
    background: #198754;
    color: #fff;
}

.hotspot-viewer__toggle-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid currentColor;
    flex-shrink: 0;
}

.hotspot-viewer__toggle.is-active .hotspot-viewer__toggle-icon {
    border-color: #fff;
    background: #fff;
    position: relative;
}

.hotspot-viewer__toggle.is-active .hotspot-viewer__toggle-icon::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 11px;
    line-height: 1;
}

.hotspot-viewer__toggle.is-active[data-point-type="fat"] .hotspot-viewer__toggle-icon::after {
    color: #dc3545;
}

.hotspot-viewer__toggle.is-active[data-point-type="conformation"] .hotspot-viewer__toggle-icon::after {
    color: #198754;
}

.hotspot-viewer__toggle-icon--fat {
    border-color: #dc3545;
}

.hotspot-viewer__toggle-icon--conformation {
    border-color: #198754;
}

/* Hotspot points */
.hotspot-viewer__point {
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 3px solid #fff;
    transform: translate(-50%, -50%);
    cursor: pointer;
    padding: 0;
    transition: opacity 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hotspot-viewer__point:hover {
    transform: translate(-50%, -50%) scale(1.15);
}

.hotspot-viewer__point[hidden] {
    display: none;
}

.hotspot-viewer__point--fat {
    background: #dc3545;
}

.hotspot-viewer__point--conformation {
    background: #198754;
}

/* Pulse animation */
.hotspot-viewer__point::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: hotspot-pulse 2s ease-out infinite;
}

.hotspot-viewer__point--fat::before {
    background: rgba(220, 53, 69, 0.4);
}

.hotspot-viewer__point--conformation::before {
    background: rgba(25, 135, 84, 0.4);
}

@keyframes hotspot-pulse {
    0% {
        width: 100%;
        height: 100%;
        opacity: 1;
    }
    100% {
        width: 200%;
        height: 200%;
        opacity: 0;
    }
}

/* Responsive point sizing */
@media (max-width: 768px) {
    .hotspot-viewer__point {
        width: 24px;
        height: 24px;
        border-width: 2px;
    }

    .hotspot-viewer__controls {
        position: relative;
        top: auto;
        left: auto;
        margin-bottom: 8px;
        margin-top: 10px;
    }

    .hotspot-viewer__toggle {
        font-size: 12px;
        padding: 6px 12px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hotspot-viewer__point {
        width: 20px;
        height: 20px;
    }
}

.hotspot-viewer {
    position: relative;
}

/* VBL Cards */

.vbl-card {
    border-radius: 14px;
    background: #E5F4FB;
    overflow: hidden;
    height: 100%;
}

.vbl-card-body {
    padding: 30px;
    display: block;
}

/* --------------------------------------------------------------------------
   4. Assessment Points Video Controls
   -------------------------------------------------------------------------- */

/* Controls */
.assessment-viewer__controls {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.assessment-viewer__group {
    flex: 1;
    background: #f2f2f2;
    border-radius: 8px;
    padding: 16px 20px;
}

.assessment-viewer__group-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px;
}

.assessment-viewer__checkboxes {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.assessment-viewer__checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
}

.assessment-viewer__checkbox:hover {
    border-color: #0090d4;
}

.assessment-viewer__checkbox.is-active {
    border-color: #0090d4;
    background: #fff;
}

.assessment-viewer__check-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid #ccc;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
}

.assessment-viewer__checkbox.is-active .assessment-viewer__check-icon {
    background: #0090d4;
    border-color: #0090d4;
}

.assessment-viewer__checkbox.is-active .assessment-viewer__check-icon::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

/* Content area */
.assessment-viewer__content {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 24px;
    min-height: 400px;
    position: relative;
}

.assessment-viewer__content-title {
    font-size: 20px;
    font-weight: 700;
    color: #0090d4;
    margin: 0 0 16px;
}

.assessment-viewer__video-panel {
    display: none;
}

.assessment-viewer__video-panel.is-active {
    display: block;
}

.assessment-viewer__video {
    width: 100%;
    max-width: 500px;
    display: block;
    margin: 0 auto;
    aspect-ratio: 1;
    object-fit: contain;
    background: #fff;
}

/* Scrubber */
.assessment-viewer__scrubber {
    margin-bottom: 32px;
}

.assessment-viewer__track {
    position: relative;
    height: 40px;
    display: flex;
    align-items: center;
}

.assessment-viewer__track-line {
    width: 100%;
    height: 6px;
    background: #ddd;
    border-radius: 3px;
}

.assessment-viewer__handle {
    position: absolute;
    width: 24px;
    height: 24px;
    background: #0090d4;
    border-radius: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: left 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    cursor: grab;
}

.assessment-viewer__handle:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.1);
}

.assessment-viewer__labels {
    position: relative;
    height: 30px;
    margin-top: 8px;
}

.assessment-viewer__label {
    position: absolute;
    font-size: 14px;
    font-weight: 500;
    color: #999;
    cursor: pointer;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.assessment-viewer__label:first-child {
    text-align: left;
}

.assessment-viewer__label:last-child {
    text-align: right;
}

.assessment-viewer__label:hover {
    color: #333;
}

.assessment-viewer__label.is-active {
    color: #0090d4;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    .assessment-viewer__controls {
        flex-direction: column;
    }

    .assessment-viewer__video {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .assessment-viewer__checkboxes {
        flex-direction: column;
    }

    .assessment-viewer__label {
        font-size: 12px;
    }
}

.virtual-beast__scrubber {
    background: #f2f2f2;
    border-radius: 8px;
    padding: 20px 24px;
    margin-top: 24px;
}

.virtual-beast__track {
    position: relative;
    height: 24px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.virtual-beast__track-line {
    width: 100%;
    height: 6px;
    background: #ddd;
    border-radius: 3px;
}

.virtual-beast__track-progress {
    position: absolute;
    left: 0;
    height: 6px;
    background: #0090d4;
    border-radius: 3px;
    width: 0%;
    pointer-events: none;
}

.virtual-beast__handle {
    position: absolute;
    width: 24px;
    height: 24px;
    background: #0090d4;
    border-radius: 50%;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    transition: left 0.1s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    cursor: grab;
}

.virtual-beast__handle:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.1);
}


/* --------------------------------------------------------------------------
   5. Fat Comparison
   -------------------------------------------------------------------------- */

/* Tabs */
.comparison-viewer__tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    width: 100%;
}

.comparison-viewer__tab {
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    flex: 1;
    text-decoration: none;
}

@media (max-width: 480px) {
    .comparison-viewer__tab {
        flex: 0;
    }
    .comparison-viewer__tabs {
        flex-direction: column;
    }
}

.comparison-viewer__tab:hover {
    border-color: #0090d4;
}

.comparison-viewer__tab.is-active {
    background: #0090d4;
    border-color: #0090d4;
    color: #fff;
}

.comparison-viewer__tab_selected {
    background: #0090d4 !important;
    border-color: #0090d4 !important;
    color: #fff !important;
}

/* Video */
.comparison-viewer__panel {
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.comparison-viewer__video {
    width: 100%;
    display: block;
    aspect-ratio: 4/3;
    object-fit: contain;
    background: #fff;
}

/* Scrubber */
.comparison-viewer__scrubber {
    background: #f2f2f2;
    border-radius: 8px;
    padding: 20px 24px;
    margin-top: 24px;
}

.comparison-viewer__track {
    position: relative;
    height: 24px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.comparison-viewer__track-line {
    width: 100%;
    height: 6px;
    background: #ddd;
    border-radius: 3px;
}

.comparison-viewer__track-progress {
    position: absolute;
    left: 0;
    height: 6px;
    background: #0090d4;
    border-radius: 3px;
    width: 0%;
    pointer-events: none;
}

.comparison-viewer__handle {
    position: absolute;
    width: 24px;
    height: 24px;
    background: #0090d4;
    border-radius: 50%;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    cursor: grab;
}

.comparison-viewer__handle:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.1);
}

.comparison-viewer__labels {
    position: relative;
    height: 30px;
    margin-top: 8px;
}

.comparison-viewer__label {
    position: absolute;
    font-size: 14px;
    font-weight: 500;
    color: #999;
    cursor: pointer;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.comparison-viewer__label.is-active {
    color: #0090d4;
    font-weight: 700;
}

/* Carcase */
.comparison-viewer__carcase {
    margin-top: 24px;
}

@media (max-width: 768px) {
    .comparison-viewer__tabs {
        max-width: 100%;
    }
}

.classification-selector__btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #ffffff;
    border-color: #ddd;
    color: #999;
}


/* --------------------------------------------------------------------------
   6. Carcase cuts
   -------------------------------------------------------------------------- */


.control-outer {
    border-radius: 10px;
    padding:10px;
    overflow: hidden;
    border: 1px solid #CECECE;
    width: 100%;
    background: #ffffff;
    position: relative;
}

.ctrls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ctrls .comparison-viewer__tab {
    flex: 1 1 100%;
}

.ctrls .comparison-viewer__tab:nth-last-child(-n+2) {
    flex: 1 1 calc(50% - 4px);
}

.cut-list-toggle {
    display: none;
    width: 100%;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    background: #0090d4;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    position: relative;
}

.cut-list-toggle::after {
    content: '▼';
    position: absolute;
    right: 20px;
    transition: transform 0.3s ease;
    font-size: 12px;
}

.cut-list-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

@media (max-width: 991px) {
    .cut-list-toggle {
        display: block;
    }
}

ul.cut-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cuts_box {
    position: absolute;
    z-index: 2;
    top: 10px;
    border-radius: 10px;
    border: 1px solid #CECECE;
    width: 270px;
    background: #ffffff;
    padding: 10px;
    left: 10px;
    display: none;
}

.pdf_link {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 3px;
    text-align: left;
}

.cuts_box--farmer {
    position: relative;
}

@media (max-width: 768px) {
    .cuts_box {
        width: 200px;
    }
}

@media (max-width: 425px) {
    .cuts_box {
        width: calc(100% - 20px);
    }
}

#obj_box {
    width: 100%;
    position: relative;
    overflow: hidden;
}

#obj_box canvas {
    display: block;
    width: 100% !important;
    height: auto !important;
}

#overlay_help {
    display: none;
}

.hideit {
    display: none;
}

.content_overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    width: calc(100% - 20px);
    height: auto;
    background: #E5F4FB;
    z-index: 1;
    padding: 30px;
    border-radius: 10px;
}

@media (max-width: 425px) {
    .content_overlay {
        padding: 20px;
    }
}

.cuts_box__close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #0090d4;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.8em;
    line-height: 1;
    cursor: pointer;
    z-index: 1;
    transition: all 0.3s ease;
}

.cuts_box__close:hover {
    background: #1f4350;
}

/* Weight Issues */

.weight-issue__img1,
.weight-issue__img2 {
    transition: opacity 0.3s ease;
}

/* --------------------------------------------------------------------------
   7. Cut Map
   -------------------------------------------------------------------------- */

.beef-cuts__image-wrapper {
    position: relative;
    max-width: 1024px;
    margin: 0 auto;
}

.beef-cuts__image {
    width: 100%;
    height: auto;
    display: block;
}

.beef-cuts__svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


.beef-cuts__hotspot {
    fill: transparent;
    cursor: pointer;
    transition: fill 0.2s ease;
}

.beef-cuts__hotspot:hover {
    fill: rgba(0, 144, 212, 0.25);
}

.beef-cuts__modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.beef-cuts__modal.is-visible {
    display: flex;
    opacity: 1;
}

.beef-cuts__modal-content {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    max-width: 600px;
    width: 90%;
    position: relative;
    text-align: center;
}

.beef-cuts__modal-image {
    width: 100%;
    border-radius: 4px;
}

.beef-cuts__modal-caption {
    margin-top: 12px;
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
}

.beef-cuts__modal-close {
    position: absolute;
    top: 29px;
    right: 30px;
    background: none;
    border: none;
    font-size: 1.8em;
    cursor: pointer;
    color: #fff;
    line-height: 1;
    background: #0090d4;
    border-radius: 50%;
    transition: all 0.3s;
}

.beef-cuts__modal-close:hover {
    color: #fff;
    background: #1f4350;
}

.beef-cuts__data {
    display: none;
}

.tooltip {
    font-size: 20px;
}

.image-outer {
    max-height: 508px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.classification-selector__images img.is-portrait {
    width: auto;          /* let width shrink naturally */
    height: 100%;         /* fill the container vertically */
    max-height: 508px;
    object-fit: contain;
    display: block;
}

.classification__whats__changed {
    position: absolute;
    right: 13px;
    top: 13px;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 15px;
    width: 220px;
    color: white;
    border-radius: 5px;
    font-size: 14px;
}

@media (max-width: 991px) {
    .classification__whats__changed {
        position: relative;
        left: 0px;
        top: 0;
        background: rgba(0, 0, 0, 0.6);
        padding: 10px 15px;
        width: auto;
        color: white;
        border-radius: 5px;
        font-size: 14px;
    }
}


/* --------------------------------------------------------------------------
   8. Offline storage banner
   -------------------------------------------------------------------------- */

.offline-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #00273F;
    color: #fff;
    z-index: 10000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    font-family: inherit;
}

.offline-banner__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.offline-banner__text p {
    margin: 4px 0 0;
    font-size: 14px;
    opacity: 0.85;
}

.offline-banner__text strong {
    font-size: 16px;
}

.offline-banner__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.offline-banner__btn {
    background: #0090D4;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.offline-banner__btn:hover {
    background: #007AB8;
}

.offline-banner__btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.offline-banner__dismiss {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.7;
    padding: 4px 8px;
    line-height: 1;
}

.offline-banner__dismiss:hover {
    opacity: 1;
}

.offline-banner__progress {
    padding: 0 24px 16px;
}

.offline-banner__progress-bar {
    height: 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.offline-banner__progress-fill {
    height: 100%;
    background: #0090D4;
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s ease;
}

.offline-banner__progress-text {
    font-size: 13px;
    opacity: 0.85;
}

.offline-banner__complete {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: #0A7A3E;
    font-size: 15px;
    font-weight: 600;
}

@media (max-width: 576px) {
    .offline-banner__content {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 16px;
    }

    .offline-banner__actions {
        width: 100%;
    }

    .offline-banner__btn {
        flex: 1;
    }
}

.classification-selector__how-to-use {
    margin-top: 20px;
    display: block;
}

.btn {
    text-align: left;
}