/* favorites.css — extracted verbatim from favorites.html's original inline <style>; logic/behavior unchanged, only relocated */
/* ==========================================================================
           1. DESIGN SYSTEM & VARIABLES (Synced with Suite Ecosystem)
           ========================================================================== */
        :root {
            --font-main: 'Plus Jakarta Sans', sans-serif;
            --transition-speed: 0.4s;
            --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            
            --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
            --calc-bg: #ffffff;
            --calc-border: rgba(15, 23, 42, 0.06);
            --calc-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.04);
            --text-main: #0f172a;
            --text-secondary: #64748b;
            
            --input-bg: rgba(241, 245, 249, 0.8);
            --accent-color: #eab308; /* Favorites Yellow Gold Theme Accent */
            --accent-hover: #ca8a04;
            --panel-bg: #ffffff;
            --scrollbar-thumb: rgba(15, 23, 42, 0.15);
        }

        body.dark-mode {
            --bg-gradient: linear-gradient(135deg, #020617 0%, #0f172a 100%);
            --calc-bg: rgba(15, 23, 42, 0.6);
            --calc-border: rgba(255, 255, 255, 0.06);
            --calc-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
            --text-main: #f8fafc;
            --text-secondary: #94a3b8;
            
            --input-bg: rgba(30, 41, 59, 0.5);
            --accent-color: #fde047;
            --accent-hover: #eab308;
            --panel-bg: rgba(15, 23, 42, 0.95);
            --scrollbar-thumb: rgba(255, 255, 255, 0.1);
        }

        /* ==========================================================================
           2. GLOBAL STYLES & RESET
           ========================================================================== */
        * { box-sizing: border-box; margin: 0; padding: 0; user-select: none; -webkit-user-select: none; }
        body {
            font-family: var(--font-main); background: var(--bg-gradient); min-height: 100vh;
            display: flex; justify-content: center; align-items: center; padding: 40px 20px;
            color: var(--text-main); transition: background var(--transition-speed) ease, color var(--transition-speed) ease;
            overflow-x: hidden; position: relative;
        }
        body::before {
            content: ''; position: absolute; width: 400px; height: 400px; border-radius: 50%;
            filter: blur(150px); opacity: 0.08; z-index: -1; top: -10%; left: -10%; background: #eab308;
        }

        /* ==========================================================================
           3. PREMIUM VAULT CARD CONTAINER
           ========================================================================== */
        .calc-container {
            position: relative; width: 100%; max-width: 650px; 
            height: calc(100vh - 40px); max-height: 720px;
            background: var(--calc-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
            border: 1px solid var(--calc-border); border-radius: 28px; box-shadow: var(--calc-shadow);
            display: flex; flex-direction: column; overflow: hidden; transition: var(--transition-smooth);
        }
        .calc-header {
            display: flex; justify-content: space-between; align-items: center;
            padding: 20px 24px 14px 24px; z-index: 10; flex-shrink: 0; border-bottom: 1px solid var(--calc-border);
        }
        .calc-title { font-family: 'Space Grotesk', sans-serif; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.5px; }
        .header-controls { display: flex; gap: 10px; align-items: center; }
        
        .icon-btn {
            background: var(--input-bg); border: 1px solid var(--calc-border);
            width: 38px; height: 38px; border-radius: 12px; cursor: pointer;
            display: flex; justify-content: center; align-items: center;
            color: var(--text-main); transition: var(--transition-smooth);
        }
        .icon-btn:hover { transform: scale(1.05); border-color: var(--accent-color); }
        .icon-btn:active { transform: scale(0.95); }

        .theme-btn .sun-icon, body.dark-mode .theme-btn .moon-icon { display: none; }
        body.dark-mode .theme-btn .sun-icon { display: block; }

        /* Workspace Grid & Scroller Box */
        .calc-body-workspace {
            padding: 14px 24px 24px 24px; flex-grow: 1; display: flex;
            flex-direction: column; overflow-y: auto; gap: 12px;
        }
        .calc-body-workspace::-webkit-scrollbar { width: 5px; }
        .calc-body-workspace::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 10px; }

        .fav-list { display: flex; flex-direction: column; gap: 12px; }
        .fav-item {
            display: flex; justify-content: space-between; align-items: center;
            padding: 14px 20px; background: var(--input-bg); border-radius: 16px;
            border: 1px solid var(--calc-border); transition: var(--transition-smooth);
        }
        .fav-item:hover { transform: translateY(-2px); border-color: var(--accent-color); box-shadow: var(--calc-shadow); }
        
        .fav-meta { display: flex; align-items: center; gap: 14px; font-weight: 700; text-decoration: none; color: var(--text-main); font-size: 0.98rem; }
        .fav-icon-node { font-size: 1.4rem; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.05)); }
        
        .remove-fav-btn {
            color: #ef4444; background: none; border: none; cursor: pointer;
            font-size: 1.25rem; transition: var(--transition-smooth); display: flex; align-items: center; justify-content: center;
        }
        .remove-fav-btn:hover { transform: scale(1.15); color: #dc2626; }
        
        .empty {
            text-align: center; color: var(--text-secondary); padding: 60px 0;
            font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: 12px;
        }

        /* FIXED: Premium Hidden Action Toast Box */
        .toast {
            position: fixed; bottom: 35px; left: 50%; transform: translate(-50%, 40px);
            background: #0f172a; color: #ffffff; padding: 12px 24px; border-radius: 50px;
            font-size: 0.85rem; font-weight: 600; opacity: 0; pointer-events: none;
            transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease; z-index: 9999;
            box-shadow: 0 10px 25px -5px rgba(0,0,0,0.2);
        }
        body.dark-mode .toast { background: #f8fafc; color: #0f172a; }
        .toast.show { transform: translate(-50%, 0); opacity: 1; }

        @media (max-width: 580px) {
            .calc-container { height: 100vh; max-height: 100vh; border-radius: 0; border: none; }
            body { padding: 0; }
        }
