﻿#blazor-error-ui {
    display: none;
    padding: .75rem 1.25rem;
    position: fixed;
    width: 30vw;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999999;
    color: #856404;
    background-color: #fff3cd;
}

    #blazor-error-ui > div {
        padding: 1rem 0 .3rem 0;
    }

    #blazor-error-ui .reload {
        padding: .5rem;
        color: #212529;
        background-color: #ffc107;
        text-decoration: none;
    }

.scaled-50 {
    transform: scale(0.5);
    transform-origin: 0 0;
}

.scaled-75 {
    transform: scale(0.75);
    transform-origin: 0 0;
}


.vh-layout-0 {
    height: 0;
    display: none;
}

.vh-layout-50 {
    height: auto;
    min-height: 0;
}

.vh-layout-100 {
    height: auto;
    min-height: 0;
}

.vh-layout-200 {
    height: auto;
    min-height: 0;
}

.vw-layout-0 {
    width: 0;
    display: none;
}

.vw-layout-50 {
}

.vw-layout-100 {
}


.vh-block-0 {
    height: 0;
    display: none;
}

.vh-block-50 {
}

.vh-block-100 {
}

.vh-block-200 {
}

.vw-block-0 {
    width: 0;
    display: none;
}

.vw-block-50 {
    display: inline-block;
    width: calc(50vw - 25px);
}

.vw-block-100 {
    width: calc(100vw - 40px);
}

#layout-block-0 {
    border: 1px solid;
    border-color: black;
    display: inline-flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: hidden;
    padding: 4px;
    border-radius: 3px;
    vertical-align: top;
}

#layout-block-1 {
    border: 1px solid;
    border-color: black;
    display: inline-flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: hidden;
    padding: 4px;
    border-radius: 3px;
    vertical-align: top;
}

#layout-block-0.vw-block-0,
#layout-block-1.vw-block-0,
#layout-block-0.vh-block-0,
#layout-block-1.vh-block-0 {
    display: none;
}

#layout-block-0.vh-block-50,
#layout-block-1.vh-block-50 {
    height: calc((100dvh - var(--vi-job-toolbar-height, 48px) - 2rem) / 2);
    min-height: 220px;
}

#layout-block-0.vh-block-100,
#layout-block-1.vh-block-100,
#layout-block-0.vh-block-200,
#layout-block-1.vh-block-200 {
    height: calc(100dvh - var(--vi-job-toolbar-height, 48px) - 1rem);
    min-height: 320px;
}

#layout-block-0 > .vi-tab-group,
#layout-block-1 > .vi-tab-group {
    flex: 0 0 auto;
    min-width: 0;
    flex-wrap: nowrap;
    overflow-x: auto !important;
    overflow-y: hidden;
    white-space: nowrap;
}

.job-name-header {
    position: absolute;
    top: 0;
    right: 0px;
    margin: 10px;
    z-index: 20;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    padding: 0.25rem 0.625rem;
    font-weight: 600;
    font-size: 0.75rem;
    box-shadow: 0 4px 12px -4px rgba(15, 23, 42, 0.15);
}

.mouse_circle {
    width: 25px !important;
    height: 25px !important;
    border-radius: 50%;
    border-style: solid;
    border-width: 2px;
    border-color: red;
    position: absolute;
    display: none;
    pointer-events: none;
    z-index: 100;
}

.color_meas_location {
    border-style: solid;
    border-width: 2px;
    border-color: hotpink;
    position: absolute;
    display: none;
    pointer-events: none;
    z-index: 99;
}

.history-slider {
    vertical-align: middle;
    height: 10px;
}

.zoom {
    position: relative;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.vi-canvas-error-overlay {
    position: absolute;
    inset: 0;
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    pointer-events: none;
    background: rgba(255, 247, 237, 0.68);
    box-sizing: border-box;
}

.vi-canvas-error-overlay.is-loading {
    background: rgba(239, 246, 255, 0.66);
}

.vi-canvas-error-card {
    max-width: min(560px, calc(100% - 32px));
    border: 1px solid rgba(249, 115, 22, 0.5);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 45px -24px rgba(124, 45, 18, 0.55);
    color: #7c2d12;
    padding: 18px 22px;
    text-align: center;
}

.vi-canvas-error-overlay.is-loading .vi-canvas-error-card {
    border-color: rgba(20, 169, 229, 0.45);
    box-shadow: 0 18px 45px -24px rgba(15, 23, 42, 0.5);
    color: #0f3b57;
}

.vi-canvas-error-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 10px;
    border: 2px solid #f97316;
    border-radius: 9999px;
    background: #ffedd5;
    color: #c2410c;
    font-size: 25px;
    font-weight: 800;
    line-height: 1;
}

.vi-canvas-error-overlay.is-loading .vi-canvas-error-icon {
    border-color: #14A9E5;
    background: #e0f2fe;
    color: #0b7fb0;
    font-size: 18px;
}

.vi-canvas-error-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
}

.vi-canvas-error-detail {
    margin-top: 6px;
    color: #9a3412;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
}

.vi-canvas-error-overlay.is-loading .vi-canvas-error-detail {
    color: #0b5275;
}

.canvas-zoom {
    z-index: 200;
    position: absolute;
    top: 0;
    right: 0;
    border-color: red;
    border-style: solid;
    border-width: 2px;
    background-color: white;
    border-radius: 50%;
    overflow: hidden;
    margin: 5px;
    cursor: grab;
}

.pixel-info {
    z-index: 200;
    position: absolute;
    /*right: 0;
    bottom: 0;*/
    border-color: black;
    border-style: solid;
    border-width: 2px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    font-size: 10px;
    padding: 5px;
    margin: 5px;
    max-width: 175px;
    text-overflow: ellipsis;
    text-wrap: none;
    white-space: nowrap;
    font-family: 'Roboto Condensed', sans-serif;
    /*transform: scaleX(0.8);*/
    transform-origin: 0% 0%;
    overflow: hidden;
    line-height: 90%;
    cursor: grab;
}

.canvas-print-zone {
    position: absolute;
    overflow: hidden;
    z-index: 50;
    top: 0;
    left: 0;
    pointer-events: none;
    transform-origin: 50% 50%;
    transition: none 0s ease 0s;
}

.prz-line {
    position: absolute;
    pointer-events: none;
    border-left: 1px solid rgba(128, 128, 128, 0.5);
    height: 100%;
}

.prz-lines {
    position: absolute;
    overflow: hidden;
    z-index: 100;
    pointer-events: none;
    transform-origin: 50% 50%;
    transition: none 0s ease 0s;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
}

.prz-label {
    position: absolute;
    pointer-events: none;
    background-color: rgba(128, 128, 128, 0.5);
    border-radius: 10%;
    height: 15px;
    width: 15px;
    text-align: center;
    vertical-align: middle;
    transform-origin: 0 0;
    transition: none 0s ease 0s;
    font-size: 10px;
}


.error-rects {
    position: absolute;
    /*overflow: hidden;*/
    z-index: 100;
    pointer-events: none;
    transform-origin: 50% 50%;
    transition: none 0s ease 0s;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
}

.error-rect {
    position: absolute;
    pointer-events: none;
    border: 10px solid rgba(256, 0, 0, 0.5);
}

.color-rect {
    width: 40px;
    height: 12px;
    border-color: black;
    border-width: 1px;
    border-style: solid;
}

.color-measure-display td {
    padding: 2px !important;
    margin: 0 !important;
    text-align: center;
    vertical-align: middle;
}

.color-measure-display th {
    padding: 2px !important;
    margin: 0 !important;
    text-align: center;
    vertical-align: middle;
}

.color-measure-display table {
    margin: 0 !important;
    text-align: center;
    vertical-align: middle;
}

.color-measure-display {
    z-index: 200;
    position: absolute;
    border-color: black;
    border-style: solid;
    border-width: 2px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    font-size: 14px;
    padding: 5px;
    margin: 5px;
    text-overflow: ellipsis;
    text-wrap: none;
    white-space: nowrap;
    transform-origin: 0% 0%;
    overflow: hidden;
    line-height: 90%;
    cursor: grab;
}

.color-corr {
    width: 75px;
    height:  10px;
    border-color: black;
    border-style: solid;
    border-width: 1px;
    position: relative;
}

.color-corr-value {
    height: 100%;
    width: 100%;
    transform-origin: 0 0;
}

.color-corr-zero {
    width: 50%;
    height: 100%;
    top: 0;
    left: 0;
    position: absolute;
    border-right: 1px solid black;
}

.color-corr-v {
    width: 25px;
    height: 75px;
    border-color: black;
    border-style: solid;
    border-width: 1px;
    position: relative;
}

.color-corr-value-v {
    height: 100%;
    width: 100%;
    transform-origin: 0 0;
}

.color-corr-zero-v {
    width: 100%;
    height: 50%;
    top: 0;
    left: 0;
    position: absolute;
    border-bottom: 1px solid black;
}

.chart-container {
    width: calc(100vw - 70px) !important;
    max-width: calc(100vw - 70px) !important;
}

.error-rects-det {
    position: absolute;
    /*overflow: hidden;*/
    z-index: 100;
    pointer-events: none;
    transform-origin: 50% 50%;
    transition: none 0s ease 0s;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
}


.full-error-navi-on {
}

.rainbow-active {
    background: linear-gradient( 90deg, rgba(255, 0, 0, 0.7) 0%, rgba(255, 154, 0, 0.7) 10%, rgba(208, 222, 33, 0.7) 20%, rgba(79, 220, 74, 0.7) 30%, rgba(63, 218, 216, 0.7) 40%, rgba(47, 201, 226, 0.7) 50%, rgba(28, 127, 238, 0.7) 60%, rgba(95, 21, 242, 0.7) 70%, rgba(186, 12, 248, 0.7) 80%, rgba(251, 7, 217, 0.7) 90%, rgba(255, 0, 0, 0.7) 100% );
}

.rainbow-inactive {
    background: linear-gradient( 90deg, rgba(255, 0, 0, 0.25) 0%, rgba(255, 154, 0, 0.25) 10%, rgba(208, 222, 33, 0.25) 20%, rgba(79, 220, 74, 0.25) 30%, rgba(63, 218, 216, 0.25) 40%, rgba(47, 201, 226, 0.25) 50%, rgba(28, 127, 238, 0.25) 60%, rgba(95, 21, 242, 0.25) 70%, rgba(186, 12, 248, 0.25) 80%, rgba(251, 7, 217, 0.25) 90%, rgba(255, 0, 0, 0.25) 100% );
}

.img-error-area {
    display: block;
    overflow: hidden;
}

.img-last-error-image {
    width: 200px;
    display: block;
    float: left;
    justify-content: center;
    text-align: center;
    align-items: center;
}

.img-scrollarea {
    display: block;
    float: left;
    margin: 10px;
    padding: 0;
    width: calc(100vw - 50px);
    overflow-x: scroll;
    overflow-y: hidden;
    white-space: nowrap;
    background-color: transparent;
    justify-content: center;
    align-items: center;
    text-align: center;
    scrollbar-width: initial;
    user-select: none;
}

.img-scrollarea::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

.img-scrollarea::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
    border-radius: 10px;
}

.img-scrollarea::-webkit-scrollbar-thumb {
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5);
}

.img-scrollarea-active::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

.img-scrollarea-active::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
    border-radius: 10px;
}

.img-scrollarea-active::-webkit-scrollbar-thumb {
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5);
}


.img-scrollarea-active {
    display: block;
    float: left;
    margin: 10px;
    padding: 0;
    width: calc(100vw - 300px);
    overflow-x: scroll;
    overflow-y: hidden;
    white-space: nowrap;
    background-color: transparent;
    justify-content: center;
    align-items: center;
    text-align: center;
    scrollbar-width: initial;
    user-select: none;
}


.img-scrollitem {
    width: 200px;
    height: 200px;
    margin: 0px;
    padding: 5px;
    justify-content: center;
    cursor: pointer;
    display: inline-block;
    overflow: hidden;
    position: relative;
}

.img-rollchange {
    width: 200px;
    height: 200px;
    background-color: white;
    justify-content: center;
    display: inline-block;
    overflow: hidden;
}

.img-rollchange span {
    width: 200px;
    height: 200px;
    font-size: 64px !important;
}

.img-scrollitem img {
    max-width: 160px;
    max-height: 160px;
    /*filter: brightness(170%) contrast(110%);*/
}

.img-scrollitem div {
    font-weight: bold;
    font-size: smaller;
}

.img-scrollitem-flag {
    position: absolute;
    z-index: 100;
    top: 5px;
    left: 5px;
}

.img-scrollitem-ai {
    position: absolute;
    z-index: 101;
    right: 6px;
    bottom: 6px;
    max-width: 188px;
    padding: 2px 6px;
    border-radius: 3px;
    background: rgba(30, 31, 38, 0.86);
    color: white;
    font-size: 11px !important;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.flag-red i {
    color: red !important;
}

.flag-green i {
    color: green !important;
    font-weight: bold !important;
    font-size: 20px;
}

.flag-splice i {
    color: goldenrod !important;
    font-weight: bold !important;
    font-size: 20px;
}

.img-selected {
    border-color: gray !important;
    border-width: 3px !important;
    border-style: dashed !important;
}

.img-unconfirmed {
    border-color: darkviolet;
    border-width: 1px;
    border-style: solid;
}

.img-confirmed-yes {
    border-color: red;
    border-width: 1px;
    border-style: solid;
}

.img-confirmed-no {
    border-color: green;
    border-width: 1px;
    border-style: solid;
}

.img-valid {
    background-color: rgba(0, 255, 0, 0.1);
}

.img-invalid {
    background-color: rgba(255, 0, 0, 0.1);
}

.img-filtered {
    border-color: darkgray;
    border-width: 1px;
    border-style: solid;
    background-color: rgba(64, 64, 64, 0.1);
} 

.filter-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
}

.filter-field {
   margin-left: 10px;
}

.filter-field input {
    vertical-align: middle;
    display: inline-block;
}

.filter-field label {
    display: inline-block;
    padding: 0;
    vertical-align: top;
}

.error-tooltip {
    display: flex;
}

.error-tooltip-item {
    width: calc(0.23*100vw);
    height: calc(0.23*100vw);
}

.error-tooltip-item img {
    object-fit: contain;
    width: 100%;
    height: 100%;
    /*filter: brightness(170%) contrast(110%);*/
}

.error-tooltip-item svg {
    width: 100%;
    height: 100%;
}

.rsvg {
    display: block;
    text-align: center;
    width: 100%;
    margin: 0;
    height: 150px;
    background-color: white;
    border-style: solid;
    border-width: 1px;
    border-color: black;
    overflow: hidden;
}

.rsvg-container {
    position: relative;
    width: calc(100vw - 50px);
    margin: 0 15px;
}

.rsvg-flag-overlay {
    position: absolute;
    top: 4px;
    left: 0;
    right: 0;
    pointer-events: none;
}

.rsvg-flag-overlay .rsvg-flag-icon {
    position: absolute;
}


.job-images-tooltip {
}

.rsvg-rng-0 {
    fill: rgb(255, 182, 182);
}

.rsvg-rng-1 {
    fill: rgb(182, 255, 182);
}

.rsvg-rng-2 {
    fill: rgba(128, 128, 128, 0.5);
}

.rsvg-sel-rect {
    fill: rgba(0, 0, 255, 0.25);
}

.rsvg-lcol {
    stroke-width: 1;
    stroke: lightgray;
}

.rsvg-dg {
    stroke-width: 1;
    stroke: lightgray;
    stroke-dasharray: 2;
}

.rsvg-err {
    stroke-width: 2;
    stroke: darkviolet;
}

.rsvg-err-0 {
    stroke-width: 2;
    stroke: forestgreen;
}

.rsvg-err-1 {
    stroke-width: 2;
    stroke: orangered;
}

.rsvg-err-hovered {
    stroke-width: 4;
    stroke:darkgoldenrod;
    z-index: 1005;
    opacity: 1.0;
}

.rsvg-err-filtered {
    stroke: darkgray !important;
}

.rsvg-grp-0 {
    fill: rgba(0, 255, 0, 0.25);
    opacity: 0.75;
    pointer-events: none;
}

.rsvg-grp-1 {
    fill: rgba(255, 0, 0, 0.25);
    opacity: 0.75;
    pointer-events: none;
}

.rsvg-flag-red {
    stroke-width: 2;
    stroke: darkred;
    stroke-dasharray: 2;
}

.rsvg-flag-green {
    stroke-width: 2;
    stroke: darkgreen;
    stroke-dasharray: 2;
}

.rsvg-flag-splice {
    stroke-width: 2;
    stroke: goldenrod;
    stroke-dasharray: 2;
}

.rsvg-flag-icon {
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
    pointer-events: none;
}

.rsvg-flag-icon-red {
    color: darkred;
}

.rsvg-flag-icon-green {
    color: darkgreen;
}

.rsvg-flag-icon-splice {
    color: goldenrod;
}

.rsvg-tpl {
    stroke-width: 2;
    stroke: black;
    stroke-dasharray: 2;
}


.roll-title {
    font-size: small;
    font-weight: bold;
    margin: 5px 15px 0px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.roll-title > span:not(#button-toolbar) {
    /* This will allow the span elements to take their natural size */
    flex-shrink: 0;
}

#button-toolbar {
    display: flex;
    justify-content: center;
    align-items: center;
    /* This will allow the span to take up the remaining space */
    flex-grow: 1;
}


.cb-master-details {
    vertical-align: baseline;
    border: 1px solid black;
}

.rsvgc {
    display: block;
    text-align: center;
    width: calc(100vw - 50px);
    margin: 0 15px 0 15px;
    height: 270px;
    background-color: white;
    border-style: solid;
    border-width: 1px;
    border-color: black;
    overflow: hidden;
    shape-rendering: optimizeSpeed;
    text-rendering: optimizeSpeed;
}

.rsvgco {
    display: block;
    text-align: center;
    width: calc(100vw - 50px);
    margin: 0px 15px 0 15px;
    height: 30px;
    background-color: white;
    border-style: solid;
    border-width: 1px;
    border-color: black;
    overflow: hidden;
    cursor: pointer;
    shape-rendering: optimizeSpeed;
    text-rendering: optimizeSpeed;
}

.rsvgcsp {
    display: block;
    text-align: center;
    width: calc(100vw - 50px);
    margin: 0px 15px 0 15px;
    height: 30px;
    background-color: white;
    border-style: solid;
    border-width: 1px;
    border-color: black;
    overflow: hidden;
    shape-rendering: optimizeSpeed;
    text-rendering: optimizeSpeed;
}

.rsvgcsp-pts {
    stroke-width: 2;
    stroke: lightblue;
    fill: none;
}

.rsvgmqdc-pts {
    stroke-width: 2;
    stroke: lightgreen;
    fill: none;
}

.rsvgmqdf-pts {
    stroke-width: 2;
    stroke: lightblue;
    fill: none;
}

.rsvgc-l {
    stroke-width: 1;
}

.roll-colorsel-container {
    display: block;
    width: 95%;
    margin: 0 15px 0 15px;
}

.no-insp-error {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    z-index: 9999;
    opacity: 0.7;
    pointer-events: none;
}

.no-insp-error svg {
    width: 100%;
    height: 100%;
}

.no-insp-error text {
    fill: red;
    font-size: 18;
    text-anchor: middle;
    dominant-baseline: middle;
}

.status-light-overlay {
    position: fixed;
    top: 9px;
    left: 6px;
    z-index: 30;
    pointer-events: none;
    width: 7px;
    height: 22px;
    border: 1px solid rgba(15, 23, 42, 0.18);
    border-radius: 2px;
    background: transparent;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.18);
    box-sizing: border-box;
}

    .status-light-overlay.green {
        background: #10b981;
    }

    .status-light-overlay.orange {
        background: #f59e0b;
    }

    .status-light-overlay.red {
        background: #ef4444;
    }

    .status-light-overlay.blinking-red {
        background: #ef4444;
        animation: blink 1s infinite;
    }

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.1;
    }

    100% {
        opacity: 1;
    }
}

.color-control-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 10px 10px 10px;
}

.ink-chip-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #f3f4f6;
}

.ink-chip-title {
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ink-chip-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    line-height: 1.2;
}

.color-control-table {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.color-matrix-frame {
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

.color-matrix {
    display: grid;
    gap: 2px;
    align-items: stretch;
    padding-bottom: 2px;
    position: relative;
}

.matrix-corner {
    position: sticky;
    left: 0;
    background: linear-gradient(90deg, #f8fafc 70%, rgba(248, 250, 252, 0));
    border-radius: 10px;
}

.matrix-zone-header {
    text-align: center;
    font-weight: 700;
    font-size: 11px;
    padding: 4px 3px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    white-space: nowrap;
}

.matrix-row-label {
    position: sticky;
    left: 0;
    display: flex;
    gap: 6px;
    align-items: center;
    padding: 4px 6px;
    background: linear-gradient(90deg, #ffffff 70%, rgba(255, 255, 255, 0));
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
    z-index: 1;
}

.matrix-cell {
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 4px 2px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6), 0 2px 8px rgba(15, 23, 42, 0.06);
    min-width: 36px;
    min-height: 88px;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease, border-color 0.1s ease;
}

.matrix-cell:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
}

.matrix-cell.selected {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.4), 0 10px 24px rgba(59, 130, 246, 0.14);
}

.matrix-cell.is-zero {
    opacity: 0.3;
}

.matrix-cell:focus-visible {
    outline: 2px solid #14A9E5;
    outline-offset: 2px;
}

.cell-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
}

.deviation-bar {
    position: relative;
    flex: 0 0 auto;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
    overflow: hidden;
}

.deviation-axis {
    position: absolute;
    left: 50%;
    top: 3px;
    bottom: 3px;
    width: 2px;
    background: #cbd5e1;
    transform: translateX(-50%);
}

.deviation-bar.vertical {
    width: 18px;
    height: 76px;
    margin: 3px auto;
}

.deviation-fill {
    position: absolute;
    left: 4px;
    right: 4px;
    border-radius: 8px;
    opacity: 0.3;
}

.deviation-range {
    position: absolute;
    left: 4px;
    right: 4px;
    border-radius: 8px;
    opacity: 0.18;
    background: repeating-linear-gradient(135deg, currentColor 0, currentColor 4px, transparent 4px, transparent 8px);
}

.deviation-pointer {
    position: absolute;
    left: 50%;
    width: 14px;
    height: 14px;
    border-radius: 12px;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
    opacity: 0.9;
}

.deviation-pointer.zero {
    opacity: 0.35;
}

.cell-value {
    min-width: 22px;
    text-align: center;
    font-weight: 700;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
    font-size: 11px;
}

.color-detail-panel {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 12px 14px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.detail-title {
    font-weight: 800;
    color: #0f172a;
}

.detail-sub {
    font-size: 14px;
    color: #475569;
}

.detail-meta {
    font-size: 12px;
    color: #334155;
}

.detail-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.detail-chart {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 6px;
}

.detail-bar-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}

.detail-bar-track {
    position: relative;
    height: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #ffffff;
    overflow: hidden;
}

.detail-bar-axis {
    position: absolute;
    left: 50%;
    top: 1px;
    bottom: 1px;
    width: 1px;
    background: #cbd5e1;
    transform: translateX(-50%);
}

.detail-bar-zero-indicator {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.5;
}

.detail-bar-fill {
    position: absolute;
    top: 1px;
    bottom: 1px;
    border-radius: 999px;
    opacity: 0.9;
}

.detail-bar-fill.positive {
    right: 50%;
}

.detail-bar-fill.negative {
    left: 50%;
}

.detail-bar-zero {
    position: absolute;
    left: 50%;
    top: 1px;
    bottom: 1px;
    width: 10px;
    transform: translateX(-50%);
    border-radius: 8px;
    opacity: 0.5;
}

.detail-bar-label {
    font-size: 12px;
    color: #475569;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.color-control-v2 {
    --cc-status-width: 18px;
    gap: 10px;
    color: #1e1f26;
}

.cc-toolbar {
    display: block;
    padding: 8px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 14px 32px -28px rgba(15, 23, 42, 0.45);
}

.cc-toolbar-main {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
}

.cc-summary-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}

.cc-summary-line h2,
.cc-history-header h3 {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    color: #1e1f26;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

.cc-summary-meta {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    gap: 4px;
    min-width: 0;
    margin-left: auto;
}

.cc-meta-badge {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-height: 18px;
    padding: 0 8px;
    border: 1px solid rgba(20, 169, 229, 0.3);
    border-radius: 999px;
    color: #0b7fb0;
    background: rgba(20, 169, 229, 0.08);
    font-size: 11px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.cc-state-badge.is-live {
    border-color: rgba(21, 128, 61, 0.35);
    color: #166534;
    background: rgba(34, 197, 94, 0.12);
}

.cc-state-badge.is-invalid {
    border-color: rgba(220, 38, 38, 0.35);
    color: #991b1b;
    background: rgba(239, 68, 68, 0.12);
}

.cc-position-badge,
.cc-roll-badge {
    border-color: rgba(30, 31, 38, 0.12);
    color: #1e1f26;
    background: #f8fafc;
}

.cc-roll-badge {
    max-width: min(260px, 28vw);
    overflow: hidden;
    text-overflow: ellipsis;
}

.cc-kicker {
    color: #0b7fb0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.1;
    text-transform: uppercase;
}

.cc-color-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 4px;
    width: 100%;
    max-width: 100%;
    margin-top: 5px;
}

.cc-color-choice {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    min-width: 0;
    transition: opacity 0.12s ease;
}

.cc-color-choice:not(.is-active) {
    opacity: 0.48;
}

.cc-color-toggle {
    display: inline-grid;
    grid-template-columns: 14px minmax(0, auto) auto;
    align-items: center;
    gap: 5px;
    min-height: 24px;
    max-width: 190px;
    padding: 3px 7px;
    border: 1px solid #d8dde6;
    border-radius: 999px;
    color: #475569;
    background: #ffffff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    transition: border-color 0.12s ease, box-shadow 0.12s ease, color 0.12s ease, opacity 0.12s ease;
}

.cc-color-toggle:hover {
    border-color: #14a9e5;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.cc-color-toggle.is-active {
    color: #1e1f26;
    border-color: #94a3b8;
    background: #f8fafc;
}

.cc-color-solo {
    position: relative;
    flex: none;
    width: 22px;
    min-height: 24px;
    padding: 0;
    border: 1px solid #d8dde6;
    border-radius: 999px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.cc-color-solo::before,
.cc-color-solo::after {
    content: "";
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    pointer-events: none;
}

.cc-color-solo::before {
    width: 10px;
    height: 10px;
    border: 1px solid #94a3b8;
    background: transparent;
}

.cc-color-solo::after {
    width: 4px;
    height: 4px;
    background: #94a3b8;
}

.cc-color-solo:hover,
.cc-color-solo:focus-visible {
    border-color: #14a9e5;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

.cc-color-solo.is-solo {
    border-color: rgba(20, 169, 229, 0.72);
    background: #e0f2fe;
}

.cc-color-solo.is-solo::before {
    border-color: #0b7fb0;
}

.cc-color-solo.is-solo::after {
    background: #0b7fb0;
}

.cc-color-swatch {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.cc-color-toggle-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cc-print-unit {
    color: #64748b;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cc-main-visual {
    display: grid;
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
    gap: 5px;
    height: min(690px, calc(100vh - 126px));
    min-height: 520px;
}

.cc-visual-half {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    border: 1px solid #d8dde6;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 36px -32px rgba(15, 23, 42, 0.48);
}

.cc-side-rail {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    padding: 8px 10px;
    border-right: 1px solid #e5e7eb;
    background: linear-gradient(180deg, #f8fafc, #ffffff);
}

.cc-side-label {
    color: #64748b;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.08em;
    line-height: 1.1;
    text-transform: uppercase;
}

.cc-side-value {
    color: #1e1f26;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.2;
}

.cc-axis-rail {
    justify-content: space-between;
    color: #64748b;
    font-size: 11px;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.cc-aligned-field {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.cc-zone-number-strip {
    display: grid;
    flex: none;
    gap: 0;
    height: 19px;
    padding: 0;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
}

.cc-zone-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 3px;
    color: #475569;
    background: #ffffff;
    font-size: 9px;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    white-space: nowrap;
    cursor: crosshair;
    user-select: none;
}

.cc-zone-number.is-hover-zone {
    color: #0b7fb0;
    border-color: rgba(20, 169, 229, 0.55);
    background: #f0f9ff;
}

.cc-zone-number.is-drag-zone {
    color: #075985;
    border-color: rgba(20, 169, 229, 0.72);
    background: #e0f2fe;
    box-shadow: inset 0 0 0 1px rgba(20, 169, 229, 0.32);
}

.cc-zone-grid {
    display: grid;
    flex: 1 1 auto;
    gap: 0;
    min-width: 0;
    min-height: 0;
}

.cc-zone-group {
    position: relative;
    display: grid;
    gap: 0;
    min-width: 0;
    min-height: 0;
    cursor: crosshair;
    user-select: none;
}

.cc-zone-group.is-hover-zone {
    outline: none;
    background: transparent;
}

.cc-zone-group.is-hover-zone::before,
.cc-zone-group.is-hover-zone::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(20, 169, 229, 0.62);
    z-index: 3;
    pointer-events: none;
}

.cc-zone-group.is-hover-zone::before {
    left: 0;
}

.cc-zone-group.is-hover-zone::after {
    right: 0;
}

.cc-strip-grid > .cc-zone-group.is-hover-zone::before {
    inset: 0;
    width: auto;
    border: 2px solid rgba(20, 169, 229, 0.7);
    box-sizing: border-box;
    background: transparent;
}

.cc-strip-grid > .cc-zone-group.is-hover-zone::after {
    display: none;
}

.cc-zone-group.is-drag-zone {
    box-shadow: inset 0 0 0 1px rgba(20, 169, 229, 0.42);
}

.cc-strip-grid {
    padding: 0;
    background: #ffffff;
}

.cc-separation-strip {
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 2px;
    isolation: isolate;
    background-color: var(--cc-ink-soft);
}

.cc-separation-strip img {
    position: absolute;
    top: 0;
    bottom: 0;
    height: 100%;
    max-width: none;
    object-fit: fill;
    pointer-events: none;
    user-select: none;
}

.cc-separation-strip.is-missing {
    background:
        repeating-linear-gradient(45deg, rgba(148, 163, 184, 0.12) 0, rgba(148, 163, 184, 0.12) 4px, transparent 4px, transparent 8px),
        var(--cc-ink-soft);
}

.cc-chart-panel {
    background: #ffffff;
}

.cc-chart-header {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 24px;
    padding: 3px 6px;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
    color: #475569;
    font-size: 11px;
    font-weight: 750;
    line-height: 1;
}

.cc-validity-indicator {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.08);
}

.cc-validity-indicator.is-ok {
    background: #10b981;
}

.cc-validity-indicator.is-bad {
    background: #ef4444;
}

.cc-chart-title {
    color: #1e1f26;
}

.cc-chart-range {
    margin-left: auto;
    color: #64748b;
    font-variant-numeric: tabular-nums;
}

.cc-chart-zone-indicator {
    display: inline-flex;
    align-items: center;
    min-height: 17px;
    padding: 0 6px;
    border: 1px solid rgba(20, 169, 229, 0.36);
    border-radius: 999px;
    color: #0b7fb0;
    background: #e0f2fe;
    font-variant-numeric: tabular-nums;
}

.cc-bar-field {
    position: relative;
    padding: 3px 1px;
    background:
        linear-gradient(180deg, transparent calc(50% - 1px), rgba(30, 31, 38, 0.48) calc(50% - 1px), rgba(30, 31, 38, 0.48) calc(50% + 1px), transparent calc(50% + 1px)),
        repeating-linear-gradient(180deg, rgba(226, 232, 240, 0.8) 0, rgba(226, 232, 240, 0.8) 1px, transparent 1px, transparent 25%);
}

.cc-chart-zero-line {
    position: absolute;
    left: 1px;
    right: 1px;
    top: 50%;
    height: 2px;
    background: rgba(30, 31, 38, 0.42);
    transform: translateY(-50%);
    pointer-events: none;
}

.cc-bars-grid {
    position: relative;
    z-index: 1;
}

.cc-bar-zone {
    padding-inline: 1px;
}

.cc-bar-slot {
    position: relative;
    min-width: 0;
    min-height: 0;
    border-inline: 1px solid rgba(226, 232, 240, 0.65);
}

.cc-bar-slot.is-inactive {
    border-inline-color: rgba(226, 232, 240, 0.28);
}

.cc-correction-bar,
.cc-current-marker {
    position: absolute;
    left: 18%;
    right: 18%;
    min-height: 2px;
    border-radius: 3px 3px 0 0;
    background: var(--cc-ink);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.14);
}

.cc-correction-bar.is-positive,
.cc-current-marker.is-positive {
    bottom: 50%;
    height: var(--cc-bar-height);
}

.cc-correction-bar.is-negative,
.cc-current-marker.is-negative {
    top: 50%;
    height: var(--cc-bar-height);
    border-radius: 0 0 3px 3px;
}

.cc-current-marker {
    left: 8%;
    right: 8%;
    opacity: 0.7;
    background: transparent;
    border: 2px solid var(--cc-ink);
    box-shadow: none;
}

.cc-history-panel {
    border: 1px solid #d8dde6;
    border-radius: 8px;
    overflow: visible;
    background: #ffffff;
    box-shadow: 0 18px 36px -32px rgba(15, 23, 42, 0.48);
}

.cc-history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 10px;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
}

.cc-clear-selection {
    min-height: 26px;
    padding: 0 10px;
    border: 1px solid #d8dde6;
    border-radius: 6px;
    color: #1e1f26;
    background: #ffffff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 750;
    line-height: 1;
}

.cc-clear-selection:hover {
    border-color: #14a9e5;
    background: #f8fafc;
}

.cc-history-grid {
    display: flex;
    flex-direction: column;
    max-height: none;
    overflow-y: visible;
    background: #f8fafc;
}

.cc-history-roll-section {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
}

.cc-history-roll-header {
    display: grid;
    grid-template-columns: minmax(80px, auto) minmax(0, 1fr);
    align-items: center;
    gap: 5px;
    min-height: 20px;
    padding: 2px 5px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.72);
    color: #475569;
    background: #f8fafc;
    font-size: 10px;
    font-weight: 750;
    line-height: 1;
}

.cc-history-roll-name {
    overflow: hidden;
    color: #1e1f26;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cc-history-roll-detail {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.cc-history-roll-chart {
    display: flex;
    flex-direction: column;
    gap: 0;
    line-height: 0;
}

.cc-history-row {
    position: relative;
    display: block;
    width: 100%;
    min-height: 5px;
    padding: 0;
    border: 0;
    color: inherit;
    background: #ffffff;
    cursor: pointer;
    line-height: 0;
    text-align: left;
}

.cc-history-row:hover,
.cc-history-row.is-hover-entry {
    background: #ffffff;
}

.cc-history-row.is-hover-entry {
    z-index: 2;
}

.cc-history-row.is-hover-entry::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    border: 1px solid rgba(20, 169, 229, 0.95);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
    pointer-events: none;
}

.cc-history-row.is-selected {
    box-shadow: inset 0 0 0 1px rgba(20, 169, 229, 0.6);
}

.cc-history-row:focus {
    outline: none;
}

.cc-history-row:focus-visible {
    outline: 1px solid rgba(20, 169, 229, 0.72);
    outline-offset: -1px;
}

.cc-history-zones {
    display: grid;
    min-width: 0;
    gap: 0;
    padding: 0;
    line-height: 0;
}

.cc-history-zone {
    position: relative;
    display: grid;
    align-items: center;
    min-width: 0;
    gap: 0;
    line-height: 0;
}

.cc-history-zone.is-hover-zone {
    outline: none;
    background: transparent;
}

.cc-history-zone.is-hover-zone::before,
.cc-history-zone.is-hover-zone::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(20, 169, 229, 0.72);
    pointer-events: none;
}

.cc-history-zone.is-hover-zone::before {
    left: 0;
}

.cc-history-zone.is-hover-zone::after {
    right: 0;
}

.cc-history-cell {
    display: block;
    height: 5px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.cc-pointer-tooltip {
    position: fixed;
    z-index: 90;
    display: grid;
    gap: 5px;
    max-width: min(360px, calc(100vw - 24px));
    padding: 8px 9px;
    border: 1px solid rgba(16, 185, 129, 0.38);
    border-radius: 7px;
    color: #1e1f26;
    background: #ecfdf5;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
    font-size: 11px;
    line-height: 1.15;
    pointer-events: none;
}

.color-control-wrapper.is-history-tooltip-settling .cc-pointer-tooltip {
    opacity: 0;
    visibility: hidden;
}

.cc-pointer-tooltip.is-invalid {
    border-color: rgba(239, 68, 68, 0.38);
    background: #fff1f2;
}

.cc-pointer-tooltip-title {
    color: #0f172a;
    font-size: 12px;
    font-weight: 850;
}

.cc-pointer-tooltip-meta,
.cc-pointer-tooltip-detail {
    color: #475569;
    font-weight: 700;
}

.cc-pointer-tooltip-values {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.cc-pointer-tooltip-chip {
    display: inline-grid;
    grid-template-columns: 8px auto minmax(3ch, auto);
    align-items: center;
    gap: 4px;
    min-height: 18px;
    padding: 2px 5px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    font-weight: 750;
}

.cc-pointer-tooltip-chip.is-missing {
    color: #64748b;
}

.cc-pointer-tooltip-chip.is-missing .cc-pointer-tooltip-swatch {
    opacity: 0.35;
}

.cc-pointer-tooltip-chip strong {
    display: inline-block;
    min-width: 3ch;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.cc-pointer-tooltip-swatch {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.16);
}

@media (max-width: 900px) {
    .color-control-v2 {
        --cc-status-width: 16px;
    }

    .cc-color-filter {
        max-width: 100%;
    }

    .cc-main-visual {
        height: 620px;
        min-height: 620px;
    }

    .cc-color-toggle {
        max-width: 150px;
    }

    .cc-chart-header {
        flex-wrap: wrap;
    }
}

.language-picker {
    display: inline-flex;
    align-items: center;
    gap: 0.125rem;
    padding: 0.1875rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 9999px;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.language-picker__form {
    margin: 0;
    display: inline-flex;
}

.language-picker__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    border: 0;
    border-radius: 9999px;
    background: transparent;
    color: #64748b;
    padding: 0.3125rem 0.625rem 0.3125rem 0.375rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: background-color 150ms ease, color 150ms ease;
    cursor: pointer;
}

.language-picker__button:hover {
    color: #1E1F26;
}

.language-picker__button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(20, 169, 229, 0.4);
}

.language-picker__button--active {
    background: #ffffff;
    color: #0b7fb0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), inset 0 0 0 1px rgba(20, 169, 229, 0.18);
}

.language-picker__button--active:hover {
    color: #0b7fb0;
}

.language-picker__flag {
    width: 1.125rem;
    height: 1.125rem;
    border-radius: 9999px;
    overflow: hidden;
    flex: 0 0 auto;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.language-picker__flag-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.language-picker__code {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* On dark hero surfaces (login aside), invert the colour scheme. */
.bg-\[linear-gradient\(135deg\,\#0b1726_0\%\,\#13243a_55\%\,\#1E1F26_100\%\)\] .language-picker {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.bg-\[linear-gradient\(135deg\,\#0b1726_0\%\,\#13243a_55\%\,\#1E1F26_100\%\)\] .language-picker__button {
    color: rgba(255, 255, 255, 0.7);
}

.bg-\[linear-gradient\(135deg\,\#0b1726_0\%\,\#13243a_55\%\,\#1E1F26_100\%\)\] .language-picker__button:hover {
    color: #ffffff;
}

.bg-\[linear-gradient\(135deg\,\#0b1726_0\%\,\#13243a_55\%\,\#1E1F26_100\%\)\] .language-picker__button--active {
    background: rgba(255, 255, 255, 0.95);
    color: #0b7fb0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(20, 169, 229, 0.3);
}

@media (max-width: 767.98px) {
    .language-picker {
        gap: 0.3rem;
        padding: 0.3rem;
    }

    .language-picker__button {
        min-width: 0;
        padding: 0.42rem 0.62rem;
    }
}
