
        .web-content.bm-embed {
            --accent: #7b5cff;
            --accent-2: #5a0dd6;
            --accent-soft: rgba(123, 92, 255, 0.14);
            --bg: #0e0e12;
            --surface: rgba(255, 255, 255, 0.04);
            --surface-hover: rgba(255, 255, 255, 0.07);
            --border: rgba(255, 255, 255, 0.07);
            --text: #f4f2fb;
            --text-dim: #8a869b;
        }

        .web-content.bm-embed *,
.web-content.bm-embed *::before,
.web-content.bm-embed *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.web-content.bm-embed {
            background: var(--bg);
            color: var(--text);
            font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Open Sans', sans-serif;
            -webkit-font-smoothing: subpixel-antialiased;
            min-height: 0; height: 100%; overflow: auto;
            padding: 40px clamp(20px, 6vw, 80px);
        }

        .web-content.bm-embed .page {
            max-width: 1100px;
            margin: 0 auto;
        }

        .web-content.bm-embed .bookmarks-header {
            display: flex;
            align-items: flex-start;
            gap: 16px;
            margin-bottom: 16px;
        }

        .web-content.bm-embed .bookmarks-header .page-copy {
            flex: 1;
            min-width: 0;
        }

        .web-content.bm-embed .bookmarks-title {
            font-size: 13px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            color: #e4e4e7;
            margin-bottom: 4px;
        }

        .web-content.bm-embed .bookmarks-subtitle {
            color: #a1a1aa;
            font-size: 11px;
            line-height: 1.4;
        }

        .web-content.bm-embed .return-to-browser, .web-content.bm-embed .toolbar-btn {
            border: 1px solid var(--border);
            border-radius: 12px;
            background: var(--surface);
            color: var(--text);
            padding: 11px 16px;
            cursor: pointer;
            font: inherit;
            font-size: 13.5px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.18s ease;
        }

        .web-content.bm-embed .return-to-browser:hover, .web-content.bm-embed .return-to-browser:focus-visible, .web-content.bm-embed .toolbar-btn:hover, .web-content.bm-embed .toolbar-btn:focus-visible {
            border-color: var(--accent);
            background: var(--accent-soft);
            outline: none;
        }

        .web-content.bm-embed .toolbar {
            display: flex;
            align-items: center;
            gap: 12px;
            margin: 26px 0 14px;
            flex-wrap: wrap;
        }

        .web-content.bm-embed .search {
            position: relative;
            flex: 1;
            min-width: 220px;
            max-width: 420px;
        }

        .web-content.bm-embed .search i {
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-dim);
            font-size: 14px;
            pointer-events: none;
        }

        .web-content.bm-embed .search input {
            width: 100%;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 13px;
            color: var(--text);
            font-size: 14px;
            padding: 13px 14px 13px 40px;
            outline: none;
            transition: border-color 0.18s ease, background 0.18s ease;
        }

        .web-content.bm-embed .search input::placeholder { color: var(--text-dim); }
        .web-content.bm-embed .search input:focus { border-color: var(--accent); background: var(--surface-hover); }

        .web-content.bm-embed .view-toggle {
            display: flex;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 3px;
            gap: 2px;
        }

        .web-content.bm-embed .view-toggle button {
            border: none;
            background: transparent;
            color: var(--text-dim);
            font: inherit;
            font-size: 12.5px;
            font-weight: 600;
            padding: 8px 12px;
            border-radius: 9px;
            cursor: pointer;
            transition: all 0.16s ease;
        }

        .web-content.bm-embed .view-toggle button.active {
            background: var(--accent-soft);
            color: var(--text);
        }

        .web-content.bm-embed .count-pill {
            font-size: 13px;
            font-weight: 600;
            color: var(--text-dim);
            background: var(--surface);
            border: 1px solid var(--border);
            padding: 8px 14px;
            border-radius: 999px;
        }

        .web-content.bm-embed .bookmarks-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
            gap: 14px;
        }

        .web-content.bm-embed .bookmark-folder {
            border: 1px solid var(--border);
            border-radius: 16px;
            background: rgba(255, 255, 255, 0.025);
            margin-bottom: 14px;
            overflow: hidden;
        }

        .web-content.bm-embed .bookmark-folder-header {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px 16px;
            cursor: pointer;
            user-select: none;
            transition: background 0.16s ease;
        }

        .web-content.bm-embed .bookmark-folder-header:hover {
            background: var(--surface-hover);
        }

        .web-content.bm-embed .folder-swatch, .web-content.bm-embed .folder-favicon-wrap {
            width: 34px;
            height: 34px;
            border-radius: 10px;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        .web-content.bm-embed .folder-swatch {
            color: #fff;
            font-size: 14px;
        }

        .web-content.bm-embed .folder-favicon-wrap {
            background: rgba(255, 255, 255, 0.06);
        }

        .web-content.bm-embed .folder-favicon-wrap img {
            width: 20px;
            height: 20px;
            object-fit: contain;
        }

        .web-content.bm-embed .folder-meta {
            flex: 1;
            min-width: 0;
        }

        .web-content.bm-embed .folder-name {
            font-weight: 700;
            font-size: 14.5px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .web-content.bm-embed .folder-count {
            font-size: 12px;
            color: var(--text-dim);
            margin-top: 2px;
        }

        .web-content.bm-embed .folder-chevron {
            color: var(--text-dim);
            transition: transform 0.18s ease;
            font-size: 12px;
        }

        .web-content.bm-embed .bookmark-folder.collapsed .folder-chevron {
            transform: rotate(-90deg);
        }

        .web-content.bm-embed .folder-actions {
            display: flex;
            align-items: center;
            gap: 6px;
            flex-shrink: 0;
        }

        .web-content.bm-embed .folder-action-btn {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            border: none;
            background: rgba(255, 255, 255, 0.05);
            color: var(--text-dim);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            opacity: 1;
            transition: all 0.16s ease;
        }

        .web-content.bm-embed .folder-action-btn:hover { background: var(--accent-soft); color: var(--text); }
        .web-content.bm-embed .folder-action-btn.danger:hover { background: rgba(255, 90, 90, 0.18); color: #ff8a8a; }

        .web-content.bm-embed .folder-name[data-rename-group] {
            cursor: text;
        }

        .web-content.bm-embed .bookmark-folder-body {
            padding: 0 14px 14px;
        }

        .web-content.bm-embed .bookmark-folder.collapsed .bookmark-folder-body {
            display: none;
        }

        .web-content.bm-embed .bookmark-item {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 16px;
            padding: 16px;
            cursor: pointer;
            transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
            display: flex;
            align-items: center;
            gap: 13px;
            position: relative;
        }

        .web-content.bm-embed .bookmark-item:hover {
            background: var(--surface-hover);
            border-color: rgba(123, 92, 255, 0.5);
            transform: translateY(-3px);
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
        }

        .web-content.bm-embed .bookmark-favicon {
            width: 40px;
            height: 40px;
            border-radius: 11px;
            background: rgba(255, 255, 255, 0.05);
            flex-shrink: 0;
            padding: 8px;
            object-fit: contain;
        }

        .web-content.bm-embed .bookmark-info {
            flex: 1;
            min-width: 0;
        }

        .web-content.bm-embed .bookmark-title {
            font-weight: 600;
            font-size: 14.5px;
            margin-bottom: 3px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .web-content.bm-embed .bookmark-url {
            font-size: 12px;
            color: var(--text-dim);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .web-content.bm-embed .bookmark-item-actions {
            display: flex;
            align-items: center;
            gap: 4px;
            flex-shrink: 0;
        }

        .web-content.bm-embed .bookmark-delete, .web-content.bm-embed .bookmark-move {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.05);
            border: none;
            color: var(--text-dim);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: all 0.16s ease;
            font-size: 12px;
            flex-shrink: 0;
        }

        .web-content.bm-embed .bookmark-delete:hover { background: rgba(255, 90, 90, 0.18); color: #ff8a8a; }
        .web-content.bm-embed .bookmark-move:hover { background: var(--accent-soft); color: var(--text); }
        .web-content.bm-embed .bookmark-item:hover .bookmark-delete, .web-content.bm-embed .bookmark-item:hover .bookmark-move { opacity: 1; }

        .web-content.bm-embed .empty-bookmarks {
            text-align: center;
            color: var(--text-dim);
            margin-top: 80px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 14px;
        }

        .web-content.bm-embed .empty-bookmarks .icon {
            width: 84px;
            height: 84px;
            border-radius: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 34px;
            color: var(--accent);
            background: var(--accent-soft);
        }

        .web-content.bm-embed .empty-bookmarks .empty-title { font-size: 18px; font-weight: 600; color: var(--text); }
        .web-content.bm-embed .empty-bookmarks .empty-sub { font-size: 14px; max-width: 300px; line-height: 1.5; }

        .web-content.bm-embed .modal-backdrop {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.55);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            padding: 20px;
        }

        .web-content.bm-embed .modal-backdrop.open { display: flex; }

        .web-content.bm-embed .modal {
            width: min(420px, 100%);
            background: #17171d;
            border: 1px solid var(--border);
            border-radius: 18px;
            padding: 22px;
            box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
        }

        .web-content.bm-embed .modal h3 {
            font-size: 18px;
            margin-bottom: 6px;
        }

        .web-content.bm-embed .modal p {
            color: var(--text-dim);
            font-size: 13px;
            margin-bottom: 16px;
        }

        .web-content.bm-embed .modal label {
            display: block;
            font-size: 12px;
            font-weight: 600;
            color: var(--text-dim);
            margin-bottom: 6px;
        }

        .web-content.bm-embed .modal input[type="text"] {
            width: 100%;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 11px;
            color: var(--text);
            font: inherit;
            font-size: 14px;
            padding: 11px 12px;
            outline: none;
            margin-bottom: 14px;
        }

        .web-content.bm-embed .modal input[type="text"]:focus {
            border-color: var(--accent);
        }

        .web-content.bm-embed .color-swatches {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 18px;
        }

        .web-content.bm-embed .color-swatch {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            border: 2px solid transparent;
            cursor: pointer;
            padding: 0;
        }

        .web-content.bm-embed .color-swatch.selected {
            border-color: #fff;
            box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
        }

        .web-content.bm-embed .modal-actions {
            display: flex;
            justify-content: flex-end;
            gap: 8px;
        }

        .web-content.bm-embed .modal-actions button {
            border: 1px solid var(--border);
            border-radius: 11px;
            background: var(--surface);
            color: var(--text);
            font: inherit;
            font-size: 13px;
            font-weight: 600;
            padding: 10px 14px;
            cursor: pointer;
        }

        .web-content.bm-embed .modal-actions button.primary {
            background: linear-gradient(135deg, var(--accent), var(--accent-2));
            border-color: transparent;
        }

        .web-content.bm-embed .move-list {
            display: flex;
            flex-direction: column;
            gap: 6px;
            max-height: 280px;
            overflow: auto;
            margin-bottom: 14px;
        }

        .web-content.bm-embed .move-option {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 12px;
            border-radius: 11px;
            border: 1px solid var(--border);
            background: var(--surface);
            color: var(--text);
            font: inherit;
            font-size: 13.5px;
            font-weight: 600;
            cursor: pointer;
            text-align: left;
        }

        .web-content.bm-embed .move-option:hover {
            border-color: var(--accent);
            background: var(--accent-soft);
        }

        .web-content.bm-embed .move-option .dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            flex-shrink: 0;
        }

        .web-content.bm-embed ::-webkit-scrollbar { width: 12px; height: 12px; }
        .web-content.bm-embed ::-webkit-scrollbar-track { background: transparent; }
        .web-content.bm-embed ::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.14);
            border-radius: 999px;
            border: 3px solid transparent;
            background-clip: padding-box;
        }
        .web-content.bm-embed ::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.24); background-clip: padding-box; }
    

.web-content.bm-embed .return-to-browser {
    width: auto;
    max-width: none;
    flex: 0 0 auto;
    white-space: nowrap;
}
.web-content.bm-embed .bookmarks-header .page-copy {
    flex: 1 1 auto;
    min-width: 12rem;
}
.web-content.bm-embed .bookmarks-subtitle {
    white-space: normal;
    max-width: 36rem;
}
