/* This file is generated by splitting the original frontend/styles.css.
   See frontend/styles/tokens.css and themes.css for the design-token layers
   this file consumes. */



        /* 页面基础布局 */
        body {
            font-family: 'Instrument Sans', -apple-system, sans-serif;
            background: var(--bg-body);
            background-image:
                radial-gradient(ellipse 1400px 900px at 50% -20%, rgba(0, 0, 0, 0.025), transparent 65%),
                url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
            background-attachment: fixed;
            display: flex;
            flex-direction: column;
            height: 100vh;
            margin: 0;
            box-sizing: border-box;
            color: var(--text-main);
        }



        /* 婊氬姩鏉＄粏鍖?*/
        ::-webkit-scrollbar {
            width: 5px;
            /* height controls the *horizontal* scrollbar's thickness; without
               it, horizontal bars (e.g. the task list's) fell back to the
               chunky browser default while vertical ones stayed thin. */
            height: 5px;
        }



        ::-webkit-scrollbar-track {
            background: transparent;
        }



        ::-webkit-scrollbar-thumb {
            background: #e9dfd0;
            border-radius: var(--radius-md);
        }



        @keyframes typingDots {

            0%,
            100% {
                transform: scale(0.8);
                opacity: 0.4;
            }

            50% {
                transform: scale(1.3) translateY(-4px);
                opacity: 0.9;
            }
        }



        /* 鑺傚锛欰nimation system 鈥?entrance stagger, hover lift, modal transition, signature rhythm-pulse */
        @media (prefers-reduced-motion: no-preference) {

            @keyframes fadeSlideUp {
                from {
                    opacity: 0;
                    transform: translateY(14px);
                }

                to {
                    opacity: 1;
                    transform: translateY(0);
                }
            }

            @keyframes modalPop {
                from {
                    opacity: 0;
                    transform: translateY(10px) scale(0.97);
                }

                to {
                    opacity: 1;
                    transform: translateY(0) scale(1);
                }
            }

            @keyframes overlayFadeIn {
                from {
                    opacity: 0;
                }

                to {
                    opacity: 1;
                }
            }

            /* The calendar is the permanent surface — it renders instantly,
               no entrance animation (see Motion Principles). Only the task
               list's item-stagger below is still relevant; the drawers'
               own open/close motion is a transform transition on .drawer
               in layout.css, not a keyframe. */

            .task-item {
                animation: fadeSlideUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
            }

            .task-item:nth-child(1) {
                animation-delay: 0.02s;
            }

            .task-item:nth-child(2) {
                animation-delay: 0.06s;
            }

            .task-item:nth-child(3) {
                animation-delay: 0.1s;
            }

            .task-item:nth-child(4) {
                animation-delay: 0.14s;
            }

            .task-item:nth-child(5) {
                animation-delay: 0.18s;
            }

            .task-item:nth-child(n+6) {
                animation-delay: 0.22s;
            }

            .modal[style*="block"] {
                animation: overlayFadeIn var(--motion-fast) ease both;
            }

            .modal[style*="block"] .modal-content {
                animation: modalPop 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
            }

            .task-item,
            .top-auth-button,
            .btn-sync,
            .close-btn,
            .fc-button,
            .analysis-tabs button {
                transition: background-color var(--motion-fast) ease, border-color var(--motion-fast) ease, color var(--motion-fast) ease;
            }

            /* localized hover responses (no whole-element lift/scale) live on
               .task-item:hover / .top-auth-button:hover / .btn-sync:hover in
               components.css — kept in one place instead of split across files */
        }



        @keyframes buddy-pulse {
            0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(15, 118, 110, 0.5); }
            40% { transform: scale(1.25); box-shadow: 0 0 0 8px rgba(15, 118, 110, 0); }
            100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(15, 118, 110, 0); }
        }
        /* .buddy-pulse (in components.css) is the actual pulse-flash trigger,
           already wired to real events only via celebrateBuddyProgress() in
           js/buddy.js — nothing to add here. */
