
        /* Палитра и переменные Organic Glassmorphism */
        :root {
            --bg-primary: #090C15;
            --text-primary: #F8FAFC;
            --text-secondary: #94A3B8;
            --glass-bg: rgba(255, 255, 255, 0.045);
            --glass-bg-hover: rgba(255, 255, 255, 0.085);
            --glass-border: rgba(255, 255, 255, 0.11);
            --glass-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.65), inset 0 1px 1px rgba(255, 255, 255, 0.16);
            --pill-bg: rgba(255, 255, 255, 0.05);
            --input-bg: rgba(15, 23, 42, 0.55);
            color-scheme: dark;
        }
        :root[data-theme="light"] {
            --bg-primary: #e4e2dc;
            --text-primary: #222836;
            --text-secondary: #586072;
            --glass-bg: rgba(241, 239, 234, 0.88);
            --glass-bg-hover: rgba(247, 245, 241, 0.96);
            --glass-border: rgba(201, 198, 189, 0.8);
            --glass-shadow: 0 12px 32px -8px rgba(34, 40, 54, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.75);
            --pill-bg: rgba(241, 239, 234, 0.85);
            --input-bg: rgba(247, 245, 241, 0.94);
            color-scheme: light;
        }

        body {
            background-color: var(--bg-primary);
            color: var(--text-primary);
            transition: background-color 0.45s ease, color 0.45s ease;
            overflow-x: hidden;
            min-height: 100vh;
        }
        .brand-logo { display:block; width:auto; height:64px; max-width:170px; object-fit:contain; }
        .brand-logo-light { display:none; }
        :root[data-theme="light"] .brand-logo-dark { display:none; }
        :root[data-theme="light"] .brand-logo-light { display:block; }
        .brand-compact { display:none; align-items:center; gap:.55rem; font-size:1.1rem; font-weight:800; color:var(--text-primary); }
        .brand-compact img { width:36px; height:36px; flex:none; }
        @media(max-width:767px) { .brand-logo { display:none !important; } .brand-compact { display:flex; } }
        .app-shell > header { position:relative; z-index:30; }

        /* Ультрамягкие стеклянные поверхности */
        .glass-surface {
            background: var(--glass-bg);
            backdrop-filter: blur(22px);
            -webkit-backdrop-filter: blur(22px);
            border: 1px solid var(--glass-border);
            box-shadow: var(--glass-shadow);
            transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
        }

        .glass-pill {
            background: var(--pill-bg);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid var(--glass-border);
            box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.15);
            transition: all 0.25s cubic-bezier(0.23, 1, 0.32, 1);
        }

        .glass-pill:hover {
            background: var(--glass-bg-hover);
            border-color: rgba(139, 92, 246, 0.4);
        }

        .glass-input {
            background: var(--input-bg);
            backdrop-filter: blur(14px);
            border: 1px solid var(--glass-border);
            color: var(--text-primary);
            box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
            transition: all 0.25s ease;
        }

        .glass-input:focus {
            outline: none;
            border-color: #8B5CF6;
            box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2);
        }
        select, select option, select optgroup { color: var(--text-primary); }
        select option, select optgroup { background: #202638; }
        :root[data-theme="light"] select option, :root[data-theme="light"] select optgroup { background: #f6f2fb; color: #141224; }
        .glass-select-host { position:relative; display:inline-flex; min-width:0; max-width:100%; vertical-align:middle; }
        .glass-select-native { display:none !important; }
        .glass-select-trigger { color:var(--text-primary); background:var(--pill-bg); border:1px solid var(--glass-border); border-radius:999px; padding:.55rem 1.9rem .55rem .85rem; font-size:.78rem; font-weight:600; white-space:nowrap; text-overflow:ellipsis; overflow:hidden; max-width:100%; min-height:2.3rem; text-align:left; position:relative; }
        .glass-select-trigger::after { content:''; position:absolute; right:.72rem; top:50%; width:.42rem; height:.42rem; border-right:2px solid var(--text-secondary); border-bottom:2px solid var(--text-secondary); transform:translateY(-72%) rotate(45deg); }
        .glass-select-options { position:absolute; z-index:100; top:calc(100% + .4rem); left:0; min-width:max(100%,11rem); max-width:min(21rem,calc(100vw - 2rem)); max-height:min(22rem,55vh); overflow:auto; padding:.35rem; border-radius:1.25rem; border:1px solid var(--glass-border); background:#202638; box-shadow:0 18px 48px rgba(0,0,0,.48); color:#f8fafc; }
        .glass-select-options[hidden] { display:none; }
        #tab-study:has(.glass-select-options:not([hidden])) { position:relative; z-index:15; }
        #tab-study > div:first-child > div:has(.glass-select-options:not([hidden])) { position:relative; z-index:25; }
        .study-toolbar .glass-select-host:has(#from),.study-toolbar .glass-select-host:has(#to) { position:static !important; }
        .study-toolbar .glass-select-host:has(#from) .glass-select-options,.study-toolbar .glass-select-host:has(#to) .glass-select-options { left:auto; right:calc(100% + .8rem); top:0; }
        #ui-lang + .glass-select-trigger + .glass-select-options { left:auto; right:0; }
        @media(max-width:1250px) { .study-toolbar .glass-select-host:has(#from) .glass-select-options,.study-toolbar .glass-select-host:has(#to) .glass-select-options { left:0; right:auto; top:calc(100% + .5rem); } }
        .app-shell > header:has(#ui-lang + .glass-select-trigger[aria-expanded="true"]) .header-controls { position:relative; z-index:50; }
        :root[data-theme="light"] .glass-select-options { background:#f8f5fd; color:#18142b; box-shadow:0 18px 45px rgba(56,40,106,.22); border-color:#e5dcf6; }
        .glass-select-option { display:block; width:100%; border:0; border-radius:.85rem; background:transparent; color:inherit; text-align:left; padding:.65rem .8rem; font-size:.82rem; cursor:pointer; }
        .glass-select-trigger[data-flag],.glass-select-option[data-flag] { display:inline-flex; align-items:center; gap:.42rem; }
        .glass-select-option[data-flag] { display:flex; }
        .glass-select-trigger[data-flag]::before,.glass-select-option[data-flag]::before { content:''; width:1.08rem; height:.74rem; flex:none; border-radius:.12rem; background-size:cover; background-position:center; box-shadow:0 0 0 1px rgba(255,255,255,.18); }
        [data-flag="ru"]::before { background-image:url('./icons/flag-ru.svg'); }
        [data-flag="de"]::before { background-image:url('./icons/flag-de.svg'); }
        [data-flag="en"]::before { background-image:url('./icons/flag-en.svg'); }
        [data-flag="uk"]::before { background-image:url('./icons/flag-uk.svg'); }
        [data-flag="fr"]::before { background-image:url('./icons/flag-fr.svg'); }
        [data-flag="es"]::before { background-image:url('./icons/flag-es.svg'); }
        [data-flag="it"]::before { background-image:url('./icons/flag-it.svg'); }
        [data-flag="la"]::before { background-image:url('./icons/flag-la.svg'); }
        .glass-select-option:hover,.glass-select-option:focus-visible,.glass-select-option[aria-selected="true"] { background:rgba(139,92,246,.22); }
        .glass-select-option:disabled { opacity:.45; cursor:not-allowed; }
        #ui-lang + .glass-select-trigger { background:transparent; border:0; padding:.4rem 1.4rem .4rem .55rem; min-height:2.2rem; }
        #ui-lang + .glass-select-trigger::after { right:.3rem; }
        #main .glass-select-host:has(#from),#main .glass-select-host:has(#to) { flex:1; }
        #main .glass-select-host:has(#from) .glass-select-trigger,#main .glass-select-host:has(#to) .glass-select-trigger { background:transparent; border:0; padding:.3rem 1.4rem .3rem .35rem; min-height:1.8rem; font-size:.73rem; }
        #main .glass-select-host:has(#goal) .glass-select-trigger { min-width:4rem; }
        input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus,
        textarea:-webkit-autofill, select:-webkit-autofill {
            -webkit-text-fill-color: var(--text-primary) !important;
            -webkit-box-shadow: 0 0 0 1000px #202638 inset !important;
            box-shadow: 0 0 0 1000px #202638 inset !important;
            caret-color: var(--text-primary);
            transition: background-color 9999s ease-out;
        }
        :root[data-theme="light"] input:-webkit-autofill, :root[data-theme="light"] input:-webkit-autofill:hover,
        :root[data-theme="light"] input:-webkit-autofill:focus, :root[data-theme="light"] textarea:-webkit-autofill,
        :root[data-theme="light"] select:-webkit-autofill {
            -webkit-box-shadow: 0 0 0 1000px #f6f2fb inset !important;
            box-shadow: 0 0 0 1000px #f6f2fb inset !important;
        }
        .file-control { position:relative; overflow:hidden; }
        .file-control input[type=file] { position:absolute; inset:0; opacity:0; width:100%; height:100%; cursor:pointer; }
        .file-control .file-button { display:inline-flex; align-items:center; gap:.5rem; border-radius:999px; padding:.65rem 1rem; background:var(--pill-bg); border:1px solid var(--glass-border); color:var(--text-primary); font-size:.8rem; font-weight:600; }
        .file-control:focus-within .file-button { outline:2px solid #8b5cf6; outline-offset:2px; }
        .glass-pair-selectors,.glass-card-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
        .glass-pair-selectors { margin-bottom:1.2rem; }
        .glass-pair-selectors > div { display:flex; flex-direction:column; align-items:flex-start; gap:.35rem; min-width:0; }
        .glass-pair-selectors .glass-select-host,.glass-pair-selectors .glass-select-trigger { width:100%; }
        .glass-field-label,.glass-language-label { display:block; color:var(--text-secondary); font-size:.76rem; font-weight:600; margin-bottom:.42rem; }
        .glass-language-label { color:var(--text-primary); font-size:.85rem; }
        .glass-language-label[data-flag] { display:flex; align-items:center; gap:.5rem; }
        .glass-language-label[data-flag]::before { content:''; width:1.15rem; height:.8rem; flex:none; border-radius:.15rem; background-size:cover; background-position:center; box-shadow:0 0 0 1px var(--glass-border); }
        .glass-language-label[data-flag="ru"]::before { background-image:url('./icons/flag-ru.svg'); }
        .glass-language-label[data-flag="de"]::before { background-image:url('./icons/flag-de.svg'); }
        .glass-language-label[data-flag="en"]::before { background-image:url('./icons/flag-en.svg'); }
        .glass-language-label[data-flag="fr"]::before { background-image:url('./icons/flag-fr.svg'); }
        .glass-language-label[data-flag="uk"]::before { background-image:url('./icons/flag-uk.svg'); }
        .glass-language-label[data-flag="es"]::before { background-image:url('./icons/flag-es.svg'); }
        .glass-language-label[data-flag="it"]::before { background-image:url('./icons/flag-it.svg'); }
        .glass-language-label[data-flag="la"]::before { background-image:url('./icons/flag-la.svg'); }
        .dictionary-word { display:grid; gap:.12rem; margin-top:.65rem; }
        .dictionary-language { display:inline-flex; align-items:center; gap:.4rem; color:var(--text-secondary); font-size:.7rem; font-weight:700; letter-spacing:.03em; }
        .dictionary-language[data-flag]::before { content:''; width:1rem; height:.7rem; border-radius:.12rem; flex:none; background-size:cover; background-position:center; box-shadow:0 0 0 1px var(--glass-border); }
        .dictionary-language[data-flag="ru"]::before { background-image:url('./icons/flag-ru.svg'); }
        .dictionary-language[data-flag="de"]::before { background-image:url('./icons/flag-de.svg'); }
        .dictionary-language[data-flag="en"]::before { background-image:url('./icons/flag-en.svg'); }
        .dictionary-language[data-flag="fr"]::before { background-image:url('./icons/flag-fr.svg'); }
        .dictionary-language[data-flag="uk"]::before { background-image:url('./icons/flag-uk.svg'); }
        .dictionary-language[data-flag="es"]::before { background-image:url('./icons/flag-es.svg'); }
        .dictionary-language[data-flag="it"]::before { background-image:url('./icons/flag-it.svg'); }
        .dictionary-language[data-flag="la"]::before { background-image:url('./icons/flag-la.svg'); }
        .dictionary-word h4,.dictionary-word p { color:var(--text-primary); font-size:1rem; font-weight:700; line-height:1.35; overflow-wrap:anywhere; }
        #tab-progress:has(.glass-select-options:not([hidden])) .stat-hero { position:relative; z-index:30; }
        .legacy .more-section:has(.glass-select-options:not([hidden])) { position:relative; z-index:30; }
        .legacy .panel:has(.glass-select-options:not([hidden])) { position:relative; z-index:40; overflow:visible; }
        .glass-language-field { min-width:0; padding:1rem; border-radius:1.4rem; background:var(--pill-bg); border:1px solid var(--glass-border); }
        .glass-language-field .glass-field-label { margin-top:.85rem; }
        .glass-language-field .accent-row { margin-top:.4rem; }
        .glass-extra-summary { cursor:pointer; display:inline-flex; align-items:center; border-radius:999px; padding:.55rem .9rem; background:var(--pill-bg); border:1px solid var(--glass-border); color:var(--text-primary); font-size:.8rem; font-weight:600; }
        .glass-pronunciation { padding-top:1rem; }
        .glass-pronunciation h3 { font-size:.8rem; font-weight:600; margin-bottom:.7rem; }
        .glass-card-footer { display:flex; gap:.7rem; align-items:center; margin-top:1.2rem; }
        .glass-primary-action { display:inline-flex; gap:.4rem; align-items:center; justify-content:center; white-space:nowrap; padding:.85rem 1rem; border-radius:999px; background:linear-gradient(90deg,#7c3aed,#4f46e5); color:white; font-size:.82rem; font-weight:700; }
        .voice-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.8rem; margin-top:1rem; }
        .voice-row { display:flex; align-items:center; gap:.5rem; }
        .voice-row .glass-select-host,.voice-row .glass-select-trigger { flex:1; min-width:0; }
        #welcome-name-dialog { background:var(--bg-primary); color:var(--text-primary); border:1px solid var(--glass-border); box-shadow:0 30px 80px rgba(0,0,0,.42); }
        #welcome-name-dialog::backdrop { background:rgba(5,8,18,.65); backdrop-filter:blur(8px); }
        @media(max-width:580px) { .glass-pair-selectors,.glass-card-fields,.voice-grid { grid-template-columns:minmax(0,1fr); } .glass-card-footer { flex-direction:column; align-items:stretch; } }

        /* Идеальный 3D-переворот строго на месте с пружинистым масштабированием */
        .perspective-container {
            perspective: 1400px;
            width: 100%;
            height: 100%;
        }
        .swipe-shell { position:relative; width:100%; height:100%; touch-action:pan-y; user-select:none; transition:transform .38s cubic-bezier(.2,.8,.25,1),opacity .32s ease; will-change:transform; }
        .swipe-shell.dragging { transition:none; cursor:grabbing; }
        .swipe-shell.fly-left { transform:translate(-150vw,-45px) rotate(-24deg) !important; opacity:0; transition:transform .32s ease-in,opacity .32s ease-in !important; }
        .swipe-shell.fly-right { transform:translate(150vw,-45px) rotate(24deg) !important; opacity:0; transition:transform .32s ease-in,opacity .32s ease-in !important; }
        .swipe-stamp { position:absolute; top:2.3rem; z-index:20; padding:.45rem .8rem; border:3px solid currentColor; border-radius:.8rem; font-weight:900; font-size:clamp(.85rem,2vw,1.35rem); text-transform:uppercase; letter-spacing:.04em; opacity:0; pointer-events:none; background:var(--bg-primary); box-shadow:var(--glass-shadow); transition:opacity .12s ease; }
        .swipe-left { right:2rem; color:#fb7185; transform:rotate(12deg); }
        .swipe-right { left:2rem; color:#34d399; transform:rotate(-12deg); }

        .card-3d-inner {
            position: relative;
            width: 100%;
            height: 100%;
            transform-style: preserve-3d;
            -webkit-transform-style: preserve-3d;
            transform-origin: center center;
            transition: transform 0.95s cubic-bezier(0.22, 0.8, 0.3, 1);
            will-change: transform;
        }

        .card-3d-inner.is-flipped {
            transform: rotateY(180deg);
        }

        .card-3d-inner.is-unflipping {
            transform: rotateY(0deg);
        }
        [data-a="say"].is-speaking { animation:speaker-pulse .9s ease-in-out infinite alternate; }
        @keyframes speaker-pulse { from { box-shadow:0 0 0 0 rgba(20,184,166,.18); } to { box-shadow:0 0 0 .6rem rgba(20,184,166,0); } }
        #tab-study { margin-top:1.5rem; margin-bottom:0; }
        .study-toolbar { position:relative; z-index:25; padding:.45rem; border:1px solid var(--glass-border); border-radius:1.5rem; background:var(--glass-bg); box-shadow:var(--glass-shadow); }
        .study-filter { position:static; z-index:35; }
        .study-filter summary { list-style:none; cursor:pointer; padding:.55rem .8rem; border-radius:999px; font-size:.78rem; font-weight:700; white-space:nowrap; }
        .study-filter summary::-webkit-details-marker { display:none; }
        .study-filter-pop { position:absolute; left:calc(100% + 1rem); right:auto; top:0; width:min(20rem,calc(100vw - 2rem)); max-height:min(28rem,65vh); overflow:auto; border-radius:1.15rem; padding:.9rem; display:grid; gap:.45rem; z-index:100; }
        @media(max-width:1250px) { .study-filter-pop { left:auto; right:0; top:calc(100% + .5rem); } }
        .study-filter-pop strong { margin-top:.4rem; font-size:.82rem; }
        .study-filter-pop label { display:flex; align-items:center; gap:.45rem; font-size:.78rem; cursor:pointer; padding:.25rem; }
        .study-word-list { display:grid; max-height:12rem; overflow:auto; }
        .study-filter-pop input[type="search"] { width:100%; border-radius:.8rem; padding:.55rem; color:var(--text-primary); background:var(--input-bg); border:1px solid var(--glass-border); }
        [data-word-label][hidden] { display:none; }
        .award-category { border-radius:1.4rem; padding:1rem; }
        .award-category summary { cursor:pointer; list-style:none; display:grid; grid-template-columns:1fr auto; gap:.35rem 1rem; align-items:center; font-weight:800; }
        .award-category summary::-webkit-details-marker { display:none; }
        .award-category summary small { grid-column:1/-1; color:var(--text-secondary); font-weight:500; }
        .award-category .stat-award-grid { margin-top:1rem; }
        .conflict-review { margin-top:1rem; padding-top:1rem; border-top:1px solid var(--glass-border); }
        .conflict-review > .hint { margin-bottom:.65rem; }
        .conflict-counts { display:flex; flex-wrap:wrap; gap:.5rem 1.5rem; margin:.8rem 0; color:var(--text-secondary); font-size:.85rem; }
        .conflict-counts b { color:var(--text-primary); }
        .conflict-card { margin:.8rem 0; padding:1rem; border:1px solid var(--glass-border); border-radius:1.1rem; background:var(--pill-bg); }
        .conflict-card h3 { margin:0 0 .65rem; font-weight:800; overflow-wrap:anywhere; }
        .conflict-versions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.75rem; }
        .conflict-versions > div { min-width:0; padding:.75rem; border-radius:.85rem; background:var(--input-bg); overflow-wrap:anywhere; font-size:.83rem; line-height:1.55; }
        .conflict-versions strong { display:block; margin-bottom:.35rem; color:var(--text-primary); }
        .conflict-versions b { color:var(--text-secondary); font-size:.73rem; margin-right:.35rem; }
        .conflict-backups { margin-top:.85rem; color:var(--text-secondary); font-size:.83rem; }
        .conflict-backups summary { cursor:pointer; text-decoration:underline; text-underline-offset:3px; }
        .conflict-backups .row { margin-top:.55rem; }
        @media(max-width:560px) { .conflict-versions { grid-template-columns:1fr; } }
        #tab-study .glass-select-host:has(.glass-select-options:not([hidden])) { z-index:20; }
        #tab-study .glass-select-host:has(#from) .glass-select-options,#tab-study .glass-select-host:has(#to) .glass-select-options { bottom:auto; top:calc(100% + .4rem); }
        @media(max-width:640px) {
          #tab-study { margin-top:.5rem; }
          #tab-study > div:first-child:has(#from + .glass-select-trigger[aria-expanded="true"],#to + .glass-select-trigger[aria-expanded="true"]) { margin-bottom:0; }
          #tab-study > div:first-child:has(#from + .glass-select-trigger[aria-expanded="true"],#to + .glass-select-trigger[aria-expanded="true"]) > div:nth-child(2) { margin-top:14rem; }
          #tab-study > div:first-child:has(#tg + .glass-select-trigger[aria-expanded="true"]) { margin-bottom:4rem; }
          .app-shell > header:has(#ui-lang + .glass-select-trigger[aria-expanded="true"]) #tabs-mobile { margin-top:14rem; }
        }

        @keyframes cardFlipPop {
            0% { transform: rotateY(0deg) scale(1); }
            45% { transform: rotateY(95deg) scale(1.035); }
            100% { transform: rotateY(180deg) scale(1); }
        }

        @keyframes cardUnflipPop {
            0% { transform: rotateY(180deg) scale(1); }
            45% { transform: rotateY(85deg) scale(1.035); }
            100% { transform: rotateY(0deg) scale(1); }
        }

        .card-3d-face {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            backface-visibility: hidden;
            -webkit-backface-visibility: hidden;
            transform: rotateY(0deg) translateZ(1px);
        }

        .card-3d-back {
            transform: rotateY(180deg) translateZ(1px);
        }

        /* Световой блик, пробегающий по стеклу во время переворота */
        .card-sheen {
            position: absolute;
            inset: 0;
            background: linear-gradient(115deg, transparent 25%, rgba(255, 255, 255, 0.22) 50%, transparent 75%);
            transform: translateX(-120%);
            pointer-events: none;
            z-index: 20;
        }

        .card-3d-inner.is-flipped .card-sheen,
        .card-3d-inner.is-unflipping .card-sheen {
            animation: sheenSweep 0.7s ease-out;
        }

        @keyframes sheenSweep {
            0% { transform: translateX(-120%); }
            100% { transform: translateX(120%); }
        }

        /* Кастомный скроллбар */
        ::-webkit-scrollbar {
            width: 6px;
            height: 6px;
        }
        ::-webkit-scrollbar-track {
            background: transparent;
        }
        ::-webkit-scrollbar-thumb {
            background: rgba(148, 163, 184, 0.25);
            border-radius: 9999px;
        }

        [hidden] { display: none !important; }
        button { cursor: pointer; transition:filter .2s ease,box-shadow .2s ease,transform .18s ease,background-color .2s ease,border-color .2s ease; }
        @media(hover:hover) {
          button:not(:disabled):hover,.study-filter summary:hover,.file-control:hover .file-button { filter:brightness(1.1); box-shadow:0 0 0 2px rgba(139,92,246,.32),0 9px 25px rgba(99,102,241,.2); }
          .glass-surface:has(button:not(:disabled):hover),.legacy .panel:has(button:not(:disabled):hover) { border-color:rgba(139,92,246,.4); box-shadow:var(--glass-shadow),0 0 26px rgba(139,92,246,.12); }
        }
        button:not(:disabled):active,.study-filter summary:active,.file-control:active .file-button { transform:translateY(1px) scale(.97); box-shadow:0 0 0 3px rgba(139,92,246,.42),0 4px 15px rgba(99,102,241,.24); }
        button:focus-visible,.study-filter summary:focus-visible,.file-control:focus-within .file-button { outline:2px solid #8b5cf6; outline-offset:3px; box-shadow:0 0 0 5px rgba(139,92,246,.2); }
        :focus-visible { outline: 2px solid #8b5cf6; outline-offset: 3px; }
        @media (prefers-reduced-motion: reduce) {
            .animate-blob, .animate-blob-delayed, .card-sheen { animation: none !important; transition-duration: 0s !important; }
            .card-3d-inner { animation: none !important; transition-duration: .2s !important; }
            .swipe-shell,.swipe-stamp { transition-duration:.01s !important; }
            button,.study-filter summary,.file-control .file-button { transition-duration:.01s !important; }
        }
        .voice-help-link { display:inline; margin:0; padding:0; border-radius:0; background:transparent; color:inherit; font-weight:inherit; text-decoration:underline; text-underline-offset:2px; }
        .stat-hero,.stat-period,.stat-week,.stat-months,.stat-awards-heading,.stat-award-link,.stat-award { border-radius:1.5rem; }
        .stat-hero,.stat-period,.stat-week,.stat-months,.stat-awards-heading { padding:1.5rem; }
        .stat-hero { display:grid; grid-template-columns:1fr auto; gap:1rem; background:linear-gradient(130deg,rgba(139,92,246,.22),rgba(16,185,129,.1)); }
        .stat-eyebrow { color:#a78bfa; font-weight:700; font-size:.76rem; letter-spacing:.1em; text-transform:uppercase; }
        .stat-hero h1,.stat-awards-heading h1 { font-size:1.4rem; font-weight:800; margin:.15rem 0 .7rem; }
        .stat-today { font-size:3.3rem; line-height:1; font-variant-numeric:tabular-nums; }
        .stat-today small { font-size:1.5rem; color:var(--text-secondary); }
        .stat-hero p,.stat-note,.stat-award p { color:var(--text-secondary); font-size:.82rem; }
        .stat-goal-control { display:flex; flex-direction:column; align-items:flex-end; gap:.4rem; font-size:.8rem; }
        .stat-track { grid-column:1/-1; height:.65rem; border-radius:99px; background:rgba(128,128,160,.22); overflow:hidden; }
        .stat-track span { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#8b5cf6,#10b981); transition:width .3s ease; }
        .stat-periods { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
        .stat-week h2 { font-size:1rem; font-weight:800; margin-bottom:.8rem; }
        .stat-bars { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:.65rem; height:8.5rem; }
        .stat-bar { display:flex; flex-direction:column; align-items:center; gap:.2rem; min-width:0; }
        .stat-bar-track { width:100%; max-width:2.6rem; height:5.7rem; display:flex; align-items:flex-end; border-radius:.5rem .5rem .2rem .2rem; background:var(--pill-bg); overflow:hidden; }
        .stat-bar-track span { display:block; width:100%; background:linear-gradient(0deg,#8b5cf6,#10b981); border-radius:.5rem .5rem 0 0; }
        .stat-bar strong,.stat-bar small { font-size:.7rem; }
        .stat-bar small { color:var(--text-secondary); }
        .stat-period h3,.stat-months h2 { font-weight:800; font-size:1rem; margin-bottom:1rem; }
        .stat-metrics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.65rem; }
        .stat-metric { padding:.8rem; border-radius:1.1rem; background:var(--pill-bg); display:flex; flex-direction:column; gap:.25rem; }
        .stat-metric strong { font-size:1.35rem; font-variant-numeric:tabular-nums; }
        .stat-metric span { font-size:.72rem; color:var(--text-secondary); line-height:1.25; }
        .stat-award-link { padding:1rem 1.25rem; display:flex; justify-content:space-between; align-items:center; gap:1rem; text-align:left; font-weight:700; }
        .stat-award-link strong { color:#fbbf24; white-space:nowrap; }
        .stat-month-scroll { overflow:auto; }
        .stat-months table { border-collapse:collapse; width:100%; min-width:660px; font-size:.77rem; }
        .stat-months th,.stat-months td { padding:.65rem .45rem; border-bottom:1px solid var(--glass-border); text-align:right; }
        .stat-months th:first-child,.stat-months td:first-child { text-align:left; }
        .stat-months thead { color:var(--text-secondary); }
        .stat-awards-heading { display:flex; align-items:center; justify-content:space-between; gap:1rem; }
        .stat-awards-heading h1 { margin:0; }
        .stat-awards-heading strong { color:#fbbf24; }
        .stat-award-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; }
        .stat-award { padding:1.1rem; display:flex; flex-direction:column; gap:.55rem; }
        .stat-award.is-earned { background:linear-gradient(145deg,rgba(16,185,129,.2),rgba(139,92,246,.13)); }
        .stat-award.is-locked { opacity:.76; }
        .stat-award-top { display:flex; align-items:center; justify-content:space-between; }
        .stat-award-icon { font-size:1.9rem; }
        .stat-award-top strong { font-size:.75rem; color:var(--text-secondary); }
        .stat-award h2 { font-weight:800; font-size:.95rem; }
        .stat-award p { flex:1; line-height:1.35; }
        @media(max-width:700px) { .stat-periods { grid-template-columns:1fr; } .stat-award-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
        @media(max-width:480px) { .stat-hero,.stat-period,.stat-week,.stat-months,.stat-awards-heading { padding:1.1rem; } .stat-award-grid { grid-template-columns:1fr; } .stat-hero { grid-template-columns:1fr; } .stat-goal-control { align-items:flex-start; } .stat-today { font-size:2.8rem; } .stat-bars { gap:.25rem; } }
        .glass-nav-on { background: var(--glass-bg-hover); box-shadow: 0 4px 16px rgba(33, 25, 77, .17); color: var(--text-primary); font-weight: 700; }
        .nav-btn:not(.glass-nav-on) { color: var(--text-secondary); }
        .nav-btn:hover { color: var(--text-primary); }
        #who-short { display: none; }
        #who-text { max-width: 9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        #auth-dialog { background: var(--bg-primary); color: var(--text-primary); box-shadow: 0 30px 80px rgba(0,0,0,.42); border: 1px solid var(--glass-border); max-height: calc(100dvh - 2rem); overflow: auto; }
        #auth-dialog::backdrop { background: rgba(5, 8, 18, .65); backdrop-filter: blur(8px); }
        .glass-grade { border: 1px solid; }
        .grade-rose { color: #fda4af; background: rgba(244,63,94,.15); border-color: rgba(244,63,94,.35); }
        .grade-amber { color: #fcd34d; background: rgba(245,158,11,.15); border-color: rgba(245,158,11,.35); }
        .grade-emerald { color: #6ee7b7; background: rgba(16,185,129,.15); border-color: rgba(16,185,129,.35); }
        .grade-sky { color: #7dd3fc; background: rgba(14,165,233,.15); border-color: rgba(14,165,233,.35); }
        :root[data-theme="light"] .grade-rose { color: #be123c; } :root[data-theme="light"] .grade-amber { color: #92400e; }
        :root[data-theme="light"] .grade-emerald { color: #047857; } :root[data-theme="light"] .grade-sky { color: #0369a1; }
        .award-emerald { background: linear-gradient(135deg,rgba(16,185,129,.25),rgba(20,184,166,.2)); border-color:rgba(16,185,129,.4); }
        .award-amber { background: linear-gradient(135deg,rgba(245,158,11,.25),rgba(249,115,22,.2)); border-color:rgba(245,158,11,.4); }
        .award-violet { background: linear-gradient(135deg,rgba(139,92,246,.25),rgba(99,102,241,.2)); border-color:rgba(139,92,246,.4); }
        .award-sky { background: linear-gradient(135deg,rgba(14,165,233,.25),rgba(6,182,212,.2)); border-color:rgba(14,165,233,.4); }
        .award-rose { background: linear-gradient(135deg,rgba(244,63,94,.25),rgba(236,72,153,.2)); border-color:rgba(244,63,94,.4); }
        .award-fuchsia { background: linear-gradient(135deg,rgba(217,70,239,.25),rgba(168,85,247,.2)); border-color:rgba(217,70,239,.4); }
        .glass-toggle { position:relative; transition: background .2s; }
        .glass-toggle::after { content:''; position:absolute; top:3px; left:3px; width:18px; height:18px; border-radius:50%; background:#fff; transition:transform .2s; }
        input:checked + .glass-toggle::after { transform:translateX(20px); }
        .glass-extra summary { list-style:none; } .glass-extra summary::-webkit-details-marker { display:none; }
        .glass-extra summary::before { content:'▸ '; } .glass-extra[open] summary::before { content:'▾ '; }
        .accent-row { display:flex; gap:5px; justify-content:center; margin-top:7px; flex-wrap:wrap; }
        .accent-key { min-width:34px; min-height:32px; padding:0 6px; border-radius:999px; background:var(--pill-bg); color:var(--text-primary); font-size:13px; border:1px solid var(--glass-border); }
        .legacy .panel { background:var(--glass-bg); backdrop-filter:blur(22px); border:1px solid var(--glass-border); box-shadow:var(--glass-shadow); border-radius:2.25rem; padding:1.5rem; margin-bottom:1rem; }
        .legacy .panel .panel { box-shadow:none; }
        .legacy .hint { color:var(--text-secondary); font-size:.875rem; line-height:1.5; }
        .legacy .bad { color:#f87171; font-weight:700; }
        .legacy .btn { padding:.65rem 1rem; border-radius:999px; background:var(--pill-bg); border:1px solid var(--glass-border); color:var(--text-primary); font-size:.8rem; font-weight:600; min-height:40px; }
        .legacy .btn.pri { background:linear-gradient(90deg,#7c3aed,#4f46e5); color:white; }
        .legacy .row { display:flex; gap:.6rem; margin-top:.8rem; flex-wrap:wrap; }
        .legacy .grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.6rem; }
        .legacy label { display:block; color:var(--text-secondary); font-size:.8rem; margin:.5rem 0 .25rem; }
        .legacy input:not([type=checkbox]), .legacy select, .legacy textarea { color:var(--text-primary); background:var(--input-bg); border:1px solid var(--glass-border); border-radius:1rem; padding:.7rem .85rem; width:100%; min-width:0; }
        .legacy input[type=checkbox] { accent-color:#10b981; margin-right:.4rem; }
        .legacy summary { cursor:pointer; font-weight:700; }
        .legacy .more-section { margin-top:1rem; }
        .legacy .more-section>.panel { background:transparent; border:0; padding:1rem 0 0; margin:0; box-shadow:none; }
        .legacy .ib { color:var(--text-secondary); font-size:.8rem; padding:.5rem; }
        .legacy .bars { display:flex; align-items:end; gap:.4rem; height:75px; margin:.7rem 0; }
        .legacy .bars>div { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:end; height:100%; }
        .legacy .bars i { width:60%; max-width:24px; background:linear-gradient(#8b5cf6,#34d399); border-radius:5px 5px 0 0; }
        .legacy .bars small { font-size:.65rem; color:var(--text-secondary); }
        .legacy .chk { display:flex; align-items:center; }
        .legacy .item { display:flex; justify-content:space-between; gap:.5rem; padding:1rem 0; border-bottom:1px solid var(--glass-border); }
        .legacy .tx { min-width:0; overflow-wrap:anywhere; }
        .legacy .dupe { padding:1rem; border-radius:1rem; border:1px solid #f59e0b; margin-top:1rem; }
        @media(max-width:767px){
          #who-text { display:none; } #who-short { display:inline; }
          .header-controls { gap:.35rem; } .header-controls #who { padding-right:.65rem; }
          #tabs-mobile { min-width:0; } #tabs-mobile button { min-width:0; }
          .legacy .grid { grid-template-columns:1fr; }
        }
        @media(max-width:520px){
          #brand-name { display:none; }
          .header-controls { gap:.25rem; }
          .header-controls #who { padding-right:.5rem; }
          .header-controls #who-short { font-size:.7rem; }
          #tabs-mobile { gap:.15rem; }
          #tabs-mobile button { font-size:.7rem; padding-left:.25rem; padding-right:.25rem; }
        }
