        #gmcgm-root,
        #gmcgm-root * {
            box-sizing: border-box;
        }

        #gmcgm-root {
            position: relative;
            top: auto;
            left: auto;
            right: auto;
            transform: none;
            z-index: 2147483000;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex: 0 0 auto;
            margin: 0;
            font-family: inherit;
            visibility: hidden;
        }

        #gmcgm-root.gmcgm-positioned {
            visibility: visible;
        }

        .gmcgm-button {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 52px;
            height: 52px;
            padding: 0;
            border: 0;
            border-radius: 50%;
            background: transparent;
            color: #ffffff;
            box-shadow: none;
            cursor: pointer;
            transition: transform .18s ease, filter .18s ease;
            overflow: hidden;
        }

        .gmcgm-button img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .gmcgm-button:hover,
        .gmcgm-button:focus-visible {
            transform: rotate(8deg) scale(1.04);
            filter: brightness(1.06);
            outline: none;
        }

        .gmcgm-panel[hidden] {
            display: none !important;
        }

        .gmcgm-panel {
            position: fixed;
            top: 0;
            left: 0;
            right: auto;
            width: min(320px, calc(100vw - 28px));
            max-height: calc(100vh - 28px);
            overflow-x: hidden;
            overflow-y: auto;
            overscroll-behavior: contain;
            padding: 14px;
            border: 1px solid rgba(17, 24, 39, .08);
            border-radius: 18px;
            background: #ffffff;
            color: #111827;
            direction: rtl;
            box-shadow: 0 22px 60px rgba(0, 0, 0, .24);
            z-index: 2147483647;
            -webkit-overflow-scrolling: touch;
        }

        .gmcgm-panel-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
            padding-bottom: 12px;
            border-bottom: 1px solid #eef0f3;
        }

        .gmcgm-panel-header strong {
            display: block;
            font-size: 16px;
            line-height: 1.4;
        }

        .gmcgm-panel-header span {
            display: block;
            margin-top: 3px;
            color: #6b7280;
            font-size: 12px;
        }

        .gmcgm-close {
            width: 32px;
            height: 32px;
            padding: 0;
            border: 0;
            border-radius: 9px;
            background: #f3f4f6;
            color: #374151;
            font-size: 24px;
            line-height: 1;
            cursor: pointer;
        }

        .gmcgm-section {
            padding: 14px 0;
            border-bottom: 1px solid #eef0f3;
        }

        .gmcgm-section label {
            display: block;
            margin-bottom: 7px;
            color: #374151;
            font-size: 13px;
            font-weight: 700;
        }

        .gmcgm-section select {
            width: 100%;
            min-height: 44px;
            padding: 8px 11px;
            border: 1px solid #d1d5db;
            border-radius: 11px;
            background: #ffffff;
            color: #111827;
            font: inherit;
        }

        .gmcgm-links {
            display: grid;
            gap: 7px;
            padding-top: 12px;
        }

        .gmcgm-links a {
            display: flex;
            align-items: center;
            justify-content: space-between;
            min-height: 43px;
            padding: 9px 12px;
            border: 1px solid #e5e7eb;
            border-radius: 11px;
            background: #ffffff;
            color: #111827;
            font-size: 14px;
            text-decoration: none;
            transition: background .15s ease, border-color .15s ease;
        }

        .gmcgm-links a:hover,
        .gmcgm-links a:focus-visible {
            border-color: #cbd5e1;
            background: #f8fafc;
            color: #111827;
            outline: none;
        }

        .gmcgm-links a.gmcgm-logout {
            color: #b91c1c;
        }

        @media (max-width: 600px) {
            #gmcgm-root {
                left: auto;
                right: auto;
            }

            .gmcgm-button {
                width: 46px;
                height: 46px;
            }

            .gmcgm-panel {
                position: fixed;
                top: 0;
                left: 14px;
                right: auto;
                bottom: auto;
                width: calc(100vw - 28px);
                max-height: calc(100vh - 28px);
            }
        }
    
