:root {
        --glass-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.68) 0%, rgba(255, 255, 255, 0.48) 46%, rgba(240, 246, 255, 0.42) 100%);
        --glass-bg-strong: linear-gradient(145deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.58) 42%, rgba(226, 239, 255, 0.5) 100%);
        --glass-bg-deep: linear-gradient(145deg, rgba(255, 255, 255, 0.6) 0%, rgba(244, 248, 255, 0.44) 50%, rgba(225, 238, 255, 0.38) 100%);
        --glass-bg-nested: linear-gradient(145deg, rgba(255, 255, 255, 0.56) 0%, rgba(255, 255, 255, 0.34) 100%);
        --glass-border: rgba(255, 255, 255, 0.52);
        --glass-border-soft: rgba(255, 255, 255, 0.34);
        --glass-shadow:
            0 28px 80px -34px rgba(32, 62, 118, 0.3),
            0 14px 36px -24px rgba(15, 23, 42, 0.22),
            inset 0 1px 0 rgba(255, 255, 255, 0.72),
            inset 0 -1px 0 rgba(255, 255, 255, 0.12);
        --glass-shadow-strong:
            0 34px 96px -38px rgba(24, 45, 88, 0.36),
            0 18px 48px -24px rgba(15, 23, 42, 0.26),
            inset 0 1px 0 rgba(255, 255, 255, 0.82),
            inset 0 -1px 0 rgba(255, 255, 255, 0.16);
        --glass-shadow-press:
            0 18px 40px -26px rgba(15, 23, 42, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.65);
        --glass-blur: blur(42px) saturate(1.8);
        --glass-blur-deep: blur(56px) saturate(1.95);
        --glass-radius: 1.75rem;
        --glass-radius-lg: 2rem;
        --glass-tint-blue: rgba(96, 165, 250, 0.14);
        --glass-tint-violet: rgba(167, 139, 250, 0.14);
        --glass-tint-emerald: rgba(52, 211, 153, 0.14);
        --glass-text: #1e293b;
        --glass-text-soft: #334155;
        --glass-label: rgba(51, 65, 85, 0.72);
        --glass-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    .material-symbols-outlined {
        font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    }
    .glass-panel {
        position: relative;
        overflow: hidden;
        isolation: isolate;
        background: rgba(255, 255, 255, 0.92);
        border: 1px solid rgba(226, 232, 240, 0.6);
        box-shadow: 0 22px 44px -28px rgba(15, 23, 42, 0.18);
        -webkit-
    }
    .glass-panel::before,
    .liquid-glass-panel::before,
    .liquid-glass-card::before,
    .liquid-glass-tooltip::before,
    .lesson-card::before,
    .vocab-row::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        border-radius: inherit;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 34%, transparent),
            radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 38%);
        opacity: 0.1;
    }
    .glass-panel::after,
    .liquid-glass-panel::after,
    .liquid-glass-card::after,
    .liquid-glass-tooltip::after {
        content: "";
        position: absolute;
        inset: 1px;
        pointer-events: none;
        border-radius: inherit;
        border: 1px solid rgba(255, 255, 255, 0.16);
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask-composite: exclude;
        padding: 1px;
opacity: 0.2;
    }
    .editorial-shadow {
        box-shadow: 0 22px 44px -28px rgba(15, 23, 42, 0.18);
    }
    body {
        position: relative;
        color: var(--glass-text);
        background:
            radial-gradient(circle at top left, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0) 34%),
            linear-gradient(180deg, #f8f2ea 0%, #eef4ff 38%, #edf6f1 100%);
        background-attachment: fixed;
    }
    body::before {
        content: "";
        position: fixed;
        inset: 0;
        pointer-events: none;
        background:
            radial-gradient(circle at 16% 14%, rgba(96, 165, 250, 0.18), transparent 18%),
            radial-gradient(circle at 82% 12%, rgba(167, 139, 250, 0.18), transparent 22%),
            radial-gradient(circle at 74% 78%, rgba(52, 211, 153, 0.16), transparent 20%);
        filter: blur(32px);
        opacity: 0.8;
        z-index: -2;
    }
    .ambient-stage {
        position: fixed;
        inset: 0;
        pointer-events: none;
        overflow: hidden;
        z-index: -1;
    }
    .ambient-orb {
        position: absolute;
        border-radius: 999px;
        filter: blur(70px);
        opacity: 0.5;
        transform: translate3d(0, 0, 0);
        animation: orbFloat 20s ease-in-out infinite;
    }
    .ambient-orb.orb-blue {
        top: 8%;
        left: -8%;
        width: 23rem;
        height: 23rem;
        background: radial-gradient(circle, rgba(96, 165, 250, 0.48), rgba(96, 165, 250, 0.16) 40%, transparent 72%);
    }
    .ambient-orb.orb-violet {
        top: 12%;
        right: -4%;
        width: 20rem;
        height: 20rem;
        background: radial-gradient(circle, rgba(167, 139, 250, 0.46), rgba(217, 70, 239, 0.14) 42%, transparent 72%);
        animation-delay: -7s;
    }
    .ambient-orb.orb-emerald {
        bottom: 4%;
        left: 28%;
        width: 24rem;
        height: 24rem;
        background: radial-gradient(circle, rgba(52, 211, 153, 0.34), rgba(16, 185, 129, 0.12) 45%, transparent 74%);
        animation-delay: -12s;
    }
    .ambient-orb.orb-warm {
        bottom: 12%;
        right: 8%;
        width: 18rem;
        height: 18rem;
        background: radial-gradient(circle, rgba(251, 191, 36, 0.2), rgba(251, 191, 36, 0.08) 45%, transparent 72%);
        animation-delay: -4s;
    }
    @keyframes orbFloat {
        0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
        50% { transform: translate3d(0, -18px, 0) scale(1.04); }
    }
    @keyframes liquidJiggle {
        0% { transform: translate3d(0, 0, 0) scale(1); }
        30% { transform: translate3d(0, -2px, 0) rotate(-1.2deg) scale(1.03); }
        60% { transform: translate3d(0, -1px, 0) rotate(1.5deg) scale(1.04); }
        100% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1.04); }
    }
    h1, h2, h3 {
        text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7), 0 10px 24px rgba(148, 163, 184, 0.18);
    }
    p, li, span, label, input, select, button {
        color: inherit;
    }
    .scrollbar-hide::-webkit-scrollbar {
        display: none;
    }
    .scrollbar-hide {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .lyrics-flow {
        position: relative;
        overflow: hidden;
        min-height: 7rem;
    }
    .lyrics-track {
        display: flex;
        align-items: baseline;
        gap: 1rem;
        width: max-content;
        transition: transform 320ms ease;
        padding: 1rem 50%;
    }
    .lyrics-word {
        flex: 0 0 auto;
        color: rgb(71, 85, 105);
        font-family: "Playfair Display", serif;
        font-size: 1rem;
        line-height: 1;
        letter-spacing: 0.01em;
        transform: scale(0.96);
        transform-origin: center;
        transition: color 220ms ease, transform 220ms ease, opacity 220ms ease, text-shadow 220ms ease;
        white-space: nowrap;
        opacity: 0.74;
    }
    .lyrics-word.is-active {
        color: rgb(37, 99, 235);
        transform: scale(1.28);
        opacity: 1;
        text-shadow: 0 0 10px rgba(59, 130, 246, 0.22);
    }
    .lyrics-word.is-near {
        color: rgb(15, 23, 42);
        transform: scale(1.02);
        opacity: 0.9;
    }
    .lyrics-subtitle {
        margin-top: 0.875rem;
        text-align: center;
        min-height: 1.75rem;
        color: rgb(100, 116, 139);
    }
    @keyframes vocabFadeIn {
        from {
            opacity: 0;
            transform: translateY(18px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    @keyframes lessonArchiveFadeIn {
        from {
            opacity: 0;
            transform: translateY(16px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    @keyframes lessonDetailCardReveal {
        from {
            opacity: 0;
            transform: translateY(10px) scale(0.985);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }
    @keyframes lessonTopicPulse {
        0%, 100% {
            box-shadow: 0 0 0 rgba(59, 130, 246, 0);
        }
        50% {
            box-shadow: 0 0 18px rgba(59, 130, 246, 0.2);
        }
    }
    @keyframes lessonKeywordFilterIn {
        from {
            opacity: 0;
            transform: translateY(12px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    .vocab-item {
        animation: vocabFadeIn 480ms ease-out both;
    }
    .vocab-row {
        position: relative;
        overflow: hidden;
        transition: transform 360ms ease-out, background-color 280ms ease-out, border-color 280ms ease-out, box-shadow 320ms ease-out;
    }
    .vocab-row:hover {
        transform: translateY(-4px) scale(1.01);
        box-shadow: 0 22px 44px -28px rgba(15, 23, 42, 0.22);
    }
    .vocab-header {
        cursor: pointer;
    }
    .vocab-header:focus-visible {
        outline: 2px solid rgba(59, 130, 246, 0.65);
        outline-offset: 4px;
    }
    .vocab-keyword {
        transition: color 220ms ease;
    }
    .vocab-row:hover .vocab-keyword,
    .vocab-row.is-expanded .vocab-keyword {
        color: rgb(15, 23, 42);
    }
    .vocab-ipa {
        letter-spacing: 0.04em;
    }
    .vocab-chevron {
        transition: transform 260ms ease, color 260ms ease;
    }
    .vocab-row.is-expanded .vocab-chevron {
        transform: rotate(180deg);
        color: rgb(37, 99, 235);
    }
    .vocab-details,
    .lesson-details,
    .vocab-collocations {
        overflow: hidden;
        max-height: 0;
        transition: max-height 300ms ease;
    }
    .vocab-detail-card {
        position: relative;
    }
    .vocab-expanded-keyword {
        transition: opacity 240ms ease, transform 240ms ease;
    }
    .vocab-row.is-expanded .vocab-expanded-keyword {
        transform: translateY(0);
        opacity: 1;
    }
    .vocab-divider {
        height: 1px;
        background: linear-gradient(90deg, rgba(148, 163, 184, 0), rgba(148, 163, 184, 0.3), rgba(148, 163, 184, 0));
    }
    .vocab-action {
        transition: transform 280ms ease-out, border-color 220ms ease, background-color 220ms ease, color 220ms ease, box-shadow 220ms ease;
    }
    .vocab-action:hover {
        transform: translateY(-2px) scale(1.03);
        box-shadow: 0 18px 36px -24px rgba(59, 130, 246, 0.22);
    }
    .vocab-action-word {
        border-color: rgba(191, 219, 254, 0.9);
        background: rgba(239, 246, 255, 0.95);
        color: rgb(14, 116, 144);
    }
    .vocab-action-word:hover {
        background: rgba(224, 242, 254, 0.98);
    }
    .vocab-action-sentence {
        border-color: rgba(191, 219, 254, 0.9);
        background: rgba(248, 250, 252, 0.95);
        color: rgb(15, 23, 42);
    }
    .vocab-action-sentence:hover {
        background: rgba(241, 245, 249, 1);
    }
    .vocab-action-youglish {
        border-color: rgba(254, 205, 211, 0.95);
        background: rgba(255, 241, 242, 0.98);
        color: rgb(225, 29, 72);
    }
    .vocab-action-youglish:hover {
        background: rgba(255, 228, 230, 1);
    }
    .vocab-collocation-toggle {
        cursor: pointer;
        color: rgb(71, 85, 105);
        border-color: rgba(226, 232, 240, 0.9);
        background: rgba(255, 255, 255, 0.9);
        transition: transform 220ms ease, border-color 220ms ease, background-color 220ms ease, color 220ms ease;
    }
    .vocab-collocation-toggle:hover {
        border-color: rgba(125, 211, 252, 0.9);
        background: rgba(240, 249, 255, 0.95);
        color: rgb(14, 116, 144);
    }
    .vocab-collocation-toggle.is-open {
        border-color: rgba(56, 189, 248, 0.95);
        background: rgba(239, 246, 255, 0.95);
        color: rgb(14, 116, 144);
    }
    .vocab-collocation-toggle .material-symbols-outlined {
        transition: transform 220ms ease;
    }
    .vocab-collocation-toggle.is-open .material-symbols-outlined {
        transform: rotate(180deg);
    }
    .vocab-collocations.is-open {
        opacity: 1;
    }
    .vocab-collocation-panel {
        background: rgba(255, 255, 255, 0.94);
        border: 1px solid rgba(226, 232, 240, 0.5);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 18px 42px -32px rgba(15, 23, 42, 0.18);
        -webkit-
    }
    .collocation-section-card {
        min-width: 0;
    }
    .collocation-section-entry {
        min-width: 0;
    }
    .collocation-section-entry + .collocation-section-entry {
        border-top: 1px solid rgba(226, 232, 240, 0.75);
        padding-top: 0.85rem;
    }
    .lessons-shell {
        position: relative;
        overflow: hidden;
        border-radius: 2rem;
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid rgba(226, 232, 240, 0.6);
        box-shadow: 0 22px 44px -28px rgba(15, 23, 42, 0.18);
        -webkit-
    }
    .lesson-sidebar {
        background:
            radial-gradient(circle at top left, rgba(191, 219, 254, 0.46), transparent 42%),
            radial-gradient(circle at bottom right, rgba(167, 139, 250, 0.2), transparent 42%),
            linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(244, 248, 255, 0.56));
    }
    .lesson-profile-avatar {
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(14, 165, 233, 0.28));
    }
    .lesson-card {
        position: relative;
        overflow: hidden;
        transition: transform 360ms ease-out, border-color 260ms ease, box-shadow 300ms ease, background-color 260ms ease;
    }
    .lesson-card-item {
        animation: lessonArchiveFadeIn 440ms ease-out both;
    }
    .lesson-card::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.04), transparent 55%);
        opacity: 0;
        transition: opacity 260ms ease;
        pointer-events: none;
    }
    .lesson-card:hover {
        transform: translateY(-6px) scale(1.01);
        box-shadow: 0 22px 44px -28px rgba(15, 23, 42, 0.22);
    }
    .lesson-card.is-expanded {
        box-shadow:
            0 0 0 1px rgba(147, 197, 253, 0.28),
            0 30px 88px -44px rgba(37, 99, 235, 0.52),
            inset 0 1px 0 rgba(255, 255, 255, 0.78);
    }
    .lesson-card.is-expanded::before,
    .lesson-card:hover::before {
        opacity: 1;
    }
    .lesson-row-header {
        cursor: pointer;
    }
    .lesson-row-header:focus-visible {
        outline: 2px solid rgba(59, 130, 246, 0.65);
        outline-offset: 4px;
    }
    .lesson-date-chip,
    .lesson-keyword-count {
        letter-spacing: 0.18em;
    }
    .lesson-filter-pill {
        transition: transform 300ms ease-out, border-color 220ms ease, background-color 220ms ease, color 220ms ease, box-shadow 220ms ease;
    }
    .lesson-filter-pill.is-active {
        background: linear-gradient(135deg, rgba(96, 165, 250, 0.22), rgba(167, 139, 250, 0.18));
        border-color: rgba(147, 197, 253, 0.72);
        color: rgb(30, 64, 175);
        box-shadow: 0 18px 36px -28px rgba(59, 130, 246, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.78);
    }
    .lesson-keyword-toolbar {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        background: rgba(255, 255, 255, 0.94);
        border: 1px solid rgba(226, 232, 240, 0.5);
        -webkit-
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
        margin-bottom: 0.85rem;
    }
    .lesson-topic-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .lesson-topic-tag {
        position: relative;
        overflow: hidden;
        transform: translateZ(0);
        transition: transform 280ms ease-out, box-shadow 220ms ease, opacity 220ms ease, border-color 220ms ease;
    }
    .topic-show-more {
    display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; padding: 3px 10px;
    background: linear-gradient(135deg, rgba(148,163,184,0.1), rgba(100,116,139,0.15));
    border-radius: 9999px; cursor: pointer;
    font-family: var(--font-label, ui-sans-serif, system-ui, sans-serif);
    font-size: 10px; font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #64748b;
    transition: all 0.2s;
}
.topic-show-more:hover { background: rgba(148,163,184,0.2); }
.lesson-topic-tag::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.24), transparent 55%);
        opacity: 0;
        transition: opacity 220ms ease;
    }
    .lesson-topic-tag:hover {
        transform: translateY(-2px) scale(1.04);
        animation: lessonTopicPulse 1.8s ease-in-out infinite;
    }
    .lesson-topic-tag:hover::after {
        opacity: 1;
    }
    .lesson-topic-tag.is-active {
        box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6), 0 0 0 4px rgba(59, 130, 246, 0.22);
    }
    .lesson-topic-clear {
        min-height: 44px;
        transition: border-color 220ms ease, background-color 220ms ease, color 220ms ease, box-shadow 220ms ease, transform 280ms ease-out;
    }
    .lesson-topic-clear:hover {
        border-color: rgba(96, 165, 250, 0.9);
        color: rgb(15, 23, 42);
        box-shadow: 0 12px 24px -18px rgba(37, 99, 235, 0.45);
        transform: translateY(-1px);
    }
    .lesson-keyword-list {
        display: flex;
        flex-direction: column;
        gap: 0.9rem;
    }
    .lesson-keyword-entry {
        transition: opacity 240ms ease, transform 240ms ease, max-height 240ms ease;
    }
    .lesson-keyword-entry.is-filter-hidden {
        display: none;
    }
    .lesson-keyword-entry.is-filter-match {
        animation: lessonKeywordFilterIn 360ms ease-out both;
    }
    .lesson-vocab-detail-card {
        transform-origin: top center;
    }
    .vocab-row.is-expanded .lesson-vocab-detail-card {
        animation: lessonDetailCardReveal 360ms ease-out both;
    }
    .lesson-collocation-empty-state {
        display: flex;
        gap: 0.9rem;
        align-items: flex-start;
        border-radius: 1rem;
        background: rgba(255, 255, 255, 0.94);
        padding: 1rem;
        border: 1px solid rgba(226, 232, 240, 0.5);
        -webkit-
    }
    .lesson-collocation-empty-state .material-symbols-outlined {
        color: rgb(14, 165, 233);
    }
    .keyword-spelling-variation-chip {
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        padding: 0.35rem 0.7rem;
        border-radius: 999px;
        border: 1px solid rgba(255, 255, 255, 0.46);
        background: rgba(255, 255, 255, 0.42);
        color: rgb(71, 85, 105);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
        -webkit-
    }
    .lesson-synonym-card {
        border: 1px solid rgba(191, 219, 254, 0.85);
        background:
            radial-gradient(circle at top right, rgba(186, 230, 253, 0.38), transparent 42%),
            linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
    }
    .lesson-synonym-badge {
        display: inline-flex;
        align-items: center;
        border-radius: 999px;
        padding: 0.35rem 0.7rem;
        background: rgba(14, 165, 233, 0.12);
        color: rgb(3, 105, 161);
        border: 1px solid rgba(125, 211, 252, 0.55);
    }
    .lesson-synonym-nuance {
        border: 1px solid rgba(251, 191, 36, 0.24);
        background: linear-gradient(180deg, rgba(255, 251, 235, 0.95), rgba(255, 247, 237, 0.98));
    }
    .lesson-learner-notes-card {
        border: 1px solid rgba(253, 230, 138, 0.65);
        background:
            radial-gradient(circle at top left, rgba(254, 240, 138, 0.24), transparent 38%),
            linear-gradient(180deg, rgba(255, 251, 235, 0.96), rgba(255, 247, 237, 0.98));
    }
    .lesson-false-friend-card {
        border: 1px solid rgba(253, 186, 116, 0.42);
        background: linear-gradient(180deg, rgba(255, 247, 237, 0.96), rgba(255, 241, 242, 0.96));
    }
    .lesson-mistake-card {
        border: 1px solid rgba(253, 230, 138, 0.5);
        background: rgba(255, 255, 255, 0.82);
    }
    @media (max-width: 1279px) {
        .lesson-sidebar {
            position: static;
        }
    }

    /* === Liquid Glass UI (2026 Apple-style) === */
    .liquid-glass-panel {
        background: linear-gradient(135deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.35) 50%, rgba(248,250,252,0.45) 100%);
        -webkit-
        box-shadow:
            0 0 0 0.5px rgba(255,255,255,0.4),
            0 4px 24px -4px rgba(0,0,0,0.06),
            0 1px 2px rgba(0,0,0,0.04),
            inset 0 1px 0 rgba(255,255,255,0.5),
            inset 0 -1px 0 rgba(255,255,255,0.1);
    }
    .liquid-glass-card {
        background: linear-gradient(135deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.4) 50%, rgba(248,250,252,0.5) 100%);
        -webkit-
        box-shadow:
            0 0 0 0.5px rgba(255,255,255,0.3),
            0 8px 32px -8px rgba(0,0,0,0.08),
            inset 0 1px 0 rgba(255,255,255,0.4);
    }
    .liquid-glass-tooltip {
        background: linear-gradient(135deg, rgba(255,255,255,0.75) 0%, rgba(255,255,255,0.55) 100%);
        box-shadow:
            0 0 0 0.5px rgba(255,255,255,0.5),
            0 12px 40px -12px rgba(0,0,0,0.15),
            inset 0 1px 0 rgba(255,255,255,0.6);
    }
    .liquid-legend-pill {
        transition: all 0.2s ease;
    }
    .liquid-legend-pill:hover {
        background: rgba(255,255,255,0.5);
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }
    /* Animated glow for chart data points */
    @keyframes liquidPulse {
        0%, 100% { box-shadow: 0 0 0 0 rgba(59,130,246,0.3), 0 0 8px rgba(59,130,246,0.15); }
        50% { box-shadow: 0 0 0 6px rgba(59,130,246,0), 0 0 12px rgba(59,130,246,0.08); }
    }
    .chart-data-point {
        position: absolute;
        width: 14px;
        height: 14px;
        border-radius: 50%;
        transform: translate(-50%, -50%);
        cursor: pointer;
        transition: all 0.2s ease;
        z-index: 20;
        border: 2px solid white;
        box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    }
    #chartContainer {
        position: relative;
        z-index: 0;
    }
    .progress-chart-wrap {
        z-index: 0;
        pointer-events: none;
    }
    #chartDetailPanel {
        position: relative;
        z-index: 40;
        isolation: isolate;
    }
    #detailPanelScores {
        position: relative;
        z-index: 2;
    }
    .chart-data-point:hover {
        transform: translate(-50%, -50%) scale(1.4);
        z-index: 25;
        box-shadow: 0 2px 12px rgba(59,130,246,0.25);
    }
    .chart-data-point.is-latest {
        animation: liquidPulse 2.5s ease-in-out infinite;
        width: 16px;
        height: 16px;
    }
    .chart-data-point.active {
        transform: translate(-50%, -50%) scale(1.5);
        z-index: 30;
        animation: none;
    }
    /* Liquid glass score mini-card */
    .liquid-score-card {
        position: relative;
        z-index: 1;
        cursor: pointer;
        user-select: none;
        -webkit-user-select: none;
        pointer-events: auto;
        touch-action: manipulation;
        background: linear-gradient(180deg, rgba(255,255,255,0.78), rgba(255,255,255,0.56));
        border: none !important;
        outline: none !important;
        -webkit-appearance: none;
        appearance: none;
        border-radius: 1rem;
        border: 1px solid rgba(255,255,255,0.3);
        padding: 0.5rem 0.75rem;
        text-align: center;
        transition: all 0.2s ease;
        display: block;
        width: 100%;
        font: inherit;
        color: inherit;
    }
    .liquid-score-card:hover {
        background: rgba(255,255,255,0.6);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    }
    /* Linked item in detail panel */
    .liquid-linked-item {
        display: flex;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.4rem 0.6rem;
        border-radius: 0.75rem;
        transition: all 0.15s ease;
        cursor: pointer;
        font-size: 0.8125rem;
        line-height: 1.5;
        color: #475569;
    }
    .liquid-linked-item:hover {
        background: rgba(59,130,246,0.06);
        color: #1e40af;
    }
    .liquid-linked-item:active {
        transform: scale(0.98);
    }
    .liquid-linked-item,
    .verbatim-quote-card,
    #detailPanelBody > div,
    #quotesList > div {
        min-width: 0;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
    /* Verbatim quote card in chart detail */
    .verbatim-quote-card {
        background: rgba(255,255,255,0.5);
        -webkit-
        border: 1px solid rgba(255,255,255,0.3);
        border-radius: 0.875rem;
        padding: 0.5rem 0.75rem;
        transition: all 0.15s ease;
    }
    .verbatim-quote-card:hover {
        background: rgba(255,255,255,0.65);
        box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    }
    .verbatim-quote-card .quote-text {
        font-style: italic !important;
        color: #475569;
        font-size: 0.8125rem;
        line-height: 1.6;
    }
    .verbatim-quote-card .quote-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
        padding: 0.125rem 0.5rem;
        border-radius: 9999px;
        font-size: 0.625rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }
    .verbatim-quote-card .quote-badge.strength {
        background: rgba(16,185,129,0.1);
        color: #059669;
    }
    .verbatim-quote-card .quote-badge.improvement {
        background: rgba(251,146,60,0.1);
        color: #d97706;
    }