        body.xp-minimized > :not(.xp-desktop):not(.xp-minimize-ghost):not(script):not(.whatsnew-overlay):not(.xp-dev-mask):not(.xp-dev-panel):not(.xp-web-confirm):not(.toast-msg) { visibility: hidden !important; }
        body.xp-minimized { overflow: hidden; }
        body.xp-minimizing { overflow: hidden; }
        body.xp-restoring { overflow: hidden; }
        body.xp-minimizing .word-header,
        body.xp-minimizing #ribbonContent,
        body.xp-minimizing .workspace,
        body.xp-minimizing .status-bar { opacity: 0.2; }
        .xp-desktop {
            position: fixed;
            inset: 0;
            z-index: 10000;
            display: flex;
            flex-direction: column;
            font-family: Tahoma, 'Microsoft Sans Serif', sans-serif;
            color: white;
            user-select: none;
            --xp-sky-top: #2f68c5;
            --xp-sky-mid: #5ea2e8;
            --xp-sky-bottom: #b7d9f7;
            --xp-grid-a: rgba(18,72,168,0.18);
            --xp-grid-b: rgba(18,72,168,0.05);
            --xp-cloud-strong: rgba(255,255,255,0.65);
            --xp-cloud-soft: rgba(255,255,255,0.22);
            --xp-hill-a: #2f6b2f;
            --xp-hill-b: #41853b;
            --xp-hill-c: #6aaa56;
            --xp-hill-d: #84c36f;
            --xp-sun-core: #fff7cf;
            --xp-sun-glow: rgba(255, 236, 132, 0.25);
            --xp-sun-opacity: 0.95;
            --xp-stars-opacity: 0;
            background-color: var(--xp-sky-mid);
            /* Pixel-art styled XP-like wallpaper (time-driven colors) */
            background-image:
                linear-gradient(to top, var(--xp-hill-a) 0 12%, var(--xp-hill-b) 12% 19%, var(--xp-hill-c) 19% 27%, var(--xp-hill-d) 27% 34%, transparent 34%),
                linear-gradient(135deg, var(--xp-cloud-strong) 0 6%, var(--xp-cloud-soft) 6% 12%, transparent 12%),
                repeating-linear-gradient(90deg, var(--xp-grid-a) 0 4px, var(--xp-grid-b) 4px 8px),
                repeating-linear-gradient(0deg, rgba(255,255,255,0.12) 0 4px, rgba(255,255,255,0.02) 4px 8px),
                linear-gradient(to bottom, var(--xp-sky-top) 0%, var(--xp-sky-mid) 35%, var(--xp-sky-bottom) 100%);
            visibility: visible !important;
            image-rendering: pixelated;
            opacity: 0;
            transform: scale(1);
            transition: opacity 140ms linear;
            pointer-events: none;
        }
        .xp-desktop.phase-sunrise {
            --xp-sky-top: #ff954f; --xp-sky-mid: #f3b983; --xp-sky-bottom: #d7c5ff;
            --xp-grid-a: rgba(174,92,34,0.2); --xp-grid-b: rgba(174,92,34,0.08);
            --xp-cloud-strong: rgba(255,228,192,0.78); --xp-cloud-soft: rgba(255,206,150,0.35);
            --xp-hill-a: #3f6c2f; --xp-hill-b: #4f8c36; --xp-hill-c: #77b251; --xp-hill-d: #96cb72;
            --xp-sun-core: #ffd78a; --xp-sun-glow: rgba(255,170,77,0.36); --xp-stars-opacity: 0;
        }
        .xp-desktop.phase-morning {
            --xp-sky-top: #3d82d8; --xp-sky-mid: #77b4ee; --xp-sky-bottom: #b7dff8;
            --xp-grid-a: rgba(35,94,188,0.16); --xp-grid-b: rgba(35,94,188,0.05);
            --xp-cloud-strong: rgba(255,255,255,0.70); --xp-cloud-soft: rgba(239,247,255,0.28);
            --xp-hill-a: #2f6b2f; --xp-hill-b: #438a39; --xp-hill-c: #67aa4e; --xp-hill-d: #88c76d;
            --xp-sun-core: #fff0a8; --xp-sun-glow: rgba(255,226,138,0.33); --xp-stars-opacity: 0;
        }
        .xp-desktop.phase-noon {
            --xp-sky-top: #2b66cf; --xp-sky-mid: #60a7ef; --xp-sky-bottom: #bfe2fb;
            --xp-grid-a: rgba(18,72,168,0.18); --xp-grid-b: rgba(18,72,168,0.05);
            --xp-cloud-strong: rgba(255,255,255,0.75); --xp-cloud-soft: rgba(247,252,255,0.32);
            --xp-hill-a: #2f6b2f; --xp-hill-b: #41853b; --xp-hill-c: #6aaa56; --xp-hill-d: #84c36f;
            --xp-sun-core: #fff7cf; --xp-sun-glow: rgba(255,236,132,0.25); --xp-stars-opacity: 0;
        }
        .xp-desktop.phase-afternoon {
            --xp-sky-top: #4f7ac8; --xp-sky-mid: #7aa3df; --xp-sky-bottom: #bdd6f1;
            --xp-grid-a: rgba(46,88,167,0.15); --xp-grid-b: rgba(46,88,167,0.05);
            --xp-cloud-strong: rgba(255,255,255,0.62); --xp-cloud-soft: rgba(236,243,255,0.24);
            --xp-hill-a: #2d6030; --xp-hill-b: #3f7d3b; --xp-hill-c: #5f9d4e; --xp-hill-d: #7cb763;
            --xp-sun-core: #ffeeb3; --xp-sun-glow: rgba(255,212,132,0.28); --xp-stars-opacity: 0;
        }
        .xp-desktop.phase-sunset {
            --xp-sky-top: #5d3b8c; --xp-sky-mid: #d57456; --xp-sky-bottom: #f1b587;
            --xp-grid-a: rgba(121,62,37,0.2); --xp-grid-b: rgba(121,62,37,0.08);
            --xp-cloud-strong: rgba(255,210,170,0.72); --xp-cloud-soft: rgba(255,175,132,0.33);
            --xp-hill-a: #24492a; --xp-hill-b: #2f6034; --xp-hill-c: #4a8650; --xp-hill-d: #64a66a;
            --xp-sun-core: #ffbf78; --xp-sun-glow: rgba(255,124,66,0.45); --xp-stars-opacity: 0.06;
        }
        .xp-desktop.phase-night {
            --xp-sky-top: #0d1b4a; --xp-sky-mid: #1f3f73; --xp-sky-bottom: #35598f;
            --xp-grid-a: rgba(158,194,255,0.09); --xp-grid-b: rgba(158,194,255,0.03);
            --xp-cloud-strong: rgba(188,210,246,0.22); --xp-cloud-soft: rgba(170,190,236,0.10);
            --xp-hill-a: #183a22; --xp-hill-b: #265032; --xp-hill-c: #346444; --xp-hill-d: #447554;
            --xp-sun-core: #dce9ff; --xp-sun-glow: rgba(181,205,255,0.24); --xp-stars-opacity: 0.42;
        }
        .xp-desktop.phase-midnight {
            --xp-sky-top: #050a24; --xp-sky-mid: #101c46; --xp-sky-bottom: #1d2f5a;
            --xp-grid-a: rgba(132,166,255,0.08); --xp-grid-b: rgba(132,166,255,0.02);
            --xp-cloud-strong: rgba(134,162,220,0.13); --xp-cloud-soft: rgba(125,151,210,0.07);
            --xp-hill-a: #102819; --xp-hill-b: #163425; --xp-hill-c: #244837; --xp-hill-d: #2f5b47;
            --xp-sun-core: #d7e6ff; --xp-sun-glow: rgba(140,170,255,0.26); --xp-stars-opacity: 0.75;
        }
        body.xp-minimized .xp-desktop { opacity: 1; transform: scale(1); pointer-events: auto; }
        body.xp-minimizing .xp-desktop { opacity: 1; transform: scale(1); pointer-events: none; }
        body.xp-restoring .xp-desktop { opacity: 1; transform: scale(1); pointer-events: none; }
        .xp-minimize-ghost {
            position: fixed;
            z-index: 10060;
            display: none;
            border: 2px solid #8eb6ff;
            box-shadow: 0 0 0 1px #1b4da1 inset, 0 8px 24px rgba(0,0,0,0.35);
            background:
                repeating-linear-gradient(0deg, rgba(160,195,255,0.85) 0 6px, rgba(87,130,214,0.85) 6px 12px),
                repeating-linear-gradient(90deg, rgba(60,103,196,0.22) 0 6px, rgba(210,228,255,0.12) 6px 12px);
            image-rendering: pixelated;
            pointer-events: none;
            opacity: 0.96;
        }
        .xp-minimize-ghost.active {
            transition:
                left 320ms cubic-bezier(0.4, 0, 0.2, 1),
                top 320ms cubic-bezier(0.4, 0, 0.2, 1),
                width 320ms cubic-bezier(0.4, 0, 0.2, 1),
                height 320ms cubic-bezier(0.4, 0, 0.2, 1),
                opacity 280ms ease-out;
        }
        @keyframes xp-sun-breathe {
            0%, 100% {
                transform: scale(1);
                filter: brightness(1);
                box-shadow:
                    0 0 0 4px var(--xp-sun-glow),
                    0 0 18px 6px var(--xp-sun-glow),
                    0 0 36px 14px transparent;
            }
            50% {
                transform: scale(1.05);
                filter: brightness(1.1);
                box-shadow:
                    0 0 0 7px var(--xp-sun-glow),
                    0 0 28px 12px var(--xp-sun-glow),
                    0 0 52px 22px transparent;
            }
        }
        @keyframes xp-moon-breathe {
            0%, 100% {
                transform: scale(1);
                filter: brightness(1) drop-shadow(0 0 10px var(--xp-sun-glow));
                box-shadow:
                    0 0 0 3px var(--xp-sun-glow),
                    0 0 22px 8px var(--xp-sun-glow),
                    0 0 40px 16px rgba(140, 170, 255, 0.12);
            }
            50% {
                transform: scale(1.04);
                filter: brightness(1.15) drop-shadow(0 0 18px var(--xp-sun-glow));
                box-shadow:
                    0 0 0 6px var(--xp-sun-glow),
                    0 0 34px 14px var(--xp-sun-glow),
                    0 0 58px 24px rgba(140, 170, 255, 0.2);
            }
        }
        @keyframes xp-stars-twinkle {
            0%, 100% {
                opacity: var(--xp-stars-opacity);
                filter: brightness(1);
            }
            50% {
                opacity: min(1, calc(var(--xp-stars-opacity) * 1.35 + 0.08));
                filter: brightness(1.25);
            }
        }
        .xp-desktop::before {
            content: '';
            position: absolute;
            top: 16%;
            right: 10%;
            width: 84px;
            height: 84px;
            transform-origin: center center;
            background:
                linear-gradient(var(--xp-sun-core), var(--xp-sun-core)) 14px 14px/56px 56px no-repeat;
            box-shadow:
                0 0 0 4px var(--xp-sun-glow),
                0 0 18px 6px var(--xp-sun-glow);
            opacity: var(--xp-sun-opacity);
            pointer-events: none;
            animation: xp-sun-breathe 4.2s ease-in-out infinite;
            will-change: transform, filter, box-shadow;
        }
        .xp-desktop.phase-night::before,
        .xp-desktop.phase-midnight::before {
            animation: xp-moon-breathe 5.5s ease-in-out infinite;
        }
        .xp-desktop::after {
            content: '';
            position: absolute;
            inset: 0;
            transform-origin: center center;
            background-image:
                radial-gradient(circle at 12% 18%, rgba(255,255,255,0.92) 0 1px, transparent 2px),
                radial-gradient(circle at 28% 10%, rgba(255,255,255,0.82) 0 1px, transparent 2px),
                radial-gradient(circle at 40% 20%, rgba(255,255,255,0.88) 0 1px, transparent 2px),
                radial-gradient(circle at 62% 12%, rgba(255,255,255,0.84) 0 1px, transparent 2px),
                radial-gradient(circle at 75% 24%, rgba(255,255,255,0.8) 0 1px, transparent 2px),
                radial-gradient(circle at 88% 15%, rgba(255,255,255,0.9) 0 1px, transparent 2px),
                radial-gradient(circle at 18% 32%, rgba(255,255,255,0.75) 0 1px, transparent 2px),
                radial-gradient(circle at 52% 28%, rgba(255,255,255,0.7) 0 1px, transparent 2px),
                radial-gradient(circle at 82% 34%, rgba(255,255,255,0.78) 0 1px, transparent 2px);
            opacity: var(--xp-stars-opacity);
            pointer-events: none;
        }
        .xp-desktop.phase-sunset::after,
        .xp-desktop.phase-night::after,
        .xp-desktop.phase-midnight::after {
            animation: xp-stars-twinkle 3.8s ease-in-out infinite;
            will-change: opacity, filter;
        }
        .xp-desktop.phase-midnight::after {
            animation-duration: 4.6s;
        }
        @media (prefers-reduced-motion: reduce) {
            .xp-desktop::before,
            .xp-desktop::after {
                animation: none !important;
                will-change: auto;
            }
        }
        .xp-desktop__icons {
            position: absolute;
            top: 16px;
            left: 14px;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 2px;
            z-index: 1;
        }
        .xp-desktop__icon {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            gap: 5px;
            width: 98px;
            min-height: 90px;
            padding: 6px 5px 7px;
            box-sizing: border-box;
            background: transparent;
            border: 1px dotted transparent;
            color: white;
            font-family: inherit;
            font-size: 12px;
            text-align: center;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.85);
            cursor: pointer;
            line-height: 1.2;
            transition: background-color 120ms ease, border-color 120ms ease, transform 120ms ease;
        }
        .xp-desktop__icon:hover { background: rgba(80, 128, 200, 0.32); border-color: rgba(255,255,255,0.55); }
        .xp-desktop__icon:active { transform: scale(0.96); background: rgba(80, 128, 200, 0.45); }
        /* Fixed artboard — all glyphs share the same visual footprint (classic XP desktop). */
        .xp-desktop__icon-art {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 56px;
            height: 56px;
            flex-shrink: 0;
        }
        .xp-desktop__icon-art svg {
            display: block;
            width: 48px;
            height: 48px;
            filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.5));
            transform-origin: center center;
        }
        /* Per-icon optical balance inside the shared 40×40 slot */
        .xp-desktop__icon--typing .xp-desktop__icon-art svg { transform: scale(1.06); }
        .xp-desktop__icon--word .xp-desktop__icon-art svg { transform: scale(0.9); }
        .xp-desktop__icon--reading .xp-desktop__icon-art svg { transform: scale(0.94); }
        .xp-desktop__icon--wordgame .xp-desktop__icon-art svg { transform: scale(1.05); }
        .xp-desktop__icon--c4 .xp-desktop__icon-art svg { transform: scale(0.98); }
        .xp-desktop__icon--bmc .xp-desktop__icon-art svg { transform: scale(1.14); }
        .xp-desktop__icon--feedback .xp-desktop__icon-art svg { transform: scale(0.92); }
        .xp-desktop__icon--whatsnew .xp-desktop__icon-art svg { transform: scale(1.02); }
        /* Subtle "new" red-dot pulse to draw the eye toward the icon. */
        .xp-desktop__icon--whatsnew .xp-desktop__icon-art svg circle[fill="#ff5252"] {
            animation: xpWhatsNewDot 2.4s ease-in-out infinite;
            transform-origin: 6.5px 7.5px;
            transform-box: fill-box;
        }
        @keyframes xpWhatsNewDot {
            0%, 60%, 100% { transform: scale(1); opacity: 1; }
            30% { transform: scale(1.35); opacity: 0.75; }
        }
        @media (prefers-reduced-motion: reduce) {
            .xp-desktop__icon--whatsnew .xp-desktop__icon-art svg circle[fill="#ff5252"] {
                animation: none;
            }
        }
        .xp-desktop__icon-label {
            display: block;
            width: 100%;
            max-width: 92px;
            word-break: break-word;
            hyphens: auto;
        }

        /* Large "caacotyping.com" wallpaper branding (desktop background). */
        .xp-desktop__watermark {
            position: absolute;
            left: 50%;
            top: 52%;
            transform: translate(-50%, -50%);
            font-family: "Segoe UI", "Microsoft JhengHei", Tahoma, sans-serif;
            font-size: clamp(2.25rem, 8vw, 5.5rem);
            font-weight: 700;
            letter-spacing: 0.06em;
            line-height: 1.1;
            white-space: nowrap;
            color: rgba(255, 255, 255, 0.22);
            text-shadow:
                0 2px 8px rgba(0, 0, 0, 0.35),
                0 0 40px rgba(255, 255, 255, 0.08);
            pointer-events: none;
            z-index: 0;
            user-select: none;
        }
        @media (max-width: 520px) {
            .xp-desktop__watermark {
                font-size: clamp(1.5rem, 11vw, 2.75rem);
                top: 58%;
            }
        }

        /* =========================================================
           "返回桌面" close button — flat MS Office 2016 style. Pinned to
           the top-right corner on mobile while the typing tool surface is
           showing. Hidden on the desktop itself and inside modals.

           Office 2016 close-button anatomy:
             • 46×30 px corner button (no rounded corners)
             • Thin (~1px) × stroke, matches title-bar text colour
             • Subtle transparent default state
             • Red (#E81123) on hover, slightly darker on press, white ×
           ========================================================= */
        .return-to-desktop-fab {
            display: none;
            position: fixed;
            top: 0;
            right: 0;
            z-index: 9999;
            align-items: center;
            justify-content: center;
            width: 46px;
            height: 30px;
            padding: 0;
            background: rgba(255, 255, 255, 0.95);
            color: #333;
            border: 1px solid rgba(0, 0, 0, 0.12);
            border-top: none;
            border-right: none;
            border-radius: 0 0 0 2px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
            font-family: "Segoe UI", "Microsoft JhengHei", Tahoma, sans-serif;
            line-height: 1;
            cursor: pointer;
            transition: background-color 120ms ease, color 120ms ease;
        }
        .return-to-desktop-fab:hover,
        .return-to-desktop-fab:focus-visible {
            background-color: #e81123;
            color: #fff;
            outline: none;
        }
        .return-to-desktop-fab:active {
            background-color: #c0101e;
            color: #fff;
        }
        .return-to-desktop-fab svg {
            width: 12px;
            height: 12px;
            flex-shrink: 0;
            stroke: currentColor;
            stroke-width: 1.2;
            stroke-linecap: square;
            fill: none;
        }
        /* The text label is no longer rendered — kept hidden to preserve
           the accessible name set on the button itself. */
        .return-to-desktop-fab span {
            position: absolute;
            width: 1px;
            height: 1px;
            margin: -1px;
            padding: 0;
            overflow: hidden;
            clip: rect(0,0,0,0);
            border: 0;
            white-space: nowrap;
        }
        /* Show only on narrow viewports — and only when NOT already on
           the desktop and NOT inside a modal. */
        @media (max-width: 720px) {
            .return-to-desktop-fab { display: inline-flex; }
        }
        body.xp-minimized .return-to-desktop-fab,
        body.xp-minimizing .return-to-desktop-fab,
        body.xp-restoring .return-to-desktop-fab,
        body.whatsnew-open .return-to-desktop-fab {
            display: none !important;
        }
        @media (prefers-reduced-motion: reduce) {
            .return-to-desktop-fab { transition: none; }
        }

        /* =========================================================
           Mobile / touch-friendly desktop layout
           ========================================================= */
        @media (max-width: 720px) {
            /* Icons: switch from a single tight column to a fluid grid
               that fills the available width — easier to tap on phones. */
            .xp-desktop__icons {
                position: static;
                top: auto;
                left: auto;
                margin: 14px 10px 64px;
                display: grid;
                grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
                gap: 8px 6px;
                align-items: start;
                justify-items: center;
            }
            .xp-desktop__icon {
                width: 100%;
                min-height: 96px;
                padding: 8px 4px 10px;
                font-size: 13px;
                border-radius: 4px;
            }
            .xp-desktop__icon-art { width: 52px; height: 52px; }
            .xp-desktop__icon-art svg { width: 46px; height: 46px; }
            .xp-desktop__icon-label {
                max-width: 100%;
                line-height: 1.25;
            }
            /* Hide the giant watermark on tiny screens — it competes
               with the icons for space. */
            .xp-desktop__watermark { display: none; }
            /* Larger touch target for the taskbar / Start button. */
            .xp-taskbar { height: 40px; }
            .xp-start-btn {
                height: 36px;
                padding: 0 22px;
                font-size: 15px;
                margin: 2px 4px 2px 0;
            }
            .xp-task-entries { padding: 4px 4px; gap: 4px; }
            .xp-task-entry {
                height: 30px;
                padding: 0 12px;
                font-size: 13px;
                max-width: 160px;
            }
            .xp-task-entry svg { width: 16px; height: 16px; }
            .xp-systray {
                padding: 0 12px;
                font-size: 13px;
                gap: 10px;
            }
            .xp-systray__clock { min-width: 64px; }
            /* Start menu now spans most of the viewport. */
            .xp-start-menu { bottom: 40px; }
            .xp-start-menu__inner {
                width: min(94vw, 380px);
            }
            .xp-start-menu__user { padding: 10px 14px; }
            .xp-start-menu__avatar { width: 44px; height: 44px; font-size: 20px; }
            .xp-start-menu__username { font-size: 15px; }
            .xp-start-menu__search { padding: 8px 12px; }
            .xp-start-menu__search-input { padding: 6px 8px; font-size: 13px; }
            .xp-start-menu__columns { min-height: 280px; }
            .xp-start-menu__places { width: 140px; padding: 8px 4px; }
            .xp-start-menu__item--large { padding: 9px 10px; font-size: 14px; }
            .xp-start-menu__item-icon { width: 32px; height: 32px; font-size: 20px; }
            .xp-start-menu__place {
                padding: 9px 10px;
                font-size: 13px;
            }
            .xp-start-menu__power {
                padding: 9px 14px 9px 12px;
                font-size: 13px;
            }
            .xp-start-menu__power-icon { font-size: 16px; }
        }
        /* Very narrow phones (≤380px) — 2-column icon grid. */
        @media (max-width: 380px) {
            .xp-desktop__icons {
                grid-template-columns: repeat(2, 1fr);
            }
            .xp-desktop__icon { font-size: 12px; min-height: 92px; }
            .xp-desktop__icon-art { width: 48px; height: 48px; }
            .xp-desktop__icon-art svg { width: 42px; height: 42px; }
            .xp-start-menu__inner { width: calc(100vw - 8px); }
            .xp-start-menu__places { width: 124px; }
        }
        /* Make the icon grid the scrollable area on phones — that way the
           absolute-positioned taskbar always stays at the bottom of the
           fixed-size desktop container, without interfering with .xp-desktop's
           transform / stacking context. */
        @media (max-width: 720px) {
            .xp-desktop__icons {
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                bottom: 40px;          /* matches mobile taskbar height */
                overflow-y: auto;
                -webkit-overflow-scrolling: touch;
                padding: 14px 10px 18px;
                margin: 0;
                z-index: 1;
            }
        }

        /* Cross-page transition veil (smooth fade when navigating between tools). */
        .page-transition-veil {
            position: fixed;
            inset: 0;
            background: #0c2858;
            opacity: 0;
            pointer-events: none;
            z-index: 99999;
            visibility: visible !important;
            transition: opacity 260ms cubic-bezier(0.4, 0, 0.2, 1);
        }
        .page-transition-veil.is-active { opacity: 1; pointer-events: auto; }
        .page-transition-veil.is-entering { opacity: 1; animation: pageVeilFadeOut 320ms ease-out 30ms forwards; }
        @keyframes pageVeilFadeOut { from { opacity: 1; } to { opacity: 0; } }

        .xp-taskbar {
            position: absolute;
            bottom: 0; left: 0; right: 0;
            height: 30px;
            background: linear-gradient(to bottom, #245edb 0%, #2864d1 6%, #1c4ea4 60%, #1941a5 100%);
            border-top: 1px solid #0a2f7a;
            display: flex;
            align-items: stretch;
            padding: 0 0 0 0;
            z-index: 2;
            box-shadow: 0 -1px 0 rgba(255,255,255,0.25) inset;
        }
        .xp-start-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0;
            height: 28px;
            padding: 0 18px;
            margin: 1px 4px 1px 0;
            background: linear-gradient(to bottom, #5eaa3e 0%, #2c8c1f 50%, #258019 100%);
            color: white;
            font-style: italic;
            font-weight: bold;
            font-size: 14px;
            font-family: inherit;
            border: none;
            border-top-right-radius: 14px;
            border-bottom-right-radius: 14px;
            cursor: pointer;
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.45);
            text-shadow: 1px 1px 1px rgba(0,0,0,0.4);
        }
        .xp-start-btn:hover { background: linear-gradient(to bottom, #7ac35a 0%, #2c8c1f 50%, #258019 100%); }
        .xp-start-btn:active,
        .xp-start-btn.is-pressed {
            background: linear-gradient(to bottom, #2c8c1f 0%, #5eaa3e 100%);
            box-shadow: inset 0 2px 4px rgba(0,0,0,0.25);
        }

        /* XP Luna Start menu */
        .xp-start-menu {
            position: absolute;
            left: 0;
            bottom: 30px;
            z-index: 20;
            display: none;
            padding: 0;
            filter: drop-shadow(2px 2px 6px rgba(0,0,0,0.45));
        }
        .xp-start-menu.is-open {
            display: block;
            animation: xpStartMenuIn 120ms ease-out;
        }
        @keyframes xpStartMenuIn {
            from { opacity: 0; transform: translateY(6px); }
            to   { opacity: 1; transform: translateY(0); }
        }
        .xp-start-menu__inner {
            width: 380px;
            max-width: calc(100vw - 12px);
            background: #fff;
            border: 2px solid #1c4ea4;
            border-radius: 6px 6px 0 0;
            overflow: hidden;
            font-family: Tahoma, "Microsoft Sans Serif", "Microsoft JhengHei", sans-serif;
            font-size: 12px;
            color: #000;
        }
        .xp-start-menu__user {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 8px 12px;
            background: linear-gradient(180deg, #3d7ce8 0%, #1c55c5 50%, #0f3d9e 100%);
            color: #fff;
            border-bottom: 1px solid #0a2f7a;
        }
        .xp-start-menu__avatar {
            width: 40px;
            height: 40px;
            border-radius: 4px;
            border: 2px solid rgba(255,255,255,0.65);
            background: linear-gradient(135deg, #6eb9ff, #2B579A);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            font-weight: bold;
            box-shadow: 1px 1px 3px rgba(0,0,0,0.35);
        }
        .xp-start-menu__username {
            font-size: 14px;
            font-weight: bold;
            text-shadow: 1px 1px 1px rgba(0,0,0,0.45);
        }
        .xp-start-menu__search {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 6px 10px;
            background: linear-gradient(180deg, #d9e6f7 0%, #b7cbe6 100%);
            border-bottom: 1px solid #6f8db8;
        }
        .xp-start-menu__search-icon {
            font-size: 14px;
            line-height: 1;
            color: #1c4ea4;
            flex-shrink: 0;
        }
        .xp-start-menu__search-input {
            flex: 1;
            min-width: 0;
            padding: 3px 6px;
            font-family: inherit;
            font-size: 12px;
            color: #000;
            background: #fff;
            border: 1px solid #8a9fb8;
            border-radius: 2px;
            outline: none;
            box-shadow: inset 1px 1px 0 rgba(0,0,0,0.06);
        }
        .xp-start-menu__search-input::placeholder {
            color: #7a8aa3;
        }
        .xp-start-menu__search-input:focus {
            border-color: #316ac5;
            box-shadow: 0 0 0 1px #316ac5, inset 1px 1px 0 rgba(0,0,0,0.06);
        }
        .xp-start-menu__search-input.is-invalid {
            border-color: #c52312;
            box-shadow: 0 0 0 1px #c52312, inset 1px 1px 0 rgba(0,0,0,0.06);
            animation: xpStartSearchShake 0.4s ease-out;
        }
        @keyframes xpStartSearchShake {
            0%, 100% { transform: translateX(0); }
            25% { transform: translateX(-3px); }
            50% { transform: translateX(3px); }
            75% { transform: translateX(-2px); }
        }
        .xp-start-menu__columns {
            display: flex;
            min-height: 220px;
        }
        .xp-start-menu__pinned {
            flex: 1;
            min-width: 0;
            padding: 6px 4px 8px;
            background: #fff;
        }
        .xp-start-menu__places {
            width: 148px;
            flex-shrink: 0;
            padding: 6px 4px;
            background: linear-gradient(180deg, #6eb9ff 0%, #3d7ce8 40%, #1c55c5 100%);
            border-left: 1px solid #0a2f7a;
        }
        .xp-start-menu__item {
            display: flex;
            align-items: center;
            gap: 8px;
            width: 100%;
            padding: 4px 8px;
            border: 1px solid transparent;
            background: transparent;
            font-family: inherit;
            font-size: 12px;
            text-align: left;
            cursor: pointer;
            border-radius: 2px;
            color: #000;
        }
        .xp-start-menu__item--large {
            padding: 6px 8px;
            font-size: 13px;
            font-weight: 600;
        }
        .xp-start-menu__item:hover,
        .xp-start-menu__place:hover {
            background: #316ac5;
            color: #fff;
            border-color: #1c4ea4;
        }
        .xp-start-menu__item-icon {
            width: 28px;
            height: 28px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            flex-shrink: 0;
        }
        .xp-start-menu__sep {
            height: 1px;
            margin: 4px 8px;
            background: linear-gradient(to right, transparent, #c0c0c0, transparent);
        }
        .xp-start-menu__place {
            display: block;
            width: 100%;
            padding: 5px 10px;
            border: 1px solid transparent;
            background: transparent;
            font-family: inherit;
            font-size: 12px;
            text-align: left;
            cursor: pointer;
            border-radius: 2px;
            color: #fff;
            text-shadow: 1px 1px 1px rgba(0,0,0,0.35);
        }
        .xp-start-menu__footer {
            display: flex;
            justify-content: flex-end;
            gap: 0;
            padding: 0;
            background: linear-gradient(180deg, #3d7ce8 0%, #1c55c5 100%);
            border-top: 1px solid #0a2f7a;
        }
        .xp-start-menu__power {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 14px 6px 10px;
            border: none;
            background: transparent;
            color: #fff;
            font-family: inherit;
            font-size: 12px;
            font-weight: bold;
            cursor: pointer;
            text-shadow: 1px 1px 1px rgba(0,0,0,0.4);
        }
        .xp-start-menu__power:hover {
            background: rgba(255,255,255,0.15);
        }
        .xp-start-menu__power-icon { font-size: 14px; }
        @media (max-width: 420px) {
            .xp-start-menu__inner { width: calc(100vw - 8px); }
            .xp-start-menu__places { width: 120px; }
            .xp-start-menu__item--large { font-size: 12px; }
        }
        .xp-task-entries {
            display: flex;
            align-items: center;
            gap: 3px;
            padding: 3px 4px;
            flex: 1;
            min-width: 0;
        }
        .xp-task-entry {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            height: 22px;
            padding: 0 10px;
            background: linear-gradient(to bottom, #4f8ce0 0%, #2860c4 100%);
            border: 1px solid #1c4ea4;
            border-radius: 3px;
            color: white;
            font-family: inherit;
            font-size: 12px;
            cursor: pointer;
            max-width: 220px;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
        }
        .xp-task-entry svg { width: 14px; height: 14px; flex-shrink: 0; }
        .xp-task-entry--active {
            background: linear-gradient(to bottom, #1c4ea4 0%, #2c5fb8 100%);
            box-shadow: inset 0 1px 4px rgba(0,0,0,0.45);
            border-color: #0d2c66;
        }
        .xp-task-entry:hover:not(.xp-task-entry--active) { background: linear-gradient(to bottom, #5e98e5 0%, #2f6bce 100%); }
        .xp-systray {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            margin-left: auto;
            padding: 0 10px;
            background: linear-gradient(to bottom, #1056c0 0%, #0c3a8c 100%);
            border-left: 1px solid rgba(255,255,255,0.25);
            color: white;
            font-size: 12px;
        }
        .xp-systray__clock { min-width: 56px; text-align: center; }

        /* Launcher welcome card (XP/2000 style window) — centered on desktop. */
        .xp-welcome-card {
            position: absolute;
            left: 50%;
            top: calc(50% - 15px);
            transform: translate(-50%, -50%);
            width: min(540px, calc(100vw - 48px));
            max-height: calc(100vh - 80px);
            overflow: auto;
            background: #ece9d8;
            border: 1px solid #0c3a8c;
            border-radius: 8px 8px 5px 5px;
            box-shadow: 0 10px 28px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.45) inset;
            font-family: "Microsoft Sans Serif", Tahoma, "Segoe UI", "Microsoft JhengHei", sans-serif;
            font-size: 15px;
            color: #1b1b1b;
            z-index: 4;
            animation: xpWelcomeIn 0.32s ease-out;
        }
        @keyframes xpWelcomeIn {
            from { opacity: 0; transform: translate(-50%, calc(-50% + 14px)); }
            to   { opacity: 1; transform: translate(-50%, -50%); }
        }
        .xp-welcome-card.is-hidden { display: none; }
        .xp-welcome-card__titlebar {
            height: 34px;
            background: linear-gradient(to bottom, #2f6bce 0%, #1c4ea4 60%, #1941a5 100%);
            color: #fff;
            font-weight: bold;
            font-size: 15px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 6px 0 14px;
            border-radius: 6px 6px 0 0;
            text-shadow: 1px 1px 1px rgba(0,0,0,0.4);
        }
        .xp-welcome-card__close {
            width: 26px;
            height: 22px;
            background: linear-gradient(to bottom, #e36c4a 0%, #c73a18 100%);
            border: 1px solid #6b1a09;
            border-radius: 3px;
            color: #fff;
            font-size: 16px;
            line-height: 18px;
            font-weight: bold;
            cursor: pointer;
            padding: 0;
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
        }
        .xp-welcome-card__close:hover { background: linear-gradient(to bottom, #f08866 0%, #c73a18 100%); }
        .xp-welcome-card__body {
            padding: 18px 22px 22px;
            line-height: 1.6;
        }
        .xp-welcome-card__lead {
            margin: 0 0 10px;
            font-size: 16px;
        }
        .xp-welcome-card__sub {
            margin: 0 0 14px;
            font-size: 15px;
        }
        .xp-welcome-card__list {
            list-style: none;
            margin: 0 0 14px;
            padding: 0;
        }
        .xp-welcome-card__list li {
            padding: 8px 10px;
            margin-bottom: 6px;
            border-left: 4px solid #2f6bce;
            background: rgba(255,255,255,0.55);
            border-radius: 0 4px 4px 0;
            font-size: 14px;
            line-height: 1.55;
        }
        .xp-welcome-card__list strong { color: #1c4ea4; font-size: 15px; }
        .xp-welcome-card__hint {
            margin: 0;
            padding: 10px 12px;
            background: #fff8d1;
            border: 1px solid #c9a227;
            border-radius: 4px;
            font-size: 13px;
            color: #5C4A00;
            line-height: 1.5;
        }
        @media (max-width: 520px) {
            .xp-welcome-card {
                width: min(92vw, 440px);
                font-size: 14px;
            }
            .xp-welcome-card__lead { font-size: 15px; }
            .xp-welcome-card__body { padding: 14px 16px 18px; }
        }

        /* ---- Developer Mode panel (unlocked via "devmode" in Start search) ---- */
        .xp-dev-mask {
            position: fixed;
            inset: 0;
            background: rgba(0, 20, 60, 0.35);
            backdrop-filter: blur(2px);
            z-index: 99998;
            animation: xpDevMaskIn 160ms ease-out;
        }
        .xp-dev-mask[hidden] { display: none; }
        @keyframes xpDevMaskIn {
            from { opacity: 0; }
            to   { opacity: 1; }
        }
        .xp-dev-panel {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 440px;
            max-width: 94vw;
            max-height: 86vh;
            background: #ECE9D8;
            border: 1px solid #0A246A;
            border-radius: 8px 8px 4px 4px;
            box-shadow: 0 8px 28px rgba(0,0,0,0.45), 0 1px 0 #fff inset;
            font-family: Tahoma, "Microsoft Sans Serif", "Microsoft JhengHei", sans-serif;
            font-size: 12px;
            color: #000;
            z-index: 99999;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            animation: xpDevPanelIn 180ms ease-out;
        }
        .xp-dev-panel[hidden] { display: none; }
        @keyframes xpDevPanelIn {
            from { opacity: 0; transform: translate(-50%, -48%) scale(0.96); }
            to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
        }
        .xp-dev-panel__bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 5px 6px 5px 10px;
            background: linear-gradient(180deg, #0A246A 0%, #1C58D6 8%, #2A6BE0 48%, #0846B5 100%);
            color: #fff;
            font-weight: bold;
            font-size: 12px;
            text-shadow: 1px 1px 1px rgba(0,0,0,0.45);
            user-select: none;
        }
        .xp-dev-panel__bar-title {
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }
        .xp-dev-panel__close {
            width: 22px;
            height: 20px;
            background: linear-gradient(180deg, #f5a48c 0%, #e26a4a 35%, #b41f0a 100%);
            border: 1px solid #6a0e02;
            color: #fff;
            font-size: 11px;
            font-weight: bold;
            cursor: pointer;
            border-radius: 3px;
            line-height: 1;
            padding: 0;
        }
        .xp-dev-panel__close:hover {
            filter: brightness(1.1);
        }
        .xp-dev-panel__body {
            padding: 12px 14px 14px;
            overflow-y: auto;
            flex: 1;
        }
        .xp-dev-panel__note {
            margin: 0 0 12px;
            padding: 8px 10px;
            background: rgba(255, 192, 0, 0.18);
            border-left: 3px solid #d49b00;
            border-radius: 2px;
            font-size: 11.5px;
            line-height: 1.55;
            color: #5a3a00;
        }
        .xp-dev-panel__group {
            margin-bottom: 14px;
        }
        .xp-dev-panel__group:last-child { margin-bottom: 0; }
        .xp-dev-panel__group h3 {
            font-size: 12px;
            font-weight: bold;
            margin: 0 0 6px;
            padding: 3px 8px;
            background: linear-gradient(180deg, #dde6f5 0%, #b7cbe6 100%);
            border: 1px solid #8a9fb8;
            border-radius: 2px;
            color: #0a2f7a;
        }
        .xp-dev-btn {
            display: block;
            width: 100%;
            margin-bottom: 4px;
            padding: 6px 10px;
            background: linear-gradient(180deg, #fdfdfd 0%, #e4e4d8 100%);
            border: 1px solid #8a9fb8;
            border-radius: 3px;
            font-family: inherit;
            font-size: 12px;
            color: #000;
            cursor: pointer;
            text-align: left;
            transition: filter 120ms ease;
        }
        .xp-dev-btn:hover {
            background: linear-gradient(180deg, #fff 0%, #d8e4ff 100%);
            border-color: #316ac5;
        }
        .xp-dev-btn:active {
            filter: brightness(0.95);
        }
        .xp-dev-btn--danger {
            background: linear-gradient(180deg, #ffd6cc 0%, #ffa48f 100%);
            border-color: #c52312;
            color: #5a0a00;
            font-weight: bold;
        }
        .xp-dev-btn--danger:hover {
            background: linear-gradient(180deg, #ffc6b8 0%, #ff8a72 100%);
        }
        .xp-dev-panel__status {
            padding: 8px 10px;
            background: #fff;
            border: 1px solid #8a9fb8;
            border-radius: 2px;
            font-family: Consolas, "Courier New", monospace;
            font-size: 11px;
            line-height: 1.6;
            color: #222;
            min-height: 60px;
            margin-bottom: 4px;
            white-space: pre-wrap;
            word-break: break-word;
        }
        .xp-dev-panel__status .ok { color: #137333; font-weight: bold; }
        .xp-dev-panel__status .err { color: #c52312; font-weight: bold; }
        .xp-dev-panel__footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 6px 10px;
            background: linear-gradient(180deg, #f3f1e4 0%, #d8d4be 100%);
            border-top: 1px solid #a8a48a;
            font-size: 11px;
            color: #555;
        }
        .xp-dev-panel__footer code {
            background: #fff;
            border: 1px solid #c9c9b8;
            border-radius: 2px;
            padding: 1px 5px;
            font-family: Consolas, "Courier New", monospace;
            font-size: 11px;
            color: #1c4ea4;
        }
        @media (max-width: 500px) {
            .xp-dev-panel { width: 94vw; }
        }
