        /* --- SwiftUI-inspired Modern Design System --- */
        :root {
            --sf-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            --bg-color: #f5f5f7;
            --card-bg: rgba(255, 255, 255, 0.85);
            --card-border: rgba(209, 209, 214, 0.4);
            --text-primary: #1d1d1f;
            --text-secondary: #86868b;
            --accent: #0071e3;
            --accent-hover: #0077ed;
            --success: #34c759;
            --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            --radius-lg: 20px;
            --radius-md: 12px;
            --radius-sm: 8px;
        }

        @media (prefers-color-scheme: dark) {
            :root {
                --bg-color: #000000;
                --card-bg: rgba(28, 28, 30, 0.75);
                --card-border: rgba(56, 56, 58, 0.6);
                --text-primary: #f5f5f7;
                --text-secondary: #a1a1a6;
                --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
            }
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: var(--sf-font);
            -webkit-font-smoothing: antialiased;
        }

        body {
            background-color: var(--bg-color) !important;
            color: var(--text-primary) !important;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            padding: 20px;
        }

        /* --- Component Wrapper --- */
        .asset-browser-widget {
            background: var(--card-bg);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid var(--card-border);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow);
            width: 100%;
            max-width: 480px;
            padding: 24px;
            display: flex;
            flex-direction: column;
            gap: 16px;
            transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
        }

        /* --- Navigation Tabs --- */
        .ab-tabs {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            background: rgba(120, 120, 128, 0.1);
            padding: 3px;
            border-radius: var(--radius-sm);
            gap: 2px;
        }

        .ab-tab {
            background: transparent;
            border: none;
            border-radius: 6px;
            padding: 8px 4px;
            font-size: 11px;
            font-weight: 500;
            color: var(--text-secondary);
            cursor: pointer;
            transition: all 0.2s ease;
            text-align: center;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .ab-tab.active {
            background: var(--card-bg);
            color: var(--text-primary);
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        }

        /* --- Header Section --- */
        .ab-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .ab-title {
            font-size: 17px;
            font-weight: 600;
            letter-spacing: -0.01em;
        }

        .ab-badge {
            font-size: 12px;
            font-weight: 500;
            color: var(--text-secondary);
            background: rgba(120, 120, 128, 0.12);
            padding: 4px 10px;
            border-radius: 20px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .live-dot {
            width: 8px;
            height: 8px;
            background-color: var(--success);
            border-radius: 50%;
            display: inline-block;
            box-shadow: 0 0 6px var(--success);
            animation: pulse 1.5s infinite;
        }

        @keyframes pulse {
            0% { opacity: 0.4; }
            50% { opacity: 1; }
            100% { opacity: 0.4; }
        }

        /* --- Viewport Screen --- */
        .ab-viewport {
            width: 100%;
            height: 280px;
            background: rgba(120, 120, 128, 0.05);
            border-radius: var(--radius-md);
            border: 1px solid var(--card-border);
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            position: relative;
        }

        .ab-viewport img,
        .ab-viewport iframe {
            width: 100%;
            height: 100%;
            object-fit: contain;
            border: none;
            transition: opacity 0.2s ease;
        }

        .ab-placeholder {
            color: var(--text-secondary);
            font-size: 14px;
            text-align: center;
            padding: 20px;
        }

        /* --- Recommendations Viewport Specifics --- */
        .ab-viewport.recommendations-viewport {
            flex-direction: column;
            align-items: stretch;
            justify-content: flex-start;
            overflow-y: auto;
            padding: 12px;
            gap: 10px;
        }

        .recommendation-card {
            display: flex;
            align-items: center;
            gap: 12px;
            background: var(--card-bg);
            border: 1px solid var(--card-border);
            border-radius: var(--radius-sm);
            padding: 8px;
            text-decoration: none;
            color: var(--text-primary);
            transition: transform 0.15s ease, background 0.15s ease;
        }

        .recommendation-card:hover {
            background: rgba(120, 120, 128, 0.08);
            transform: scale(1.01);
        }

        .recommendation-card img {
            /*
            width: 60px;
            height: 60px;
            */
            max-width: 300px;
            max-height: 300px;
            border-radius: 6px;
            object-fit: unset; /* cover */
            flex-shrink: 0;
        }

        .recommendation-info {
            display: flex;
            flex-direction: column;
            gap: 2px;
            overflow: hidden;
        }

        .recommendation-title {
            font-size: 14px;
            font-weight: 600;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .recommendation-location {
            font-size: 12px;
            color: var(--text-secondary);
        }

        /* --- Loading Spinner Overlay --- */
        .ab-loader {
            position: absolute;
            inset: 0;
            background: rgba(255, 255, 255, 0.4);
            backdrop-filter: blur(4px);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.2s ease;
        }

        @media (prefers-color-scheme: dark) {
            .ab-loader { background: rgba(0, 0, 0, 0.4); }
        }

        .ab-loader.active {
            opacity: 1;
            pointer-events: auto;
        }

        .spinner {
            width: 26px;
            height: 26px;
            border: 3px solid rgba(0, 113, 227, 0.2);
            border-top-color: var(--accent);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        /* --- Controls Toolbar --- */
        .ab-controls {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 8px;
        }

        .ab-btn {
            background: rgba(120, 120, 128, 0.08);
            border: none;
            border-radius: var(--radius-sm);
            color: var(--text-primary);
            font-size: 13px;
            font-weight: 500;
            padding: 10px 0;
            cursor: pointer;
            transition: background 0.15s ease, transform 0.1s ease;
            text-align: center;
        }

        .ab-btn:hover { background: rgba(120, 120, 128, 0.16); }
        .ab-btn:active { transform: scale(0.96); }
        .ab-btn.primary { background: var(--accent); color: #ffffff; }
        .ab-btn.primary:hover { background: var(--accent-hover); }

        /* --- Meta Panel --- */
        .ab-meta {
            background: rgba(120, 120, 128, 0.04);
            border-radius: var(--radius-sm);
            padding: 10px 12px;
            font-size: 12px;
            color: var(--text-secondary);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .ab-meta-data span { color: var(--text-primary); font-weight: 600; }

        .ab-exif-box {
            font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
            font-size: 11px;
            background: rgba(0,0,0,0.03);
            border-radius: var(--radius-sm);
            padding: 10px;
            max-height: 100px;
            overflow-y: auto;
            display: none;
            white-space: pre-wrap;
        }
        
        .view-section { display: none; flex-direction: column; gap: 16px; }
        .view-section.active { display: flex; }
