/*! tailwindcss v4.1.13 | MIT License | https://tailwindcss.com */
@layer properties;
@layer theme, base, components, utilities;
@layer theme {
    :root, :host {
        --font-sans: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
        --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
        --color-amber-300: oklch(87.9% 0.169 91.605);
        --color-amber-400: oklch(82.8% 0.189 84.429);
        --color-amber-500: oklch(76.9% 0.188 70.08);
        --color-amber-700: oklch(55.5% 0.163 48.998);
        --color-amber-900: oklch(41.4% 0.112 45.904);
        --color-yellow-300: oklch(90.5% 0.182 98.111);
        --color-yellow-400: oklch(85.2% 0.199 91.936);
        --color-yellow-500: oklch(79.5% 0.184 86.047);
        --color-yellow-700: oklch(55.4% 0.135 66.442);
        --color-yellow-900: oklch(42.1% 0.095 57.708);
        --color-emerald-500: oklch(69.6% 0.17 162.48);
        --color-cyan-300: oklch(86.5% 0.127 207.078);
        --color-cyan-400: oklch(78.9% 0.154 211.53);
        --color-blue-300: oklch(80.9% 0.105 251.813);
        --color-blue-400: oklch(70.7% 0.165 254.624);
        --color-blue-500: oklch(62.3% 0.214 259.815);
        --color-blue-700: oklch(48.8% 0.243 264.376);
        --color-blue-900: oklch(37.9% 0.146 265.522);
        --color-violet-300: oklch(81.1% 0.111 293.571);
        --color-violet-400: oklch(70.2% 0.183 293.541);
        --color-rose-500: oklch(64.5% 0.246 16.439);
        --color-slate-200: oklch(92.9% 0.013 255.508);
        --color-slate-300: oklch(86.9% 0.022 252.894);
        --color-slate-400: oklch(70.4% 0.04 256.788);
        --color-slate-600: oklch(44.6% 0.043 257.281);
        --color-slate-700: oklch(37.2% 0.044 257.287);
        --color-slate-800: oklch(27.9% 0.041 260.031);
        --color-slate-900: oklch(20.8% 0.042 265.755);
        --color-slate-950: oklch(12.9% 0.042 264.695);
        --color-gray-100: oklch(96.7% 0.003 264.542);
        --color-gray-200: oklch(92.8% 0.006 264.531);
        --color-gray-300: oklch(87.2% 0.01 258.338);
        --color-gray-500: oklch(55.1% 0.027 264.364);
        --color-black: #000;
        --color-white: #fff;
        --spacing: 0.25rem;
        --container-6xl: 90rem;
        --text-xs: 0.75rem;
        --text-xs--line-height: calc(1 / 0.75);
        --text-sm: 0.875rem;
        --text-sm--line-height: calc(1.25 / 0.875);
        --text-2xl: 1.5rem;
        --text-2xl--line-height: calc(2 / 1.5);
        --text-4xl: 2.25rem;
        --text-4xl--line-height: calc(2.5 / 2.25);
        --font-weight-medium: 500;
        --font-weight-semibold: 600;
        --font-weight-bold: 700;
        --tracking-wide: 0.025em;
        --tracking-wider: 0.05em;
        --leading-snug: 1.375;
        --leading-relaxed: 1.625;
        --radius-lg: 0.5rem;
        --radius-xl: 0.75rem;
        --radius-2xl: 1rem;
        --default-transition-duration: 150ms;
        --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
        --default-font-family: var(--font-sans);
        --default-mono-font-family: var(--font-mono);
    }
}
@layer base {
    *, ::after, ::before, ::backdrop, ::file-selector-button {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
        border: 0 solid;
    }

    html, :host {
        line-height: 1.5;
        -webkit-text-size-adjust: 100%;
        tab-size: 4;
        font-family: var(--default-font-family, "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
        font-feature-settings: var(--default-font-feature-settings, normal);
        font-variation-settings: var(--default-font-variation-settings, normal);
        -webkit-tap-highlight-color: transparent;
    }

    hr {
        height: 0;
        color: inherit;
        border-top-width: 1px;
    }

    abbr:where([title]) {
        -webkit-text-decoration: underline dotted;
        text-decoration: underline dotted;
    }

    h1, h2, h3, h4, h5, h6 {
        font-size: inherit;
        font-weight: inherit;
    }

    a {
        color: inherit;
        -webkit-text-decoration: inherit;
        text-decoration: inherit;
    }

    b, strong {
        font-weight: bolder;
    }

    code, kbd, samp, pre {
        font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
        font-feature-settings: var(--default-mono-font-feature-settings, normal);
        font-variation-settings: var(--default-mono-font-variation-settings, normal);
        font-size: 1em;
    }

    small {
        font-size: 80%;
    }

    sub, sup {
        font-size: 75%;
        line-height: 0;
        position: relative;
        vertical-align: baseline;
    }

    sub {
        bottom: -0.25em;
    }

    sup {
        top: -0.5em;
    }

    table {
        text-indent: 0;
        border-color: inherit;
        border-collapse: collapse;
    }

    :-moz-focusring {
        outline: auto;
    }

    progress {
        vertical-align: baseline;
    }

    summary {
        display: list-item;
    }

    ol, ul, menu {
        list-style: none;
    }

    img, svg, video, canvas, audio, iframe, embed, object {
        display: block;
        vertical-align: middle;
    }

    img, video {
        max-width: 100%;
        height: auto;
    }

    button, input, select, optgroup, textarea, ::file-selector-button {
        font: inherit;
        font-feature-settings: inherit;
        font-variation-settings: inherit;
        letter-spacing: inherit;
        color: inherit;
        border-radius: 0;
        background-color: transparent;
        opacity: 1;
    }

    :where(select:is([multiple], [size])) optgroup {
        font-weight: bolder;
    }

    :where(select:is([multiple], [size])) optgroup option {
        padding-inline-start: 20px;
    }

    ::file-selector-button {
        margin-inline-end: 4px;
    }

    ::placeholder {
        opacity: 1;
    }

    @supports (not (-webkit-appearance: -apple-pay-button))  or (contain-intrinsic-size: 1px) {
        ::placeholder {
            color: currentcolor;
            @supports (color: color-mix(in lab, red, red)) {
                color: color-mix(in oklab, currentcolor 50%, transparent);
            }
        }
    }
    textarea {
        resize: vertical;
    }

    ::-webkit-search-decoration {
        -webkit-appearance: none;
    }

    ::-webkit-date-and-time-value {
        min-height: 1lh;
        text-align: inherit;
    }

    ::-webkit-datetime-edit {
        display: inline-flex;
    }

    ::-webkit-datetime-edit-fields-wrapper {
        padding: 0;
    }

    ::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {
        padding-block: 0;
    }

    ::-webkit-calendar-picker-indicator {
        line-height: 1;
    }

    :-moz-ui-invalid {
        box-shadow: none;
    }

    button, input:where([type="button"], [type="reset"], [type="submit"]), ::file-selector-button {
        appearance: button;
    }

    ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
        height: auto;
    }

    [hidden]:where(:not([hidden="until-found"])) {
        display: none !important;
    }
}
@layer utilities {
    .sr-only {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
        border-width: 0;
    }

    .absolute {
        position: absolute;
    }

    .relative {
        position: relative;
    }

    .sticky {
        position: sticky;
    }

    .top-0 {
        top: calc(var(--spacing) * 0);
    }

    .right-2 {
        right: calc(var(--spacing) * 2);
    }

    .z-10 {
        z-index: 10;
    }

    .container {
        width: 100%;
        @media (width >= 40rem) {
            max-width: 40rem;
        }
        @media (width >= 48rem) {
            max-width: 48rem;
        }
        @media (width >= 64rem) {
            max-width: 64rem;
        }
        @media (width >= 80rem) {
            max-width: 80rem;
        }
        @media (width >= 96rem) {
            max-width: 96rem;
        }
    }

    .mx-auto {
        margin-inline: auto;
    }

    .mt-1 {
        margin-top: calc(var(--spacing) * 1);
    }

    .mt-2 {
        margin-top: calc(var(--spacing) * 2);
    }

    .mt-3 {
        margin-top: calc(var(--spacing) * 3);
    }

    .mb-1 {
        margin-bottom: calc(var(--spacing) * 1);
    }

    .mb-2 {
        margin-bottom: calc(var(--spacing) * 2);
    }

    .mb-3 {
        margin-bottom: calc(var(--spacing) * 3);
    }

    .mb-6 {
        margin-bottom: calc(var(--spacing) * 6);
    }

    .ml-1 {
        margin-left: calc(var(--spacing) * 1);
    }

    .flex {
        display: flex;
    }

    .grid {
        display: grid;
    }

    .hidden {
        display: none;
    }

    .inline-block {
        display: inline-block;
    }

    .inline-flex {
        display: inline-flex;
    }

    .table {
        display: table;
    }

    .h-1\.5 {
        height: calc(var(--spacing) * 1.5);
    }

    .h-full {
        height: 100%;
    }

    .h-px {
        height: 1px;
    }

    .w-1\.5 {
        width: calc(var(--spacing) * 1.5);
    }

    .w-full {
        width: 100%;
    }

    .max-w-6xl {
        max-width: var(--container-6xl);
    }

    .min-w-full {
        min-width: 100%;
    }

    .flex-1 {
        flex: 1;
    }

    .transform {
        transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
    }

    .resize {
        resize: both;
    }

    .grid-cols-1 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .flex-col {
        flex-direction: column;
    }

    .flex-wrap {
        flex-wrap: wrap;
    }

    .items-center {
        align-items: center;
    }

    .items-start {
        align-items: flex-start;
    }

    .justify-between {
        justify-content: space-between;
    }

    .justify-center {
        justify-content: center;
    }

    .gap-1 {
        gap: calc(var(--spacing) * 1);
    }

    .gap-2 {
        gap: calc(var(--spacing) * 2);
    }

    .gap-3 {
        gap: calc(var(--spacing) * 3);
    }

    .gap-4 {
        gap: calc(var(--spacing) * 4);
    }

    .space-y-16 {
        :where(& > :not(:last-child)) {
            --tw-space-y-reverse: 0;
            margin-block-start: calc(calc(var(--spacing) * 16) * var(--tw-space-y-reverse));
            margin-block-end: calc(calc(var(--spacing) * 16) * calc(1 - var(--tw-space-y-reverse)));
        }
    }

    .divide-y {
        :where(& > :not(:last-child)) {
            --tw-divide-y-reverse: 0;
            border-bottom-style: var(--tw-border-style);
            border-top-style: var(--tw-border-style);
            border-top-width: calc(1px * var(--tw-divide-y-reverse));
            border-bottom-width: calc(1px * calc(1 - var(--tw-divide-y-reverse)));
        }
    }

    .divide-slate-700 {
        :where(& > :not(:last-child)) {
            border-color: var(--color-slate-700);
        }
    }

    .divide-slate-800 {
        :where(& > :not(:last-child)) {
            border-color: var(--color-slate-800);
        }
    }

    .overflow-x-auto {
        overflow-x: auto;
    }

    .overflow-x-hidden {
        overflow-x: hidden;
    }

    .rounded {
        border-radius: 0.25rem;
    }

    .rounded-2xl {
        border-radius: var(--radius-2xl);
    }

    .rounded-full {
        border-radius: calc(infinity * 1px);
    }

    .rounded-lg {
        border-radius: var(--radius-lg);
    }

    .rounded-xl {
        border-radius: var(--radius-xl);
    }

    .border {
        border-style: var(--tw-border-style);
        border-width: 1px;
    }

    .border-t {
        border-top-style: var(--tw-border-style);
        border-top-width: 1px;
    }

    .border-b {
        border-bottom-style: var(--tw-border-style);
        border-bottom-width: 1px;
    }

    .border-amber-500\/25 {
        border-color: color-mix(in srgb, oklch(76.9% 0.188 70.08) 25%, transparent);
        @supports (color: color-mix(in lab, red, red)) {
            border-color: color-mix(in oklab, var(--color-amber-500) 25%, transparent);
        }
    }

    .border-amber-700\/30 {
        border-color: color-mix(in srgb, oklch(55.5% 0.163 48.998) 30%, transparent);
        @supports (color: color-mix(in lab, red, red)) {
            border-color: color-mix(in oklab, var(--color-amber-700) 30%, transparent);
        }
    }

    .border-blue-500\/30 {
        border-color: color-mix(in srgb, oklch(62.3% 0.214 259.815) 30%, transparent);
        @supports (color: color-mix(in lab, red, red)) {
            border-color: color-mix(in oklab, var(--color-blue-500) 30%, transparent);
        }
    }

    .border-blue-700\/40 {
        border-color: color-mix(in srgb, oklch(48.8% 0.243 264.376) 40%, transparent);
        @supports (color: color-mix(in lab, red, red)) {
            border-color: color-mix(in oklab, var(--color-blue-700) 40%, transparent);
        }
    }

    .border-slate-800 {
        border-color: var(--color-slate-800);
    }

    .border-yellow-500\/25 {
        border-color: color-mix(in srgb, oklch(79.5% 0.184 86.047) 25%, transparent);
        @supports (color: color-mix(in lab, red, red)) {
            border-color: color-mix(in oklab, var(--color-yellow-500) 25%, transparent);
        }
    }

    .border-yellow-700\/30 {
        border-color: color-mix(in srgb, oklch(55.4% 0.135 66.442) 30%, transparent);
        @supports (color: color-mix(in lab, red, red)) {
            border-color: color-mix(in oklab, var(--color-yellow-700) 30%, transparent);
        }
    }

    .bg-amber-400 {
        background-color: var(--color-amber-400);
    }

    .bg-amber-900\/30 {
        background-color: color-mix(in srgb, oklch(41.4% 0.112 45.904) 30%, transparent);
        @supports (color: color-mix(in lab, red, red)) {
            background-color: color-mix(in oklab, var(--color-amber-900) 30%, transparent);
        }
    }

    .bg-blue-400 {
        background-color: var(--color-blue-400);
    }

    .bg-blue-900\/40 {
        background-color: color-mix(in srgb, oklch(37.9% 0.146 265.522) 40%, transparent);
        @supports (color: color-mix(in lab, red, red)) {
            background-color: color-mix(in oklab, var(--color-blue-900) 40%, transparent);
        }
    }

    .bg-cyan-400 {
        background-color: var(--color-cyan-400);
    }

    .bg-emerald-500 {
        background-color: var(--color-emerald-500);
    }

    .bg-gray-500 {
        background-color: var(--color-gray-500);
    }

    .bg-rose-500 {
        background-color: var(--color-rose-500);
    }

    .bg-slate-800 {
        background-color: var(--color-slate-800);
    }

    .bg-slate-800\/80 {
        background-color: color-mix(in srgb, oklch(27.9% 0.041 260.031) 80%, transparent);
        @supports (color: color-mix(in lab, red, red)) {
            background-color: color-mix(in oklab, var(--color-slate-800) 80%, transparent);
        }
    }

    .bg-slate-900 {
        background-color: var(--color-slate-900);
    }

    .bg-slate-900\/40 {
        background-color: color-mix(in srgb, oklch(20.8% 0.042 265.755) 40%, transparent);
        @supports (color: color-mix(in lab, red, red)) {
            background-color: color-mix(in oklab, var(--color-slate-900) 40%, transparent);
        }
    }

    .bg-slate-950\/80 {
        background-color: color-mix(in srgb, oklch(12.9% 0.042 264.695) 80%, transparent);
        @supports (color: color-mix(in lab, red, red)) {
            background-color: color-mix(in oklab, var(--color-slate-950) 80%, transparent);
        }
    }

    .bg-yellow-400 {
        background-color: var(--color-yellow-400);
    }

    .bg-yellow-500 {
        background-color: var(--color-yellow-500);
    }

    .bg-yellow-900\/30 {
        background-color: color-mix(in srgb, oklch(42.1% 0.095 57.708) 30%, transparent);
        @supports (color: color-mix(in lab, red, red)) {
            background-color: color-mix(in oklab, var(--color-yellow-900) 30%, transparent);
        }
    }

    .bg-gradient-to-r {
        --tw-gradient-position: to right in oklab;
        background-image: linear-gradient(var(--tw-gradient-stops));
    }

    .from-amber-400\/40 {
        --tw-gradient-from: color-mix(in srgb, oklch(82.8% 0.189 84.429) 40%, transparent);
        @supports (color: color-mix(in lab, red, red)) {
            --tw-gradient-from: color-mix(in oklab, var(--color-amber-400) 40%, transparent);
        }
        --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
    }

    .from-blue-500\/40 {
        --tw-gradient-from: color-mix(in srgb, oklch(62.3% 0.214 259.815) 40%, transparent);
        @supports (color: color-mix(in lab, red, red)) {
            --tw-gradient-from: color-mix(in oklab, var(--color-blue-500) 40%, transparent);
        }
        --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
    }

    .from-cyan-400\/40 {
        --tw-gradient-from: color-mix(in srgb, oklch(78.9% 0.154 211.53) 40%, transparent);
        @supports (color: color-mix(in lab, red, red)) {
            --tw-gradient-from: color-mix(in oklab, var(--color-cyan-400) 40%, transparent);
        }
        --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
    }

    .from-slate-700 {
        --tw-gradient-from: var(--color-slate-700);
        --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
    }

    .from-yellow-400\/40 {
        --tw-gradient-from: color-mix(in srgb, oklch(85.2% 0.199 91.936) 40%, transparent);
        @supports (color: color-mix(in lab, red, red)) {
            --tw-gradient-from: color-mix(in oklab, var(--color-yellow-400) 40%, transparent);
        }
        --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
    }

    .via-amber-300\/20 {
        --tw-gradient-via: color-mix(in srgb, oklch(87.9% 0.169 91.605) 20%, transparent);
        @supports (color: color-mix(in lab, red, red)) {
            --tw-gradient-via: color-mix(in oklab, var(--color-amber-300) 20%, transparent);
        }
        --tw-gradient-via-stops: var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position);
        --tw-gradient-stops: var(--tw-gradient-via-stops);
    }

    .via-blue-400\/20 {
        --tw-gradient-via: color-mix(in srgb, oklch(70.7% 0.165 254.624) 20%, transparent);
        @supports (color: color-mix(in lab, red, red)) {
            --tw-gradient-via: color-mix(in oklab, var(--color-blue-400) 20%, transparent);
        }
        --tw-gradient-via-stops: var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position);
        --tw-gradient-stops: var(--tw-gradient-via-stops);
    }

    .via-slate-600 {
        --tw-gradient-via: var(--color-slate-600);
        --tw-gradient-via-stops: var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position);
        --tw-gradient-stops: var(--tw-gradient-via-stops);
    }

    .via-violet-400\/30 {
        --tw-gradient-via: color-mix(in srgb, oklch(70.2% 0.183 293.541) 30%, transparent);
        @supports (color: color-mix(in lab, red, red)) {
            --tw-gradient-via: color-mix(in oklab, var(--color-violet-400) 30%, transparent);
        }
        --tw-gradient-via-stops: var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position);
        --tw-gradient-stops: var(--tw-gradient-via-stops);
    }

    .via-yellow-300\/20 {
        --tw-gradient-via: color-mix(in srgb, oklch(90.5% 0.182 98.111) 20%, transparent);
        @supports (color: color-mix(in lab, red, red)) {
            --tw-gradient-via: color-mix(in oklab, var(--color-yellow-300) 20%, transparent);
        }
        --tw-gradient-via-stops: var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position);
        --tw-gradient-stops: var(--tw-gradient-via-stops);
    }

    .to-transparent {
        --tw-gradient-to: transparent;
        --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
    }

    .p-3 {
        padding: calc(var(--spacing) * 3);
    }

    .p-4 {
        padding: calc(var(--spacing) * 4);
    }

    .p-10 {
        padding: calc(var(--spacing) * 10);
    }

    .px-1\.5 {
        padding-inline: calc(var(--spacing) * 1.5);
    }

    .px-2 {
        padding-inline: calc(var(--spacing) * 2);
    }

    .px-3 {
        padding-inline: calc(var(--spacing) * 3);
    }

    .px-4 {
        padding-inline: calc(var(--spacing) * 4);
    }

    .px-6 {
        padding-inline: calc(var(--spacing) * 6);
    }

    .py-0 {
        padding-block: calc(var(--spacing) * 0);
    }

    .py-0\.5 {
        padding-block: calc(var(--spacing) * 0.5);
    }

    .py-1 {
        padding-block: calc(var(--spacing) * 1);
    }

    .py-2 {
        padding-block: calc(var(--spacing) * 2);
    }

    .py-3 {
        padding-block: calc(var(--spacing) * 3);
    }

    .py-4 {
        padding-block: calc(var(--spacing) * 4);
    }

    .py-6 {
        padding-block: calc(var(--spacing) * 6);
    }

    .py-12 {
        padding-block: calc(var(--spacing) * 12);
    }

    .text-center {
        text-align: center;
    }

    .text-left {
        text-align: left;
    }

    .font-mono {
        font-family: var(--font-mono);
    }

    .text-2xl {
        font-size: var(--text-2xl);
        line-height: var(--tw-leading, var(--text-2xl--line-height));
    }

    .text-4xl {
        font-size: var(--text-4xl);
        line-height: var(--tw-leading, var(--text-4xl--line-height));
    }

    .text-sm {
        font-size: var(--text-sm);
        line-height: var(--tw-leading, var(--text-sm--line-height));
    }

    .text-xs {
        font-size: var(--text-xs);
        line-height: var(--tw-leading, var(--text-xs--line-height));
    }

    .text-\[9px\] {
        font-size: 9px;
    }

    .text-\[10px\] {
        font-size: 10px;
    }

    .text-\[12px\] {
        font-size: 12px;
    }

    .leading-relaxed {
        --tw-leading: var(--leading-relaxed);
        line-height: var(--leading-relaxed);
    }

    .leading-snug {
        --tw-leading: var(--leading-snug);
        line-height: var(--leading-snug);
    }

    .font-bold {
        --tw-font-weight: var(--font-weight-bold);
        font-weight: var(--font-weight-bold);
    }

    .font-medium {
        --tw-font-weight: var(--font-weight-medium);
        font-weight: var(--font-weight-medium);
    }

    .font-semibold {
        --tw-font-weight: var(--font-weight-semibold);
        font-weight: var(--font-weight-semibold);
    }

    .tracking-wide {
        --tw-tracking: var(--tracking-wide);
        letter-spacing: var(--tracking-wide);
    }

    .tracking-wider {
        --tw-tracking: var(--tracking-wider);
        letter-spacing: var(--tracking-wider);
    }

    .text-amber-300 {
        color: var(--color-amber-300);
    }

    .text-black {
        color: var(--color-black);
    }

    .text-blue-300 {
        color: var(--color-blue-300);
    }

    .text-cyan-300 {
        color: var(--color-cyan-300);
    }

    .text-cyan-400 {
        color: var(--color-cyan-400);
    }

    .text-gray-100 {
        color: var(--color-gray-100);
    }

    .text-gray-200 {
        color: var(--color-gray-200);
    }

    .text-gray-300 {
        color: var(--color-gray-300);
    }

    .text-gray-500 {
        color: var(--color-gray-500);
    }

    .text-rose-500 {
        color: var(--color-rose-500);
    }

    .text-slate-200 {
        color: var(--color-slate-200);
    }

    .text-slate-300 {
        color: var(--color-slate-300);
    }

    .text-slate-400 {
        color: var(--color-slate-400);
    }

    .text-violet-300 {
        color: var(--color-violet-300);
    }

    .text-white {
        color: var(--color-white);
    }

    .text-yellow-300 {
        color: var(--color-yellow-300);
    }

    .uppercase {
        text-transform: uppercase;
    }

    .underline {
        text-decoration-line: underline;
    }

    .shadow-2xl {
        --tw-shadow: 0 25px 50px -12px var(--tw-shadow-color, rgb(0 0 0 / 0.25));
        box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
    }

    .shadow-\[0_0_8px_rgba\(34\,211\,238\,0\.85\)\] {
        --tw-shadow: 0 0 8px var(--tw-shadow-color, rgba(34, 211, 238, 0.85));
        box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
    }

    .shadow-\[0_0_8px_rgba\(96\,165\,250\,0\.8\)\] {
        --tw-shadow: 0 0 8px var(--tw-shadow-color, rgba(96, 165, 250, 0.8));
        box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
    }

    .shadow-\[0_0_8px_rgba\(250\,204\,21\,0\.8\)\] {
        --tw-shadow: 0 0 8px var(--tw-shadow-color, rgba(250, 204, 21, 0.8));
        box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
    }

    .shadow-\[0_0_8px_rgba\(251\,191\,36\,0\.8\)\] {
        --tw-shadow: 0 0 8px var(--tw-shadow-color, rgba(251, 191, 36, 0.8));
        box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
    }

    .shadow-\[0_0_20px_rgba\(59\,130\,246\,0\.12\)\] {
        --tw-shadow: 0 0 20px var(--tw-shadow-color, rgba(59, 130, 246, 0.12));
        box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
    }

    .shadow-\[0_0_20px_rgba\(234\,179\,8\,0\.10\)\] {
        --tw-shadow: 0 0 20px var(--tw-shadow-color, rgba(234, 179, 8, 0.10));
        box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
    }

    .shadow-\[0_0_20px_rgba\(245\,158\,11\,0\.10\)\] {
        --tw-shadow: 0 0 20px var(--tw-shadow-color, rgba(245, 158, 11, 0.10));
        box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
    }

    .filter {
        filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
    }

    .transition {
        transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
        transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
        transition-duration: var(--tw-duration, var(--default-transition-duration));
    }

    .hover\:bg-slate-800\/70 {
        &:hover {
            @media (hover: hover) {
                background-color: color-mix(in srgb, oklch(27.9% 0.041 260.031) 70%, transparent);
                @supports (color: color-mix(in lab, red, red)) {
                    background-color: color-mix(in oklab, var(--color-slate-800) 70%, transparent);
                }
            }
        }
    }

    .focus\:ring-2 {
        &:focus {
            --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
            box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
        }
    }

    .focus\:ring-cyan-400 {
        &:focus {
            --tw-ring-color: var(--color-cyan-400);
        }
    }

    .focus\:outline-none {
        &:focus {
            --tw-outline-style: none;
            outline-style: none;
        }
    }

    .focus-visible\:ring-2 {
        &:focus-visible {
            --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
            box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
        }
    }

    .focus-visible\:ring-cyan-400 {
        &:focus-visible {
            --tw-ring-color: var(--color-cyan-400);
        }
    }

    .sm\:grid-cols-3 {
        @media (width >= 40rem) {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }
    }

    .sm\:flex-row {
        @media (width >= 40rem) {
            flex-direction: row;
        }
    }

    .md\:grid-cols-3 {
        @media (width >= 48rem) {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }
    }
}

html, body {
    height: 100%;
    margin: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.glass-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: box-shadow 0.3s ease-in-out, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card.chart-section {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 15px rgba(34, 211, 238, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: box-shadow 0.3s ease-in-out;
}

.glass-card.chart-section:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 40px rgba(34, 211, 238, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.glass-card.table-section {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 15px rgba(139, 92, 246, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: box-shadow 0.3s ease-in-out;
}

.glass-card.table-section:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 40px rgba(139, 92, 246, 0.33), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.neon-glow {
    text-shadow: 0 0 14px rgba(34, 211, 238, 0.65);
}

th[data-sort-key] {
    cursor: pointer;
    user-select: none;
}

th[data-sort-key]:hover {
    color: #67e8f9;
    text-shadow: 0 0 8px rgba(103, 232, 249, 0.45);
    transform: translateZ(0);
}

th[data-sort-key] .sort-icon {
    transition: transform .15s ease, color .15s ease, text-shadow .15s ease;
}

th[data-sort-key][aria-sort="ascending"] .sort-icon,
th[data-sort-key][aria-sort="descending"] .sort-icon {
    text-shadow: 0 0 6px rgba(103, 232, 249, 0.6);
}

tr[tabindex="0"]:focus {
    outline: 2px solid #67e8f9;
    outline-offset: -2px;
}

/* Header click animation similar to neon buttons */
th[data-sort-key].th-anim {
    box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.6), 0 0 0 6px rgba(34, 211, 238, 0.2);
    transition: box-shadow .2s ease;
}

.sort-icon {
    transition: transform .15s ease, color .15s ease;
}

.loading-spinner {
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left-color: #67e8f9;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    display: inline-block;
}

.chart-error {
    color: #ef4444;
    text-align: center;
    padding: 20px;
}

#bgCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#deviceTable tr:hover {
    background: rgba(30, 41, 59, 0.7);
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.3);
    transition: background 0.3s ease, box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.teardown-cell {
    position: relative;
}

.compact-rows #deviceTable td, .compact-rows #deviceTable th {
    padding-top: 0.35rem !important;
    padding-bottom: 0.35rem !important;
}

.btn-neon {
    background: rgba(15, 23, 42, 0.6);
    color: #e2e8f0;
    border: 1px solid rgba(103, 232, 249, 0.35);
    border-radius: 12px;
    box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.0);
    transition: box-shadow .18s ease, transform .12s ease, background .18s ease, border-color .18s ease, color .18s ease;
}

.btn-neon:hover {
    background: rgba(8, 145, 178, 0.15);
    color: #ffffff; /* ensure readable in dark mode */
    border-color: rgba(103, 232, 249, 0.55);
    box-shadow: 0 0 14px rgba(34, 211, 238, 0.45);
}

.btn-neon:active {
    transform: translateY(1px);
}

.btn-neon:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.6), 0 0 0 6px rgba(34, 211, 238, 0.2);
}

#activeFilters {
    display: none;
}

#activeFilters.show {
    display: flex;
}

.actions-menu {
    position: fixed;
    min-width: 200px;
    background: rgba(15, 23, 42, 0.96);
    color: #e2e8f0;
    border: 1px solid rgba(103, 232, 249, 0.35);
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
    padding: 6px;
    z-index: 60;
}

body.theme-light .actions-menu {
    background: rgba(255, 255, 255, 0.98);
    color: #0f172a;
    border-color: rgba(2, 132, 199, 0.25);
    box-shadow: 0 8px 28px rgba(2, 132, 199, 0.12);
}

.actions-menu button {
    width: 100%;
    text-align: left;
    background: transparent;
    color: inherit;
    border: 0;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 14px;
}

.actions-menu button:hover {
    background: rgba(103, 232, 249, 0.12);
    color: #67e8f9;
}

body.theme-light .actions-menu button:hover {
    background: rgba(2, 132, 199, 0.10);
    color: #0ea5e9;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(34, 211, 238, 0.12);
    color: #67e8f9;
    border: 1px solid rgba(103, 232, 249, 0.25);
    border-radius: 9999px;
    padding: 4px 10px;
    font-size: 12px;
}

.filter-chip button {
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    padding: 0 4px;
}

#searchInput:focus, #brandFilter:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.5), 0 0 20px rgba(34, 211, 238, 0.3);
    animation: pulseGlow 1.5s infinite alternate;
}

#fileAge {
    color: #67e8f9;
    font-size: 0.75rem;
    max-width: 95vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-info-tooltip {
    position: fixed;
    z-index: 1100;
    background: rgba(30, 41, 59, 0.95);
    color: #cbd5e1;
    border: 1px solid rgba(103, 232, 249, 0.25);
    border-radius: 12px;
    padding: 10px 12px;
    max-width: 85vw;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), 0 0 18px rgba(34, 211, 238, 0.06);
    font-size: 12px;
    display: none;
}

.mobile-info-tooltip.show {
    display: block;
}

.mobile-info-btn {
    display: none;
    position: absolute;
    bottom: 0;
    border-radius: 9999px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35), 0 0 10px rgba(34, 211, 238, 0.15);
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.mobile-info-btn:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45), 0 0 16px rgba(34, 211, 238, 0.28);
    transform: translateY(-1px);
}

.mobile-info-btn:active {
    transform: translateY(0);
}

.teardown-dropdown {
    position: absolute;
    z-index: 20;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), 0 0 18px rgba(34, 211, 238, 0.06);
    min-width: 260px;
    max-width: 420px;
    padding: 10px;
    margin-top: 8px;
    display: none;
    max-height: 60vh;
    overflow: auto;
}

.teardown-dropdown::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 20px;
    width: 14px;
    height: 14px;
    background: inherit;
    border-left: inherit;
    border-top: inherit;
    transform: rotate(45deg);
    filter: drop-shadow(0 -2px 2px rgba(0, 0, 0, 0.15));
}

.teardown-dropdown.show {
    display: block;
}

.teardown-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 8px 12px;
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 12px;
    transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.teardown-item:hover {
    background: rgba(148, 163, 184, 0.12);
    color: #e2e8f0;
    transform: translateX(2px);
    box-shadow: inset 0 0 0 1px rgba(103, 232, 249, 0.12);
}

.teardown-title {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal; /* allow wrapping for full names */
}

.teardown-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
}

.teardown-item.archived {
    opacity: .85;
    font-style: italic;
}

.teardown-dropdown::-webkit-scrollbar {
    width: 8px;
}

.teardown-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.teardown-dropdown::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.25);
    border-radius: 8px;
}

.teardown-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.38);
}

.teardown-cell {
    position: relative;
}

.teardown-toggle {
    cursor: pointer;
    color: #67e8f9;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.teardown-toggle:hover {
    color: #22d3ee;
}

/* Header select label style (no master checkbox yet) */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 10px rgba(34, 211, 238, 0.5), 0 0 20px rgba(34, 211, 238, 0.3);
    }
    100% {
        box-shadow: 0 0 15px rgba(34, 211, 238, 0.7), 0 0 25px rgba(34, 211, 238, 0.4);
    }
}

/* Table skeleton loader */
.skeleton-row td {
    padding: 0.75rem 1.5rem !important;
}

.skeleton-box {
    display: inline-block;
    height: 12px;
    border-radius: 9999px;
    background: linear-gradient(
            90deg,
            rgba(148, 163, 184, 0.1) 25%,
            rgba(148, 163, 184, 0.22) 45%,
            rgba(148, 163, 184, 0.1) 65%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.2s ease-in-out infinite;
}

.skeleton-box.sm {
    width: 90px;
}

.skeleton-box.md {
    width: 140px;
}

.skeleton-box.lg {
    width: 220px;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}


@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    #searchInput:focus, #brandFilter:focus {
        animation: none !important;
        box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.5);
    }
}

@media print {
    body {
        background: #fff !important;
        color: #000 !important;
    }

    #bgCanvas, header, #chartCaption, #repairabilityChart, #chartError, .tags-legend, .table-section .flex, #activeFilters, .compare-drawer, footer, #portal-root {
        display: none !important;
    }

    .glass-card {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    table {
        width: 100% !important;
        border-collapse: collapse !important;
    }

    thead {
        position: static !important;
    }

    th, td {
        border-bottom: 1px solid #ccc !important;
        color: #000 !important;
    }
}

@media (max-width: 640px) {
    #fileAge {
        display: none;
    }

    .mobile-info-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        line-height: 1;
        margin-left: 8px;
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.85), rgba(2, 6, 23, 0.85));
        border: 1px solid rgba(103, 232, 249, 0.35);
        color: #67e8f9;
        position: absolute;
        right: 0.75rem;
    }

    .mobile-info-btn svg {
        filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.35));
    }

    .teardown-dropdown {
        min-width: 150px;
        max-width: 90vw;
    }

    header .container {
        grid-template-columns: 1fr !important;
    }

    header h1 {
        font-size: 1.6rem;
        line-height: 1.2;
    }

    header .glass-card {
        padding: 0.75rem;
    }

    .glass-card.chart-section, .glass-card.table-section {
        padding: 1rem !important;
    }

    figure[style] {
        height: 320px !important;
    }

    .table-section .flex.flex-col.sm\:flex-row {
        gap: 0.5rem;
    }

    #searchInput, #brandFilter {
        width: 100%;
    }

    .table-section .flex.items-center.gap-2 {
        flex-wrap: wrap;
    }

    table thead th {
        padding: 0.5rem 0.75rem !important;
        font-size: 10px;
    }

    #deviceTable td {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.9rem;
    }

    #deviceTable td, #deviceTable th {
        white-space: normal;
    }

    .teardown-portal, .teardown-dropdown {
        max-height: 70vh;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .glass-card.chart-section, .glass-card.table-section {
        padding: 1.25rem !important;
    }

    figure[style] {
        height: 400px !important;
    }

    table thead th {
        font-size: 11px;
    }
}

.table-section .overflow-x-auto {
    overflow-x: auto;
    overflow-y: visible;
}

#deviceTable, #deviceTable tbody, #deviceTable tr, #deviceTable td {
    overflow: visible;
}

#portal-root {
    position: relative;
    z-index: 100;
}

.teardown-portal {
    position: fixed;
    z-index: 1000;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), 0 0 18px rgba(34, 211, 238, 0.06);
    min-width: 260px;
    max-width: 420px;
    padding: 10px;
    display: none;
    max-height: 60vh;
    overflow: auto;
}

.teardown-portal.show {
    display: block;
}

/* Light theme variants for teardown dropdown and portal */
.theme-light .teardown-dropdown,
.theme-light .teardown-portal {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(2, 132, 199, 0.25);
    color: #0f172a;
    box-shadow: 0 12px 28px rgba(2, 132, 199, 0.12), 0 0 18px rgba(2, 132, 199, 0.06);
}

.theme-light .teardown-dropdown::before {
    box-shadow: 0 -2px 2px rgba(2, 132, 199, 0.10);
}

.theme-light .teardown-item {
    color: #0f172a;
}

.theme-light .teardown-item:hover {
    background: rgba(2, 132, 199, 0.08);
    color: #075985;
    box-shadow: inset 0 0 0 1px rgba(2, 132, 199, 0.18);
}

.theme-light .teardown-dropdown::-webkit-scrollbar-thumb,
.theme-light .teardown-portal::-webkit-scrollbar-thumb {
    background: rgba(2, 132, 199, 0.25);
}

.theme-light .teardown-dropdown::-webkit-scrollbar-thumb:hover,
.theme-light .teardown-portal::-webkit-scrollbar-thumb:hover {
    background: rgba(2, 132, 199, 0.35);
}

@property --tw-rotate-x {
    syntax: "*";
    inherits: false;
}

@property --tw-rotate-y {
    syntax: "*";
    inherits: false;
}

@property --tw-rotate-z {
    syntax: "*";
    inherits: false;
}

@property --tw-skew-x {
    syntax: "*";
    inherits: false;
}

@property --tw-skew-y {
    syntax: "*";
    inherits: false;
}

@property --tw-space-y-reverse {
    syntax: "*";
    inherits: false;
    initial-value: 0;
}

@property --tw-divide-y-reverse {
    syntax: "*";
    inherits: false;
    initial-value: 0;
}

@property --tw-border-style {
    syntax: "*";
    inherits: false;
    initial-value: solid;
}

@property --tw-gradient-position {
    syntax: "*";
    inherits: false;
}

@property --tw-gradient-from {
    syntax: "<color>";
    inherits: false;
    initial-value: #0000;
}

@property --tw-gradient-via {
    syntax: "<color>";
    inherits: false;
    initial-value: #0000;
}

@property --tw-gradient-to {
    syntax: "<color>";
    inherits: false;
    initial-value: #0000;
}

@property --tw-gradient-stops {
    syntax: "*";
    inherits: false;
}

@property --tw-gradient-via-stops {
    syntax: "*";
    inherits: false;
}

@property --tw-gradient-from-position {
    syntax: "<length-percentage>";
    inherits: false;
    initial-value: 0%;
}

@property --tw-gradient-via-position {
    syntax: "<length-percentage>";
    inherits: false;
    initial-value: 50%;
}

@property --tw-gradient-to-position {
    syntax: "<length-percentage>";
    inherits: false;
    initial-value: 100%;
}

@property --tw-leading {
    syntax: "*";
    inherits: false;
}

@property --tw-font-weight {
    syntax: "*";
    inherits: false;
}

@property --tw-tracking {
    syntax: "*";
    inherits: false;
}

@property --tw-shadow {
    syntax: "*";
    inherits: false;
    initial-value: 0 0 #0000;
}

@property --tw-shadow-color {
    syntax: "*";
    inherits: false;
}

@property --tw-shadow-alpha {
    syntax: "<percentage>";
    inherits: false;
    initial-value: 100%;
}

@property --tw-inset-shadow {
    syntax: "*";
    inherits: false;
    initial-value: 0 0 #0000;
}

@property --tw-inset-shadow-color {
    syntax: "*";
    inherits: false;
}

@property --tw-inset-shadow-alpha {
    syntax: "<percentage>";
    inherits: false;
    initial-value: 100%;
}

@property --tw-ring-color {
    syntax: "*";
    inherits: false;
}

@property --tw-ring-shadow {
    syntax: "*";
    inherits: false;
    initial-value: 0 0 #0000;
}

@property --tw-inset-ring-color {
    syntax: "*";
    inherits: false;
}

@property --tw-inset-ring-shadow {
    syntax: "*";
    inherits: false;
    initial-value: 0 0 #0000;
}

@property --tw-ring-inset {
    syntax: "*";
    inherits: false;
}

@property --tw-ring-offset-width {
    syntax: "<length>";
    inherits: false;
    initial-value: 0px;
}

@property --tw-ring-offset-color {
    syntax: "*";
    inherits: false;
    initial-value: #fff;
}

@property --tw-ring-offset-shadow {
    syntax: "*";
    inherits: false;
    initial-value: 0 0 #0000;
}

@property --tw-blur {
    syntax: "*";
    inherits: false;
}

@property --tw-brightness {
    syntax: "*";
    inherits: false;
}

@property --tw-contrast {
    syntax: "*";
    inherits: false;
}

@property --tw-grayscale {
    syntax: "*";
    inherits: false;
}

@property --tw-hue-rotate {
    syntax: "*";
    inherits: false;
}

@property --tw-invert {
    syntax: "*";
    inherits: false;
}

@property --tw-opacity {
    syntax: "*";
    inherits: false;
}

@property --tw-saturate {
    syntax: "*";
    inherits: false;
}

@property --tw-sepia {
    syntax: "*";
    inherits: false;
}

@property --tw-drop-shadow {
    syntax: "*";
    inherits: false;
}

@property --tw-drop-shadow-color {
    syntax: "*";
    inherits: false;
}

@property --tw-drop-shadow-alpha {
    syntax: "<percentage>";
    inherits: false;
    initial-value: 100%;
}

@property --tw-drop-shadow-size {
    syntax: "*";
    inherits: false;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@layer properties {
    @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
        *, ::before, ::after, ::backdrop {
            --tw-rotate-x: initial;
            --tw-rotate-y: initial;
            --tw-rotate-z: initial;
            --tw-skew-x: initial;
            --tw-skew-y: initial;
            --tw-space-y-reverse: 0;
            --tw-divide-y-reverse: 0;
            --tw-border-style: solid;
            --tw-gradient-position: initial;
            --tw-gradient-from: #0000;
            --tw-gradient-via: #0000;
            --tw-gradient-to: #0000;
            --tw-gradient-stops: initial;
            --tw-gradient-via-stops: initial;
            --tw-gradient-from-position: 0%;
            --tw-gradient-via-position: 50%;
            --tw-gradient-to-position: 100%;
            --tw-leading: initial;
            --tw-font-weight: initial;
            --tw-tracking: initial;
            --tw-shadow: 0 0 #0000;
            --tw-shadow-color: initial;
            --tw-shadow-alpha: 100%;
            --tw-inset-shadow: 0 0 #0000;
            --tw-inset-shadow-color: initial;
            --tw-inset-shadow-alpha: 100%;
            --tw-ring-color: initial;
            --tw-ring-shadow: 0 0 #0000;
            --tw-inset-ring-color: initial;
            --tw-inset-ring-shadow: 0 0 #0000;
            --tw-ring-inset: initial;
            --tw-ring-offset-width: 0px;
            --tw-ring-offset-color: #fff;
            --tw-ring-offset-shadow: 0 0 #0000;
            --tw-blur: initial;
            --tw-brightness: initial;
            --tw-contrast: initial;
            --tw-grayscale: initial;
            --tw-hue-rotate: initial;
            --tw-invert: initial;
            --tw-opacity: initial;
            --tw-saturate: initial;
            --tw-sepia: initial;
            --tw-drop-shadow: initial;
            --tw-drop-shadow-color: initial;
            --tw-drop-shadow-alpha: 100%;
            --tw-drop-shadow-size: initial;
        }
    }
}

@media (min-width: 1440px) {
    html {
        font-size: 17px;
    }
}

/* Light theme overrides */
body.theme-light {
    color: #0f172a;
}

body.theme-light.bg-slate-900 {
    background-color: #f8fafc;
}

body.theme-light .bg-slate-950\/80 {
    background-color: rgba(255, 255, 255, 0.85);
    border-color: #e2e8f0;
}

body.theme-light .bg-slate-800 {
    background-color: #ffffff;
}

body.theme-light .bg-slate-800\/80 {
    background-color: rgba(241, 245, 249, 0.85);
}

body.theme-light .text-gray-100, body.theme-light .text-gray-200, body.theme-light .text-gray-300 {
    color: #0f172a;
}

body.theme-light .text-slate-200, body.theme-light .text-slate-300, body.theme-light .text-slate-400 {
    color: #334155;
}

body.theme-light .divide-slate-800 > :not(:last-child),
body.theme-light .divide-slate-700 > :not(:last-child) {
    border-color: #e2e8f0;
}

body.theme-light thead.bg-slate-800\/80 {
    background-color: rgba(241, 245, 249, 0.85);
}

body.theme-light #deviceTable tr:hover {
    background: rgba(148, 163, 184, 0.25);
    box-shadow: 0 0 12px rgba(2, 132, 199, 0.25);
}

body.theme-light .glass-card {
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(148, 163, 184, 0.35);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(0, 0, 0, 0.02);
}

body.theme-light .glass-card.chart-section {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 0 15px rgba(2, 132, 199, 0.08), inset 0 1px 0 rgba(0, 0, 0, 0.02);
}

body.theme-light .glass-card.chart-section:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 0 35px rgba(2, 132, 199, 0.25), inset 0 1px 0 rgba(0, 0, 0, 0.02);
}

body.theme-light .glass-card.table-section {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 0 15px rgba(139, 92, 246, 0.08), inset 0 1px 0 rgba(0, 0, 0, 0.02);
}

body.theme-light .glass-card.table-section:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 0 35px rgba(139, 92, 246, 0.25), inset 0 1px 0 rgba(0, 0, 0, 0.02);
}

body.theme-light .btn-neon {
    background: rgba(255, 255, 255, 0.85);
    color: #0f172a;
    border-color: rgba(2, 132, 199, 0.35);
}

body.theme-light .btn-neon:hover {
    background: rgba(2, 132, 199, 0.12);
    color: #0f172a;
    border-color: rgba(2, 132, 199, 0.55);
    box-shadow: 0 0 14px rgba(2, 132, 199, 0.35);
}

body.theme-light .chart-error {
    color: #b91c1c;
}

/* Inputs/selects in light */
body.theme-light input#searchInput,
body.theme-light select#brandFilter {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #cbd5e1;
}

body.theme-light input#searchInput:focus,
body.theme-light select#brandFilter:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.35);
}

/* Footer header borders in light */
body.theme-light header, body.theme-light footer {
    border-color: #e2e8f0;
}

/* Light theme: improve tag badges and info boxes readability */
body.theme-light .bg-blue-900\/40 {
    background-color: rgba(2, 132, 199, 0.10);
}

body.theme-light .bg-yellow-900\/30 {
    background-color: rgba(234, 179, 8, 0.12);
}

body.theme-light .bg-amber-900\/30 {
    background-color: rgba(245, 158, 11, 0.12);
}

body.theme-light .text-blue-300 {
    color: #075985;
}

body.theme-light .text-yellow-300 {
    color: #854d0e;
}

body.theme-light .text-amber-300 {
    color: #92400e;
}

body.theme-light .border-blue-700\/40 {
    border-color: rgba(2, 132, 199, 0.35);
}

body.theme-light .border-yellow-700\/30 {
    border-color: rgba(234, 179, 8, 0.35);
}

body.theme-light .border-amber-700\/30 {
    border-color: rgba(245, 158, 11, 0.35);
}

/* Make the three explanation boxes brighter in light */
body.theme-light .rounded-2xl.bg-slate-900\/40 {
    background: #ffffff;
    border-color: rgba(2, 132, 199, 0.25);
}

body.theme-light .rounded-2xl.bg-slate-900\/40 p {
    color: #334155;
}

/* Ultrawide containers: widen max width progressively */
@media (min-width: 1920px) {
    :root {
        --container-6xl: 100rem;
    }
}

@media (min-width: 2560px) {
    :root {
        --container-6xl: 120rem;
    }
}

/* Ultra-wide layout option: expand further and reduce side gutters */
body.layout-wide .max-w-6xl {
    max-width: min(var(--container-uw, 140rem), 92vw);
}

@media (min-width: 1920px) {
    :root {
        --container-uw: 130rem;
    }
}

@media (min-width: 2560px) {
    :root {
        --container-uw: 150rem;
    }
}

@media (min-width: 3200px) {
    :root {
        --container-uw: 160rem;
    }
}


/* Theme slider switch */
#themeToggle.theme-switch {
    position: relative;
    width: 64px;
    height: 30px;
    padding: 0;
    font-size: 0; /* hide inner text visually */
}

#themeToggle.theme-switch::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    background: rgba(8, 145, 178, 0.15);
    border: 1px solid rgba(103, 232, 249, 0.35);
}

#themeToggle.theme-switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 9999px;
    background: #67e8f9;
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
    transition: left .18s ease, background .18s ease, box-shadow .18s ease;
}

#themeToggle.theme-switch[data-mode="dark"]::after {
    left: calc(100% - 27px);
    background: #22d3ee;
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.75);
}

/* light theme adjustments for the switch */
body.theme-light #themeToggle.theme-switch::before {
    background: rgba(2, 132, 199, 0.10);
    border-color: rgba(2, 132, 199, 0.35);
}

body.theme-light #themeToggle.theme-switch::after {
    background: #0ea5e9;
    box-shadow: 0 0 8px rgba(14, 165, 233, 0.45);
}


/* Unified header info box and responsive readability tweaks */
.header-info .header-info-text {
    /* keep default sans-serif; scale slightly with viewport */
    font-size: clamp(0.82rem, 0.76rem + 0.10vw, 0.94rem);
    line-height: 1.5;
}

.header-info-divider {
    height: 1px;
    background-image: linear-gradient(90deg, rgba(34, 211, 238, 0.4), rgba(139, 92, 246, 0.3), transparent);
}

/* Tags legend paragraph text: scale up subtly on large screens */
.tags-legend p {
    font-size: clamp(0.8rem, 0.78rem + 0.15vw, 0.95rem);
    line-height: 1.4;
}

/* Tiny tag badges: bump size on very large viewports (not theme-dependent) */
@media (min-width: 1920px) {
    .tags-legend .text-\[10px\], .tags-legend .text-\[9px\],
    .teardown-badges .text-\[10px\], .teardown-badges .text-\[9px\] {
        font-size: 11.5px !important;
    }
}

@media (min-width: 2560px) {
    .tags-legend .text-\[10px\], .tags-legend .text-\[9px\],
    .teardown-badges .text-\[10px\], .teardown-badges .text-\[9px\] {
        font-size: 12.5px !important;
    }
}


/* Header size refinements for large screens */
@media (min-width: 1440px) {
    /* Slimmer header vertical padding */
    header {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    /* More modest title size and glow */
    header h1.neon-glow {
        font-size: 2rem; /* ~32px at 16px root; ~36px at 18px root */
        line-height: 1.2;
        text-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
    }

    /* Tighter info cards in header */
    header .header-info {
        padding: 0.75rem;
    }

    header .header-info .header-info-text {
        /* Smaller upper cap on ultrawide; gentler viewport scaling */
        font-size: clamp(0.82rem, 0.74rem + 0.06vw, 0.92rem);
    }
}

/* Comparison drawer and modal */
.compare-drawer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1400;
    display: block;
    padding: 10px 16px;
    background: rgba(2, 6, 23, 0.9);
    border-top: 1px solid rgba(103, 232, 249, 0.25);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.45)
}

.compare-drawer.hidden {
    display: none
}

.compare-drawer.warn {
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.45), 0 0 18px rgba(244, 63, 94, 0.5)
}

.compare-drawer-content {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 72rem;
    margin: 0 auto
}

.compare-drawer .msg {
    margin-left: 12px;
    color: #fca5a5;
    background: rgba(244, 63, 94, 0.12);
    border: 1px solid rgba(244, 63, 94, 0.35);
    padding: 4px 8px;
    border-radius: 8px;
    opacity: 0;
    transition: opacity .2s ease
}

.compare-drawer .msg.show {
    opacity: 1
}

.compare-drawer .spacer {
    flex: 1
}

.compare-modal {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(4px)
}

.compare-modal.show {
    display: flex
}

.compare-card {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(103, 232, 249, 0.25);
    border-radius: 14px;
    padding: 12px;
    min-width: 220px
}

/* First column width for selection */
th:first-child {
    width: 56px;
}

/* Neon/glass styled selection control */
input.cmp {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 1px solid rgba(103, 232, 249, 0.45);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.9));
    box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.0), inset 0 0 0 1px rgba(34, 211, 238, 0.08);
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    transition: box-shadow .18s ease, border-color .18s ease, background .18s ease, transform .12s ease;
}

input.cmp:hover {
    border-color: rgba(103, 232, 249, 0.75);
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.35);
}

input.cmp:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.6), 0 0 0 6px rgba(34, 211, 238, 0.2);
}

input.cmp:active {
    transform: translateY(1px);
}

input.cmp::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: transparent;
    box-shadow: inset 0 0 0 1px rgba(103, 232, 249, 0.0);
    transition: background .12s ease;
}

input.cmp:checked::before {
    background: radial-gradient(circle at 50% 50%, #67e8f9 0%, #06b6d4 60%, transparent 61%);
}

/* Light theme variant for selection checkbox */
.theme-light input.cmp {
    border-color: rgba(2, 132, 199, 0.35);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.0), inset 0 0 0 1px rgba(2, 132, 199, 0.08);
}

.theme-light input.cmp:hover {
    border-color: rgba(2, 132, 199, 0.6);
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.25);
}

.theme-light input.cmp:focus-visible {
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.55), 0 0 0 6px rgba(14, 165, 233, 0.18);
}

.theme-light input.cmp:checked::before {
    background: radial-gradient(circle at 50% 50%, #0ea5e9 0%, #0284c7 60%, transparent 61%);
}


/* Teardown difficulty label */
.teardown-difficulty {
    flex: 0 0 auto;
    margin-left: 8px;
    margin-right: auto; /* push badges far right to create clear space */
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 6px;
    border-radius: 9999px;
    color: #a5b4fc; /* indigo-300-ish, subtle */
    font-size: 0.6875rem; /* ~11px */
    line-height: 1;
    white-space: nowrap;
    background: rgba(148, 163, 184, 0.12); /* slate-400 @ 12% */
    border: 1px solid rgba(148, 163, 184, 0.22);
}

.teardown-difficulty::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    background: #67e8f9; /* cyan-300 */
    box-shadow: 0 0 6px rgba(103, 232, 249, 0.7);
}

/* Light theme adjustments */
.theme-light .teardown-difficulty {
    color: #0369a1; /* sky-800-ish */
    background: rgba(15, 23, 42, 0.06); /* light subtle */
    border-color: rgba(15, 23, 42, 0.12);
}

.theme-light .teardown-difficulty::before {
    background: #0ea5e9; /* sky-500 */
    box-shadow: 0 0 5px rgba(14, 165, 233, 0.55);
}

/* Ensure badges are aligned to the far right */
.teardown-badges {
    margin-left: auto;
}

/* Difficulty legend — compact chips */
.difficulty-legend {
    margin-top: 1rem;
}

.difficulty-chips {
    list-style: none;
    padding: 0;
    margin: 0;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 0.72rem;
    line-height: 1;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.55);
    color: #c7d2fe; /* indigo-200 */
    box-shadow: 0 0 0 0 rgba(34, 211, 238, 0);
    transition: transform .08s ease, box-shadow .18s ease, border-color .18s ease;
}

.chip::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    box-shadow: 0 0 6px currentColor;
}

.chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    border-color: rgba(103, 232, 249, 0.35);
}

.theme-light .chip {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(2, 132, 199, 0.25);
}

/* Specific tones for each level */
.chip-vd {
    color: #fca5a5;
}

.chip-vd::before {
    background: #ef4444;
}

.chip-d {
    color: #fbbf24;
}

.chip-d::before {
    background: #f59e0b;
}

.chip-m {
    color: #67e8f9;
}

.chip-m::before {
    background: #22d3ee;
}

.chip-e {
    color: #86efac;
}

.chip-e::before {
    background: #10b981;
}

.chip-ve {
    color: #c4b5fd;
}

.chip-ve::before {
    background: #8b5cf6;
}

/* Tag chips using same design */
.chip-featured {
    color: #93c5fd;
}

.chip-community {
    color: #fde68a;
}

.chip-archived {
    color: #fcd34d;
}

/* Pair Easy + Very Easy together when space allows */
.difficulty-pair {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 12px;
    align-items: flex-start;
}

/* On very narrow screens, allow the pair to stack so the layout doesn't overflow */
@media (max-width: 480px) {
    .difficulty-pair {
        flex-wrap: wrap;
    }
}

/* Chip + description layout */
.difficulty-item {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    padding: 4px 6px;
    border-radius: 12px;
}

.difficulty-item .chip {
    align-self: flex-start;
}

.chip-desc {
    font-size: 0.9rem;
    line-height: 1.25;
    color: #a7b2c3;
    max-width: 240px;
}

.theme-light .chip-desc {
    color: #475569;
}

/* Make chip have a glowing dot before using its current color */
.chip::before {
    background: currentColor;
}

/* Subtle, clean typography helpers */
.prose-lite {
    line-height: 1.7;
    letter-spacing: 0.001em;
    color: #cbd5e1;
}

.theme-light .prose-lite {
    color: #334155;
}

.muted {
    color: #a7b2c3;
}

.theme-light .muted {
    color: #4b5563;
}

.subtle-underline {
    text-decoration-color: rgba(148, 163, 184, 0.35);
    text-underline-offset: 2px;
}

/* Calmer chip descriptions */
.chip-desc {
    font-size: 0.9rem;
    line-height: 1.5;
    letter-spacing: 0.005em;
    color: #9fb0c4;
    max-width: 36ch;
}

.theme-light .chip-desc {
    color: #475569;
}

.difficulty-item {
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
    padding: 6px 8px;
    border-radius: 12px;
}

.difficulty-item .chip {
    align-self: flex-start;
}

/* Header info paragraphs get nicer rhythm */
.header-info .header-info-text {
    line-height: 1.6;
}

/* Keep difficulty chips on one line on wider screens when space allows */
@media (min-width: 640px) {
    .difficulty-legend .difficulty-chips {
        flex-wrap: nowrap;
    }
}


/* Hover styling for "Show all devices" toggle (dark + light themes) */
.noscore-toggle {
    cursor: pointer;
    border-radius: 8px;
    padding: 2px 6px;
    transition: color .15s ease, background-color .18s ease, box-shadow .18s ease, transform .12s ease;
}

.noscore-toggle:hover,
.noscore-toggle:focus-within {
    background-color: rgba(148, 163, 184, 0.08); /* subtle slate highlight */
    box-shadow: 0 0 0 1px rgba(103, 232, 249, 0.20), 0 2px 10px rgba(0, 0, 0, 0.25);
}

.noscore-toggle:active {
    transform: translateY(0);
}

/* Icon styling */
.attention-icon {
    display: inline-block;
    font-size: 14px;
    line-height: 1;
    filter: drop-shadow(0 0 6px rgba(103, 232, 249, 0.35));
    transition: transform 0.12s ease, filter 0.18s ease, color 0.18s ease;
}

.noscore-toggle:hover .attention-icon,
.noscore-toggle:focus-within .attention-icon {
    transform: translateY(-1px);
    filter: drop-shadow(0 0 10px rgba(103, 232, 249, 0.55));
}

.noscore-tooltip {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    max-width: 360px;
    min-width: 240px;
    background: #1e293b;
    color: #e5e7eb;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #475569;
    z-index: 10;
    white-space: normal;
    line-height: 1.4;
    font-size: 0.875rem;
}

.noscore-toggle:hover .noscore-tooltip {
    display: block;
}

@media (max-width: 640px) {
    .noscore-tooltip {
        right: auto;
        left: 0;
        max-width: 90vw;
        min-width: 200px;
    }
}

#rubricTableContainer:not(.hidden) {
    margin-top: 2rem;
}

/* Button styling */
button[aria-label*="Show details for version"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

button[aria-label*="Show details for version"]:hover {
    transform: scale(1.05);
}

/* Modal styling */
dialog {
    border: none;
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.4);
    transition: transform 0.2s ease-in-out;
}

dialog[open] {
    transform: scale(1);
}

dialog::backdrop {
    backdrop-filter: blur(4px);
}

.overflow-y-auto::-webkit-scrollbar {
    width: 6px;
}

.overflow-y-auto::-webkit-scrollbar-track {
    background: #1e293b;
}

.overflow-y-auto::-webkit-scrollbar-thumb {
    background: #22d3ee;
    border-radius: 3px;
}

/* Light theme variants */
body.theme-light .noscore-toggle:hover,
body.theme-light .noscore-toggle:focus-within {
    background-color: rgba(15, 23, 42, 0.06);
    box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.30), 0 2px 10px rgba(2, 6, 23, 0.10);
}

body.theme-light .attention-icon {
    filter: drop-shadow(0 0 5px rgba(14, 165, 233, 0.35));
}

body.theme-light .noscore-toggle:hover .attention-icon,
body.theme-light .noscore-toggle:focus-within .attention-icon {
    filter: drop-shadow(0 0 8px rgba(14, 165, 233, 0.55));
}

/* Respect reduced motion (global rule already reduces transitions; keep compatibility) */
@media (prefers-reduced-motion: reduce) {
    .noscore-toggle {
        transition: none !important;
    }

    .attention-icon {
        transition: none !important;
    }
}


/* Tooltip for "Show all devices" (works in dark and light) */
.noscore-tooltip {
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 6px;
    padding: 6px 8px;
    max-width: 320px;
    font-size: 12px;
    line-height: 1.3;
    color: #cbd5e1;
    background: rgba(2, 6, 23, 0.92); /* near-slate-950 */
    border: 1px solid rgba(103, 232, 249, 0.25);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 14px rgba(34, 211, 238, 0.18);
    z-index: 30;
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease, box-shadow .18s ease;
}

.noscore-tooltip::after {
    content: "";
    position: absolute;
    top: -6px;
    left: 14px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid rgba(2, 6, 23, 0.92);
}

/* Show on hover/focus; make it interactive when visible */
.relative:not(.tooltip-suppressed):hover > .noscore-tooltip,
.relative:not(.tooltip-suppressed):focus-within > .noscore-tooltip {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Hide-only delay: keeps tooltip around for a moment when mouse leaves */
.relative:not(:hover):not(:focus-within) > .noscore-tooltip {
    transition-delay: .1s;
}

/* Light theme variant */
body.theme-light .noscore-tooltip {
    color: #0f172a; /* slate-900 */
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(2, 132, 199, 0.25);
    box-shadow: 0 8px 24px rgba(2, 6, 23, 0.10), 0 0 12px rgba(14, 165, 233, 0.18);
}

body.theme-light .noscore-tooltip::after {
    border-bottom-color: rgba(255, 255, 255, 0.98);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .noscore-tooltip {
        transition: none !important;
    }
}

/* Segmented control */
.segmented {
    display: inline-flex;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(103, 232, 249, 0.35);
}

.segmented .btn-neon {
    border-radius: 0;
    border: none;
}

.segmented .seg-left {
    border-right: 1px solid rgba(103, 232, 249, 0.25);
}

.segmented .seg-right {
    border-left: 1px solid rgba(0, 0, 0, 0);
}

.segmented .btn-neon.is-active {
    background: rgba(8, 145, 178, 0.18);
    color: #67e8f9;
    box-shadow: inset 0 0 0 1px rgba(103, 232, 249, 0.45);
}

body.theme-light .segmented {
    border-color: rgba(2, 132, 199, 0.25);
}

body.theme-light .segmented .btn-neon.is-active {
    background: rgba(2, 132, 199, 0.12);
    color: #0f172a;
    box-shadow: inset 0 0 0 1px rgba(2, 132, 199, 0.35);
}